controlP5
Class ControlGroup

java.lang.Object
  extended by controlP5.ControllerGroup
      extended by controlP5.ControlGroup
All Implemented Interfaces:
ControllerInterface, ControlListener
Direct Known Subclasses:
ListBox, RadioButton, ScrollList

public class ControlGroup
extends ControllerGroup
implements ControlListener

ControlGroup extends ControllerGroup, for a list and documentation for available methods see the ControllerGroup documentation. use a controlGroup to bundle several controllers. controlGroups can be closed and opened to keep the screen organized.


Constructor Summary
ControlGroup(ControlP5 theControlP5, ControllerGroup theParent, java.lang.String theName, int theX, int theY, int theW, int theH)
           
 
Method Summary
 ControlGroup activateEvent(boolean theFlag)
          activate or deactivate the Event status of a tab.
 void addCloseButton()
          add a close button to the controlbar of this controlGroup.
 void addToXMLElement(ControlP5XMLElement theElement)
           
 float[] arrayValue()
           
 void controlEvent(ControlEvent theEvent)
          ControlListener is an interface that can be implemented by a custom class.
 int getBackgroundHeight()
           
 void hideBar()
           
 boolean isBarVisible()
           
 void mousePressed()
           
 void removeCloseButton()
          remove the close button.
 void setBackgroundColor(int theColor)
           
 void setBackgroundHeight(int theHeight)
           
 void setBarHeight(int theHeight)
           
 void showBar()
           
 java.lang.String stringValue()
          !!! experimental, see ControllerGroup.value()
 float value()
          !!! experimental, see ControllerGroup.value()
 
Methods inherited from class controlP5.ControllerGroup
absolutePosition, add, addCanvas, addDrawable, captionLabel, close, color, continuousUpdateEvents, controller, draw, getAsXML, getColor, getTab, getWindow, hide, id, init, isMoveable, isOpen, isUpdate, isVisible, isXMLsavable, keyEvent, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, name, open, position, remove, remove, remove, removeCanvas, setColorActive, setColorBackground, setColorForeground, setColorLabel, setColorValue, setGroup, setGroup, setId, setLabel, setMousePressed, setMoveable, setOpen, setPosition, setTab, setTab, setTab, setUpdate, setVisible, show, update, updateAbsolutePosition, updateEvents, updateInternalEvents, valueLabel
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ControlGroup

public ControlGroup(ControlP5 theControlP5,
                    ControllerGroup theParent,
                    java.lang.String theName,
                    int theX,
                    int theY,
                    int theW,
                    int theH)
Parameters:
theControlP5 - ControlP5
theParent - ControllerGroup
theName - String
theX - int
theY - int
Method Detail

mousePressed

public void mousePressed()

activateEvent

public ControlGroup activateEvent(boolean theFlag)
activate or deactivate the Event status of a tab.

Parameters:
theFlag - boolean

getBackgroundHeight

public int getBackgroundHeight()

setBackgroundHeight

public void setBackgroundHeight(int theHeight)

setBackgroundColor

public void setBackgroundColor(int theColor)

setBarHeight

public void setBarHeight(int theHeight)

addToXMLElement

public void addToXMLElement(ControlP5XMLElement theElement)
Specified by:
addToXMLElement in interface ControllerInterface
Parameters:
theElement - ControlP5XMLElement

addCloseButton

public void addCloseButton()
add a close button to the controlbar of this controlGroup.


removeCloseButton

public void removeCloseButton()
remove the close button.


hideBar

public void hideBar()

showBar

public void showBar()

isBarVisible

public boolean isBarVisible()

controlEvent

public void controlEvent(ControlEvent theEvent)
Description copied from interface: ControlListener
ControlListener is an interface that can be implemented by a custom class. add the controlListener to a controller with Controller.addListner()

Specified by:
controlEvent in interface ControlListener
Parameters:
theEvent - ControlEvent

stringValue

public java.lang.String stringValue()
!!! experimental, see ControllerGroup.value()

Specified by:
stringValue in interface ControllerInterface
Overrides:
stringValue in class ControllerGroup
Returns:
String

value

public float value()
!!! experimental, see ControllerGroup.value()

Specified by:
value in interface ControllerInterface
Overrides:
value in class ControllerGroup
Returns:
float

arrayValue

public float[] arrayValue()
Overrides:
arrayValue in class ControllerGroup


processing library controlP5 by Andreas Schlegel. (c) 2010