Class Monitor
java.lang.Object
org.openpatch.scratch.internal.Monitor
A variable monitor, drawn like Scratch's: a light box with the variable's
name and its value in an orange pill. The value is asked for every frame, so
the monitor always shows what the variable holds right now.
Nothing outside the library should use this; stages and sprites show them
with showVariable(...).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final floatHeight of one monitor, gap included: where the next one starts. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
HEIGHT
public static final float HEIGHTHeight of one monitor, gap included: where the next one starts.- See Also:
-
-
Constructor Details
-
Monitor
-
-
Method Details
-
getLabel
The monitor's text. -
getText
The current value as the monitor shows it. -
draw
public void draw(processing.core.PGraphics g, float x, float y) Draws the monitor with its top left corner at (x, y) in the buffer's coordinates.
-