public class Statusbar
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private Vector2D |
mousePosition |
private java.lang.String |
status |
Constructor and Description |
---|
Statusbar()
Creates a Statusbar.
|
Modifier and Type | Method and Description |
---|---|
void |
drawStatusbar(processing.core.PApplet p)
Draws the statusbar on the PApplet p
|
java.lang.String |
getStatus() |
void |
setMousePosition(Vector2D mouse)
Sets the mouse position to be displayed on the statusbar.
|
void |
setStatus(java.lang.String status)
Sets the message currently displayed by the statusbar to status
|
private java.lang.String status
private Vector2D mousePosition
public java.lang.String getStatus()
public void setStatus(java.lang.String status)
status
- the message thatpublic void setMousePosition(Vector2D mouse)
mouse
- the mouse position to be displayed on the statusbarpublic void drawStatusbar(processing.core.PApplet p)
p
- the PApplet to draw the statusbar on