|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectSGQuickVar.SGVariable
public class SGVariable
| Field Summary | |
|---|---|
char |
downKey
Pressing this key will decrement the variable by its step |
float |
interval
Interval for increments/decrements |
float |
max
Maximum variable |
float |
min
Minimum value |
char |
upKey
Pressing this key will increment the variable by its step |
float |
val
Current value of this variable |
| Constructor Summary | |
|---|---|
SGVariable(processing.core.PApplet parent,
processing.core.PFont font,
java.lang.String title,
char up,
char down,
float val,
float interval,
float min,
float max)
|
|
| Method Summary | |
|---|---|
void |
draw()
Renders to screen. |
void |
keyEvent(java.awt.event.KeyEvent e)
Handles key presses. |
void |
setTextColor(int color)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public float val
public float min
public float max
public char upKey
public char downKey
public float interval
| Constructor Detail |
|---|
public SGVariable(processing.core.PApplet parent,
processing.core.PFont font,
java.lang.String title,
char up,
char down,
float val,
float interval,
float min,
float max)
parent - font - PFont used to render to the screentitle - Name of the variable. Will be displayed on the screen next to the valueup - char to press to increment the variabledown - char to press to decrement the variableval - Initial value of the variableinterval - Amount to increment or decrement per keypressmin - max - | Method Detail |
|---|
public void setTextColor(int color)
public void draw()
public void keyEvent(java.awt.event.KeyEvent e)
e -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||