|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.fhpotsdam.unfolding.ui.CompassUI
public class CompassUI
A simple compass which shows the cardinal directions of the map.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
void |
draw()
Draw the compass. |
float |
getScale()
|
ScreenPosition |
getScreenPosition()
|
void |
setImage(processing.core.PImage img)
|
void |
setScale(float scale)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public void draw()
public ScreenPosition getScreenPosition()
public void setImage(processing.core.PImage img)
public float getScale()
public void setScale(float scale)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||