controlP5
Interface ControllerInterface
- All Known Implementing Classes:
- Bang, Button, Chart, CheckBox, ColorPicker, ControlGroup, Controller, ControllerGroup, DropdownList, Knob, ListBox, Matrix, MultiList, MultiListButton, Numberbox, Radio, RadioButton, Range, ScrollList, Slider, Slider2D, Tab, Textarea, Textfield, Textlabel, Toggle
public interface ControllerInterface
init
void init()
getWidth
int getWidth()
getHeight
int getHeight()
position
CVector3f position()
- Returns:
- CVector3f
setPosition
void setPosition(float theX,
float theY)
- Parameters:
theX
- floattheY
- float
absolutePosition
CVector3f absolutePosition()
- Returns:
- CVector3f
updateAbsolutePosition
void updateAbsolutePosition()
update
void update()
setUpdate
void setUpdate(boolean theFlag)
isUpdate
boolean isUpdate()
- Returns:
- boolean
updateEvents
void updateEvents()
continuousUpdateEvents
void continuousUpdateEvents()
updateInternalEvents
void updateInternalEvents(processing.core.PApplet theApplet)
- a method for putting input events like e.g. mouse or keyboard events and
queries. this has been taken out of the draw method for better
overwriting capability.
draw
void draw(processing.core.PApplet theApplet)
- Parameters:
theApplet
- PApplet
add
void add(ControllerInterface theElement)
- Parameters:
theElement
- ControllerInterface
remove
void remove(ControllerInterface theElement)
- Parameters:
theElement
- ControllerInterface
remove
void remove()
name
java.lang.String name()
- Returns:
- String
getWindow
ControlWindow getWindow()
- Returns:
- ControlWindow
getTab
Tab getTab()
- Returns:
- Tab
setMousePressed
boolean setMousePressed(boolean theStatus)
- Parameters:
theStatus
- boolean
- Returns:
- boolean
keyEvent
void keyEvent(java.awt.event.KeyEvent theEvent)
- Parameters:
theEvent
- KeyEvent
setId
void setId(int theValue)
- Parameters:
theValue
- int
id
int id()
- Returns:
- int
setLabel
void setLabel(java.lang.String theString)
- Parameters:
theString
- String
setColorActive
void setColorActive(int theColor)
- Parameters:
theColor
- int
setColorForeground
void setColorForeground(int theColor)
- Parameters:
theColor
- int
setColorBackground
void setColorBackground(int theColor)
- Parameters:
theColor
- int
setColorLabel
void setColorLabel(int theColor)
- Parameters:
theColor
- int
setColorValue
void setColorValue(int theColor)
- Parameters:
theColor
- int
color
CColor color()
addToXMLElement
void addToXMLElement(ControlP5XMLElement theXMLElement)
- Parameters:
theXMLElement
- ControlP5XMLElement
getAsXML
ControlP5XMLElement getAsXML()
- Returns:
- ControlP5XMLElement
show
void show()
hide
void hide()
isVisible
boolean isVisible()
- Returns:
- boolean
moveTo
void moveTo(ControlGroup theGroup,
Tab theTab,
ControlWindow theWindow)
- Parameters:
theGroup
- ControlGrouptheTab
- TabtheWindow
- ControlWindow
value
float value()
stringValue
java.lang.String stringValue()
isXMLsavable
boolean isXMLsavable()
getPickingColor
int getPickingColor()
parent
ControllerInterface parent()
processing library controlP5 by Andreas Schlegel. (c) 2010