|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectcontrolP5.ControllerGroup
public abstract class ControllerGroup
ControllerGroup is an abstract class and is extended by e.g. ControlGroup, Tab, or ScrollList ControlGroup ScrollList Tab Textarea
Field Summary |
---|
Fields inherited from interface controlP5.ControlP5Constants |
---|
acceptClassList, ACTIVE, ALT, ARC, ARRAY, BACKSPACE, BOOLEAN, BOTTOM, CENTER, CONTROL, controlEventClass, CUSTOM, DECREASE, DEFAULT, DELETE, DOWN, ELLIPSE, ENTER, ESCAPE, EVENT, eventMethod, FIELD, FLOAT, HALF_PI, HIDE, HIGHLIGHT, HORIZONTAL, IMAGE, INCREASE, INTEGER, INVALID, KEYCONTROL, LEFT, LINE, LOAD, MENU, METHOD, MOVE, OVER, PI, PRESSED, PRINT, RELEASE, RESET, RIGHT, SAVE, SHIFT, SPRITE, STRING, SWITCH, SWITCH_BACK, SWITCH_FORE, TAB, TOP, TWO_PI, UP, VERBOSE, VERTICAL |
Constructor Summary | |
---|---|
ControllerGroup(ControlP5 theControlP5,
ControllerGroup theParent,
java.lang.String theName,
float theX,
float theY)
|
Method Summary | |
---|---|
CVector3f |
absolutePosition()
|
void |
add(ControllerInterface theElement)
add a controller to the group, but use Controller.setGroup() instead. |
ControlCanvas |
addCanvas(ControlCanvas theCanvas)
add a canvas to a controllerGroup such as a tab or group. |
void |
addDrawable(CDrawable theElement)
|
float[] |
arrayValue()
|
Label |
captionLabel()
|
void |
close()
set the status of the group to closed. |
CColor |
color()
|
void |
continuousUpdateEvents()
|
Controller |
controller(java.lang.String theController)
get a controller of the group. |
void |
disableCollapse()
|
void |
draw(processing.core.PApplet theApplet)
|
void |
enableCollapse()
|
ControlP5XMLElement |
getAsXML()
|
CColor |
getColor()
|
int |
getHeight()
|
int |
getPickingColor()
|
Tab |
getTab()
get the instance of the tab this controller belongs to. |
int |
getWidth()
|
ControlWindow |
getWindow()
|
void |
hide()
hide the group. |
int |
id()
|
void |
init()
|
boolean |
isCollapse()
|
boolean |
isMoveable()
check if the group is moveable. |
boolean |
isOpen()
|
boolean |
isUpdate()
check the update status of a controller. |
boolean |
isVisible()
check if the group is visible. |
boolean |
isXMLsavable()
|
void |
keyEvent(java.awt.event.KeyEvent theEvent)
|
void |
moveTo(ControlGroup theGroup)
|
void |
moveTo(ControlGroup theGroup,
Tab theTab,
ControlWindow theControlWindow)
move the group. |
void |
moveTo(ControlWindow theControlWindow)
|
void |
moveTo(ControlWindow theControlWindow,
java.lang.String theTabName)
|
void |
moveTo(java.lang.String theTabName)
|
void |
moveTo(java.lang.String theTabName,
ControlWindow theControlWindow)
|
void |
moveTo(Tab theTab)
|
void |
moveTo(Tab theTab,
ControlWindow theControlWindow)
|
java.lang.String |
name()
get the name of the group. |
void |
open()
set the status of the group to open. |
ControllerInterface |
parent()
|
CVector3f |
position()
|
void |
remove()
remove the controller from controlP5. |
void |
remove(CDrawable theElement)
|
void |
remove(ControllerInterface theElement)
remove a controller from the group, but use Controller.setGroup() instead. |
void |
removeCanvas(ControlCanvas theCanvas)
remove a canvas from a controller group. |
void |
setColorActive(int theColor)
set the color for the group when active. |
void |
setColorBackground(int theColor)
set the background color of the group. |
void |
setColorForeground(int theColor)
set the foreground color of the group. |
void |
setColorLabel(int theColor)
set the color of the text label of the group. |
void |
setColorValue(int theColor)
set the color of the value label. |
void |
setGroup(ControllerGroup theGroup)
set the group of the controller. |
void |
setGroup(java.lang.String theName)
|
ControllerGroup |
setHeight(int theHeight)
|
void |
setId(int theId)
|
void |
setLabel(java.lang.String theLabel)
set the label of the group. |
boolean |
setMousePressed(boolean theStatus)
|
void |
setMoveable(boolean theFlag)
set the moveable status of the group. |
void |
setOpen(boolean theFlag)
|
void |
setPosition(float theX,
float theY)
set the position of this controller. |
void |
setTab(ControlWindow theWindow,
java.lang.String theName)
|
void |
setTab(java.lang.String theName)
set the tab of the controller. |
void |
setTab(Tab theTab)
set the tab of the controller. |
void |
setUpdate(boolean theFlag)
enable or disable the update function of a controller. |
void |
setVisible(boolean theFlag)
set the group's visibility. |
ControllerGroup |
setWidth(int theWidth)
|
void |
show()
show the group. |
java.lang.String |
stringValue()
|
java.lang.String |
toString()
|
void |
update()
call update if you want to update the value of or function call of a controller. |
void |
updateAbsolutePosition()
|
void |
updateEvents()
|
void |
updateInternalEvents(processing.core.PApplet theApplet)
a method for putting input events like e.g. |
float |
value()
!!! experimental, have to check if this spoils anything. |
Label |
valueLabel()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface controlP5.ControllerInterface |
---|
addToXMLElement |
Constructor Detail |
---|
public ControllerGroup(ControlP5 theControlP5, ControllerGroup theParent, java.lang.String theName, float theX, float theY)
theControlP5
- ControlP5theParent
- ControllerGrouptheName
- StringtheX
- floattheY
- floatMethod Detail |
---|
public void init()
init
in interface ControllerInterface
public ControllerInterface parent()
parent
in interface ControllerInterface
public void setGroup(ControllerGroup theGroup)
theGroup
- ControllerGrouppublic void setGroup(java.lang.String theName)
theName
- Stringpublic void moveTo(ControlGroup theGroup, Tab theTab, ControlWindow theControlWindow)
moveTo
in interface ControllerInterface
theGroup
- ControlGrouptheTab
- TabtheControlWindow
- ControlWindowpublic void moveTo(ControlGroup theGroup)
public void moveTo(Tab theTab)
public void moveTo(ControlWindow theControlWindow)
public void moveTo(java.lang.String theTabName)
public void moveTo(java.lang.String theTabName, ControlWindow theControlWindow)
public void moveTo(ControlWindow theControlWindow, java.lang.String theTabName)
public void moveTo(Tab theTab, ControlWindow theControlWindow)
public void setTab(java.lang.String theName)
theName
- Stringpublic void setTab(ControlWindow theWindow, java.lang.String theName)
public void setTab(Tab theTab)
theTab
- Tabpublic Tab getTab()
getTab
in interface ControllerInterface
public CVector3f position()
position
in interface ControllerInterface
public CVector3f absolutePosition()
absolutePosition
in interface ControllerInterface
public void setPosition(float theX, float theY)
setPosition
in interface ControllerInterface
theX
- floattheY
- floatpublic void updateAbsolutePosition()
updateAbsolutePosition
in interface ControllerInterface
public void continuousUpdateEvents()
continuousUpdateEvents
in interface ControllerInterface
public void update()
update
in interface ControllerInterface
public void setUpdate(boolean theFlag)
setUpdate
in interface ControllerInterface
theFlag
- booleanpublic boolean isUpdate()
isUpdate
in interface ControllerInterface
public void updateEvents()
updateEvents
in interface ControllerInterface
public void updateInternalEvents(processing.core.PApplet theApplet)
ControllerInterface
updateInternalEvents
in interface ControllerInterface
ControllerInterface.updateInternalEvents
public final void draw(processing.core.PApplet theApplet)
draw
in interface ControllerInterface
theApplet
- PAppletpublic ControlCanvas addCanvas(ControlCanvas theCanvas)
theCanvas
- public void removeCanvas(ControlCanvas theCanvas)
theCanvas
- public void add(ControllerInterface theElement)
add
in interface ControllerInterface
theElement
- ControllerInterfacepublic void remove(ControllerInterface theElement)
remove
in interface ControllerInterface
theElement
- ControllerInterfacepublic void addDrawable(CDrawable theElement)
theElement
- CDrawablepublic void remove(CDrawable theElement)
theElement
- CDrawablepublic void remove()
remove
in interface ControllerInterface
public java.lang.String name()
name
in interface ControllerInterface
public ControlWindow getWindow()
getWindow
in interface ControllerInterface
public void keyEvent(java.awt.event.KeyEvent theEvent)
keyEvent
in interface ControllerInterface
theEvent
- KeyEventpublic boolean setMousePressed(boolean theStatus)
setMousePressed
in interface ControllerInterface
theStatus
- boolean
public void setId(int theId)
setId
in interface ControllerInterface
theId
- intpublic int id()
id
in interface ControllerInterface
public void setColorActive(int theColor)
setColorActive
in interface ControllerInterface
theColor
- intpublic void setColorForeground(int theColor)
setColorForeground
in interface ControllerInterface
theColor
- intpublic void setColorBackground(int theColor)
setColorBackground
in interface ControllerInterface
theColor
- intpublic void setColorLabel(int theColor)
setColorLabel
in interface ControllerInterface
theColor
- intpublic void setColorValue(int theColor)
setColorValue
in interface ControllerInterface
theColor
- intpublic void setLabel(java.lang.String theLabel)
setLabel
in interface ControllerInterface
theLabel
- Stringpublic boolean isVisible()
isVisible
in interface ControllerInterface
public void setVisible(boolean theFlag)
theFlag
- booleanpublic void hide()
hide
in interface ControllerInterface
public void show()
show
in interface ControllerInterface
public void setMoveable(boolean theFlag)
theFlag
- booleanpublic boolean isMoveable()
public void setOpen(boolean theFlag)
theFlag
- booleanpublic boolean isOpen()
public void open()
public void close()
public int getPickingColor()
getPickingColor
in interface ControllerInterface
public CColor color()
color
in interface ControllerInterface
public CColor getColor()
public float value()
value
in interface ControllerInterface
public java.lang.String stringValue()
stringValue
in interface ControllerInterface
public float[] arrayValue()
public Controller controller(java.lang.String theController)
theController
- String
public Label captionLabel()
public Label valueLabel()
public void enableCollapse()
public void disableCollapse()
public boolean isCollapse()
public int getWidth()
getWidth
in interface ControllerInterface
public int getHeight()
getHeight
in interface ControllerInterface
public ControllerGroup setWidth(int theWidth)
public ControllerGroup setHeight(int theHeight)
public boolean isXMLsavable()
isXMLsavable
in interface ControllerInterface
public ControlP5XMLElement getAsXML()
getAsXML
in interface ControllerInterface
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |