controlP5
Class ScrollList

java.lang.Object
  extended by controlP5.ControllerGroup
      extended by controlP5.ControlGroup
          extended by controlP5.ScrollList
All Implemented Interfaces:
ControllerInterface, ControlListener

public class ScrollList
extends ControlGroup
implements ControlListener


Method Summary
 Button addItem(java.lang.String theName, int theValue)
          add an item to the scrollList.
 void addToXMLElement(ControlP5XMLElement theElement)
           
 void controlEvent(ControlEvent theEvent)
          ControlListener is an interface that can be implemented by a custom class.
 void hideScrollbar()
           
 boolean isScrollbarVisible()
           
 void removeItem(java.lang.String theItemName)
          remove an item from the scroll list.
 void scroll(float theValue)
          scroll the scrollList remotely.
 void setItemHeight(int theHeight)
           
 void showScrollbar()
           
 
Methods inherited from class controlP5.ControlGroup
activateEvent, addCloseButton, arrayValue, getBackgroundHeight, hideBar, isBarVisible, mousePressed, removeCloseButton, setBackgroundColor, setBackgroundHeight, setBarHeight, showBar, stringValue, 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
 

Method Detail

hideScrollbar

public void hideScrollbar()

showScrollbar

public void showScrollbar()

isScrollbarVisible

public boolean isScrollbarVisible()

scroll

public void scroll(float theValue)
scroll the scrollList remotely. values must range from 0 to 1.

Parameters:
theValue -

setItemHeight

public void setItemHeight(int theHeight)

addItem

public Button addItem(java.lang.String theName,
                      int theValue)
add an item to the scrollList.

Parameters:
theName - String
theValue - int
Returns:
Button

removeItem

public void removeItem(java.lang.String theItemName)
remove an item from the scroll list.

Parameters:
theItemName - String

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
Overrides:
controlEvent in class ControlGroup
Parameters:
theEvent - ControlEvent

addToXMLElement

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


processing library controlP5 by Andreas Schlegel. (c) 2010