public class CompassUI
extends java.lang.Object
Constructor and Description |
---|
CompassUI(processing.core.PApplet p,
UnfoldingMap map)
Create default CompassUI at default position.
|
CompassUI(processing.core.PApplet p,
UnfoldingMap map,
processing.core.PImage img,
float x,
float y)
Create CompassUI.
|
Modifier and Type | Method and Description |
---|---|
void |
draw()
Draw the compass.
|
float |
getScale() |
ScreenPosition |
getScreenPosition() |
void |
setImage(processing.core.PImage img) |
void |
setScale(float scale) |
public CompassUI(processing.core.PApplet p, UnfoldingMap map, processing.core.PImage img, float x, float y)
p
- The main PApplet.map
- The map to show compass for.img
- The image for the compass to show.x
- x position on the screen.y
- y position on the screen.public CompassUI(processing.core.PApplet p, UnfoldingMap map)
p
- The main PApplet.map
- The map to show compass for.public void draw()
public ScreenPosition getScreenPosition()
public void setImage(processing.core.PImage img)
public float getScale()
public void setScale(float scale)