public class DebugDisplay extends java.lang.Object implements MapEventListener
Modifier and Type | Field and Description |
---|---|
static float |
HEIGHT_DEFAULT |
static float |
MIN_TRANSPARENCY |
static float |
WIDTH_DEFAULT |
Constructor and Description |
---|
DebugDisplay(processing.core.PApplet p,
UnfoldingMap map)
Shows current information on the mapDisplay and the mouse pointer.
|
DebugDisplay(processing.core.PApplet p,
UnfoldingMap map,
EventDispatcher eventDispatcher,
float x,
float y)
Shows current information on the mapDisplay and the mouse pointer.
|
DebugDisplay(processing.core.PApplet p,
UnfoldingMap map,
int x,
int y)
Shows current information on the mapDisplay and the mouse pointer.
|
Modifier and Type | Method and Description |
---|---|
void |
draw() |
protected void |
drawEvent(float x,
float y,
float valueBoxSize,
int color) |
protected void |
drawLabel(java.lang.String label,
float x,
float y) |
protected void |
drawLabelEvent(java.lang.String label,
float listeningValue,
float broadcastingValue,
float x,
float y,
float valueBoxWidth) |
protected void |
drawLabelValue(java.lang.String label,
java.lang.String value,
float x,
float y,
float valueBoxWidth) |
protected void |
drawSeparator(float y) |
protected void |
drawValue(java.lang.String value,
float x,
float y,
float valueBoxWidth) |
protected void |
drawValue(java.lang.String value,
float x,
float y,
float valueBoxWidth,
boolean leftAlign) |
protected void |
drawZoomBar(int zoomLevel,
float x,
float y,
int maxZoomLevel) |
protected void |
fadeEventLights() |
java.lang.String |
getId() |
void |
onManipulation(MapEvent mapEvent) |
public static final float WIDTH_DEFAULT
public static final float HEIGHT_DEFAULT
public static final float MIN_TRANSPARENCY
public DebugDisplay(processing.core.PApplet p, UnfoldingMap map, EventDispatcher eventDispatcher, float x, float y)
p
- The PApplet, used to draw and to get mouse position.map
- The map to display debug information about.eventDispatcher
- The dispatcher to register this DebugDisplay to in order to display fired events.x
- Horizontal position of the display.y
- Vertical position of the display.public DebugDisplay(processing.core.PApplet p, UnfoldingMap map)
p
- The PApplet, used to draw and to get mouse position.map
- The map to display debug information about.public DebugDisplay(processing.core.PApplet p, UnfoldingMap map, int x, int y)
p
- The PApplet, used to draw and to get mouse position.map
- The map to display debug information about.x
- Horizontal position of the display.y
- Vertical position of the display.public java.lang.String getId()
getId
in interface MapEventListener
public void onManipulation(MapEvent mapEvent)
onManipulation
in interface MapEventListener
public void draw()
protected void fadeEventLights()
protected void drawLabelEvent(java.lang.String label, float listeningValue, float broadcastingValue, float x, float y, float valueBoxWidth)
protected void drawEvent(float x, float y, float valueBoxSize, int color)
protected void drawLabelValue(java.lang.String label, java.lang.String value, float x, float y, float valueBoxWidth)
protected void drawLabel(java.lang.String label, float x, float y)
protected void drawValue(java.lang.String value, float x, float y, float valueBoxWidth)
protected void drawValue(java.lang.String value, float x, float y, float valueBoxWidth, boolean leftAlign)
protected void drawZoomBar(int zoomLevel, float x, float y, int maxZoomLevel)
protected void drawSeparator(float y)