Tabnine Logo
Circle.draw
Code IndexAdd Tabnine to your IDE (free)

How to use
draw
method
in
org.mapsforge.map.layer.overlay.Circle

Best Java code snippets using org.mapsforge.map.layer.overlay.Circle.draw (Showing top 2 results out of 315)

origin: mapsforge/mapsforge

@Test
public void drawTest() {
  for (int tileSize : TILE_SIZES) {
    Circle circle = new Circle(null, 0, null, null);
    circle.setDisplayModel(new FixedTileSizeDisplayModel(tileSize));
    BoundingBox boundingBox = new BoundingBox(-1, -1, 1, 1);
    Canvas canvas = GRAPHIC_FACTORY.createCanvas();
    canvas.setBitmap(GRAPHIC_FACTORY.createBitmap(tileSize, tileSize));
    Point point = new Point(0, 0);
    circle.draw(boundingBox, (byte) 0, canvas, point);
    circle.setLatLong(new LatLong(0, 0));
    circle.draw(boundingBox, (byte) 0, canvas, point);
    circle.setRadius(1);
    circle.draw(boundingBox, (byte) 0, canvas, point);
    circle.setPaintFill(GRAPHIC_FACTORY.createPaint());
    circle.draw(boundingBox, (byte) 0, canvas, point);
    circle.setPaintStroke(GRAPHIC_FACTORY.createPaint());
    circle.draw(boundingBox, (byte) 0, canvas, point);
  }
}
origin: mapsforge/mapsforge

@Override
public synchronized void draw(BoundingBox boundingBox, byte zoomLevel, Canvas canvas, Point topLeftPoint) {
  if (this.circle != null) {
    this.circle.draw(boundingBox, zoomLevel, canvas, topLeftPoint);
  }
  this.marker.draw(boundingBox, zoomLevel, canvas, topLeftPoint);
}
org.mapsforge.map.layer.overlayCircledraw

Popular methods of Circle

  • <init>
  • getRadiusInPixels
  • setDisplayModel
  • setLatLong
  • setRadius
  • setRadiusInternal
  • getPaintFill
  • getPaintStroke
  • getPosition
  • getRadius
  • requestRedraw
  • setPaintFill
  • requestRedraw,
  • setPaintFill,
  • setPaintStroke

Popular in Java

  • Reactive rest calls using spring rest template
  • addToBackStack (FragmentTransaction)
  • compareTo (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Kernel (java.awt.image)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Option (scala)
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now