|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectcontrolP5.Controller
controlP5.Range
public class Range
a slider.
Field Summary | |
---|---|
static int |
FIX
|
static int |
FLEXIBLE
|
Fields inherited from class controlP5.Controller |
---|
MOVE, PRESSED, RELEASE |
Fields inherited from interface controlP5.ControlP5Constants |
---|
acceptClassList, ALT, ARRAY, BACKSPACE, BOOLEAN, CONTROL, DECREASE, DELETE, DOWN, ENTER, ESCAPE, eventMethod, FIELD, FLOAT, HALF_PI, HIDE, INCREASE, INTEGER, INVALID, KEYCONTROL, LEFT, LOAD, MENU, METHOD, PI, PRINT, RESET, RIGHT, SAVE, SHIFT, STRING, SWITCH_BACK, SWITCH_FORE, TAB, TWO_PI, UP, VERBOSE |
Constructor Summary | |
---|---|
Range(ControlP5 theControlP5,
ControllerGroup theParent,
java.lang.String theName,
float theMin,
float theMax,
float theDefaultMinValue,
float theDefaultMaxValue,
int theX,
int theY,
int theWidth,
int theHeight)
|
Method Summary | |
---|---|
void |
addToXMLElement(ControlP5XMLElement theElement)
|
float[] |
arrayValue()
|
void |
draw(processing.core.PApplet theApplet)
|
float |
highValue()
|
float |
lowValue()
|
void |
mouseReleased()
|
void |
mouseReleasedOutside()
|
void |
onLeave()
|
void |
setDraggable(boolean theFlag)
|
Controller |
setHeight(int theValue)
set the height of the slider. |
void |
setHighValue(float theValue)
|
void |
setLowValue(float theValue)
|
void |
setMax(float theValue)
set the maximum value of the slider. |
void |
setMin(float theValue)
set the minimum value of the slider. |
void |
setSliderMode(int theMode)
|
void |
setValue(float theValue)
set the value of the slider. |
Controller |
setWidth(int theValue)
set the width of the slider. |
void |
update()
updates the value of the controller without having to set the value explicitly. |
void |
updateInternalEvents(processing.core.PApplet theApplet)
TODO |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int FIX
public static final int FLEXIBLE
Constructor Detail |
---|
public Range(ControlP5 theControlP5, ControllerGroup theParent, java.lang.String theName, float theMin, float theMax, float theDefaultMinValue, float theDefaultMaxValue, int theX, int theY, int theWidth, int theHeight)
theControlP5
- ControlP5theParent
- ControllerGrouptheName
- StringtheMin
- floattheMax
- floattheDefaultValue
- floattheX
- inttheY
- inttheWidth
- inttheHeight
- intMethod Detail |
---|
public void setSliderMode(int theMode)
theMode
- intpublic void updateInternalEvents(processing.core.PApplet theApplet)
Controller
updateInternalEvents
in interface ControllerInterface
updateInternalEvents
in class Controller
ControllerInterfalce.updateInternalEvents
public void draw(processing.core.PApplet theApplet)
draw
in interface CDrawable
draw
in interface ControllerInterface
draw
in class Controller
theApplet
- PAppletpublic void setValue(float theValue)
setValue
in class Controller
theValue
- floatpublic void update()
Controller
update
in interface ControllerInterface
update
in class Controller
public void setDraggable(boolean theFlag)
public float[] arrayValue()
arrayValue
in class Controller
public void setMin(float theValue)
setMin
in class Controller
theValue
- floatpublic void setMax(float theValue)
setMax
in class Controller
theValue
- floatpublic float lowValue()
public float highValue()
public void setLowValue(float theValue)
public void setHighValue(float theValue)
public Controller setWidth(int theValue)
setWidth
in class Controller
theValue
- intpublic Controller setHeight(int theValue)
setHeight
in class Controller
theValue
- intpublic void mouseReleased()
public void mouseReleasedOutside()
public void onLeave()
public void addToXMLElement(ControlP5XMLElement theElement)
theElement
- ControlP5XMLElement
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |