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


Method Summary
 CVector3f absolutePosition()
           
 void add(ControllerInterface theElement)
           
 void addToXMLElement(ControlP5XMLElement theXMLElement)
           
 CColor color()
           
 void continuousUpdateEvents()
           
 void draw(processing.core.PApplet theApplet)
           
 ControlP5XMLElement getAsXML()
           
 int getHeight()
           
 int getPickingColor()
           
 Tab getTab()
           
 int getWidth()
           
 ControlWindow getWindow()
           
 void hide()
           
 int id()
           
 void init()
           
 boolean isUpdate()
           
 boolean isVisible()
           
 boolean isXMLsavable()
           
 void keyEvent(java.awt.event.KeyEvent theEvent)
           
 void moveTo(ControlGroup theGroup, Tab theTab, ControlWindow theWindow)
           
 java.lang.String name()
           
 ControllerInterface parent()
           
 CVector3f position()
           
 void remove()
           
 void remove(ControllerInterface theElement)
           
 void setColorActive(int theColor)
           
 void setColorBackground(int theColor)
           
 void setColorForeground(int theColor)
           
 void setColorLabel(int theColor)
           
 void setColorValue(int theColor)
           
 void setId(int theValue)
           
 void setLabel(java.lang.String theString)
           
 boolean setMousePressed(boolean theStatus)
           
 void setPosition(float theX, float theY)
           
 void setUpdate(boolean theFlag)
           
 void show()
           
 java.lang.String stringValue()
           
 void update()
           
 void updateAbsolutePosition()
           
 void updateEvents()
           
 void updateInternalEvents(processing.core.PApplet theApplet)
          a method for putting input events like e.g.
 float value()
           
 

Method Detail

init

void init()

getWidth

int getWidth()

getHeight

int getHeight()

position

CVector3f position()
Returns:
CVector3f

setPosition

void setPosition(float theX,
                 float theY)
Parameters:
theX - float
theY - 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 - ControlGroup
theTab - Tab
theWindow - 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