controlP5
Class MultiListButton

java.lang.Object
  extended by controlP5.Controller
      extended by controlP5.Button
          extended by controlP5.MultiListButton
All Implemented Interfaces:
CDrawable, ControllerInterface, ControlP5Constants, MultiListInterface

public class MultiListButton
extends Button
implements MultiListInterface


Field Summary
 
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
 
Method Summary
 MultiListButton add(java.lang.String theName, float theValue)
          add a new button to the sublist of this multilist button.
 void addToXMLElement(ControlP5XMLElement theElement)
           
 void close()
           
 void close(MultiListInterface theInterface)
           
 void mouseReleasedOutside()
           
 boolean observe()
           
 void open()
           
 void remove()
          remove a controller from controlP5.
 Controller setHeight(int theHeight)
          set the height of a multlist button.
 Controller setWidth(int theWidth)
          set the width of a multlist button.
 java.util.Vector subelements()
           
 void updateLocation(float theX, float theY)
           
 void updateRect(float theX, float theY, float theW, float theH)
           
 
Methods inherited from class controlP5.Button
draw, mousePressed, mouseReleased, setValue, update
 
Methods inherited from class controlP5.Controller
absolutePosition, add, addListener, arrayValue, behavior, captionLabel, changeValue, color, continuousUpdateEvents, controlWindow, defaultValue, disableSprite, enableSprite, getAsXML, getColor, getHeight, getSprite, getTab, getWidth, getWindow, hide, id, init, isBroadcast, isInside, isMousePressed, isUpdate, isVisible, isXMLsavable, keyEvent, label, listenerSize, max, min, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, name, parent, position, remove, removeBehavior, removeListener, setArrayValue, setBehavior, setBroadcast, setCaptionLabel, setColorActive, setColorBackground, setColorForeground, setColorLabel, setColorValue, setDecimalPrecision, setDefaultValue, setGroup, setGroup, setId, setLabel, setLabelVisible, setMax, setMin, setMousePressed, setMoveable, setParent, setPosition, setSprite, setTab, setTab, setUpdate, setValueLabel, setVisible, setWindow, setWindow, show, stringValue, trigger, updateAbsolutePosition, updateEvents, updateInternalEvents, value, valueLabel
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface controlP5.MultiListInterface
draw, name
 

Method Detail

remove

public void remove()
Description copied from class: Controller
remove a controller from controlP5.

Specified by:
remove in interface ControllerInterface
Overrides:
remove in class Controller

subelements

public java.util.Vector subelements()
Specified by:
subelements in interface MultiListInterface
Returns:
Vector

updateRect

public void updateRect(float theX,
                       float theY,
                       float theW,
                       float theH)
Parameters:
theX - float
theY - float
theW - float
theH - float

updateLocation

public void updateLocation(float theX,
                           float theY)
Specified by:
updateLocation in interface MultiListInterface
Parameters:
theX - float
theY - float

setWidth

public Controller setWidth(int theWidth)
set the width of a multlist button.

Overrides:
setWidth in class Controller
Parameters:
theWidth - int

setHeight

public Controller setHeight(int theHeight)
set the height of a multlist button.

Overrides:
setHeight in class Controller
Parameters:
theHeight - int

add

public MultiListButton add(java.lang.String theName,
                           float theValue)
add a new button to the sublist of this multilist button.

Parameters:
theName - String
theValue - int
Returns:
MultiListButton

mouseReleasedOutside

public void mouseReleasedOutside()
Overrides:
mouseReleasedOutside in class Button

observe

public boolean observe()
Specified by:
observe in interface MultiListInterface
Parameters:
theMousePosition - CVector3f
Returns:
boolean

close

public void close(MultiListInterface theInterface)
Specified by:
close in interface MultiListInterface
Parameters:
theInterface - MultiListInterface

close

public void close()
Specified by:
close in interface MultiListInterface

open

public void open()
Specified by:
open in interface MultiListInterface

addToXMLElement

public void addToXMLElement(ControlP5XMLElement theElement)
Specified by:
addToXMLElement in interface ControllerInterface
Specified by:
addToXMLElement in interface MultiListInterface
Overrides:
addToXMLElement in class Button
Parameters:
theElement - ControlP5XMLElement


processing library controlP5 by Andreas Schlegel. (c) 2010