controlP5
Class Chart
java.lang.Object
controlP5.Controller
controlP5.Chart
- All Implemented Interfaces:
- CDrawable, ControllerInterface, ControlP5Constants
public class Chart
- extends Controller
Fields inherited from interface controlP5.ControlP5Constants |
acceptClassList, ACTIVE, ALT, ARC, ARRAY, BACKSPACE, BOOLEAN, BOTTOM, CENTER, CONTROL, controlEventClass, CUSTOM, DECREASE, DEFAULT, DELETE, DOWN, ELLIPSE, ENTER, ESCAPE, EVENT, eventMethod, FIELD, FLOAT, HALF_PI, HIDE, HIGHLIGHT, HORIZONTAL, IMAGE, INCREASE, INTEGER, INVALID, KEYCONTROL, LEFT, LOAD, MENU, METHOD, MOVE, OVER, PI, PRESSED, PRINT, RELEASE, RESET, RIGHT, SAVE, SHIFT, SPRITE, STRING, SWITCH, SWITCH_BACK, SWITCH_FORE, TAB, TOP, TWO_PI, UP, VERBOSE, VERTICAL |
Method Summary |
ChartData |
addData(ChartData theItem)
|
ChartData |
addData(ChartDataSet theChartData,
float theValue)
|
ChartData |
addData(float theValue)
|
ChartData |
addData(int theSetIndex,
ChartData theItem)
|
ChartData |
addData(int theSetIndex,
float theValue)
|
ChartDataSet |
addDataSet()
|
ChartData |
addFirst(float theValue)
|
ChartData |
addFirst(int theSetIndex,
float theValue)
|
void |
addToXMLElement(ControlP5XMLElement theXMLElement)
|
ChartData |
getData(int theIndex)
|
ChartData |
getData(int theTableIndex,
int theItemIndex)
|
ChartDataSet |
getDataSet()
|
ChartDataSet |
getDataSet(int theTableIndex)
|
int |
getResolution()
|
float |
getStrokeWeight()
|
void |
onEnter()
|
void |
onLeave()
|
ChartData |
push(float theValue)
|
ChartData |
push(int theSetIndex,
float theValue)
|
Chart |
removeData(ChartData theItem)
|
Chart |
removeData(int theItemIndex)
|
Chart |
removeData(int theSetIndex,
ChartData theItem)
|
Chart |
removeData(int theSetIndex,
int theItemIndex)
|
Chart |
removeDataSet(ChartDataSet theChartData)
|
void |
removeDataSet(int theIndex)
|
Chart |
removeLast()
|
Chart |
removeLast(int theSetIndex)
|
ChartData |
setData(int theItemIndex,
ChartData theItem)
|
ChartData |
setData(int theSetItem,
int theItemIndex,
ChartData theItem)
|
ChartDataSet |
setDataSet(ChartDataSet theItems)
|
ChartDataSet |
setDataSet(int theIndex,
ChartDataSet theChartData)
|
void |
setResolution(int theValue)
|
void |
setStrokeWeight(float theWeight)
|
void |
setValue(float theValue)
set the value of the controller. |
int |
size()
|
ChartDataSet |
updateData(float[] theValues)
|
ChartDataSet |
updateData(int theSetIndex,
float[] theValues)
|
void |
updateDisplayMode(int theMode)
|
Methods inherited from class controlP5.Controller |
absolutePosition, add, addListener, arrayValue, behavior, captionLabel, changeValue, color, continuousUpdateEvents, controlWindow, defaultValue, disableSprite, draw, enableSprite, getAsXML, getColor, getHeight, getPickingColor, getSprite, getTab, getWidth, getWindow, hide, id, init, isBroadcast, isInside, isLock, isMousePressed, isMoveable, isUpdate, isUserInteraction, isVisible, isXMLsavable, keyEvent, label, linebreak, listenerSize, lock, max, min, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, name, parent, plugTo, plugTo, position, remove, remove, removeBehavior, removeListener, setArrayValue, setBehavior, setBroadcast, setCaptionLabel, setColor, setColorActive, setColorBackground, setColorCaptionLabel, setColorForeground, setColorLabel, setColorValue, setColorValueLabel, setDecimalPrecision, setDefaultValue, setDisplay, setDisplay, setGroup, setGroup, setHeight, setId, setImage, setImage, setImages, setImages, setLabel, setLabelVisible, setLock, setMax, setMin, setMousePressed, setMoveable, setParent, setPosition, setSize, setSize, setSprite, setTab, setTab, setUpdate, setUserInteraction, setValueLabel, setVisible, setWidth, setWindow, setWindow, show, stringValue, toString, trigger, unlock, unplugFrom, unplugFrom, update, updateAbsolutePosition, updateEvents, updateInternalEvents, updateSize, value, valueLabel |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LINE
public static final int LINE
- See Also:
- Constant Field Values
BAR
public static final int BAR
- See Also:
- Constant Field Values
HISTOGRAM
public static final int HISTOGRAM
- See Also:
- Constant Field Values
PIE
public static final int PIE
- See Also:
- Constant Field Values
AREA
public static final int AREA
- See Also:
- Constant Field Values
addData
public ChartData addData(ChartData theItem)
addData
public ChartData addData(int theSetIndex,
ChartData theItem)
addData
public ChartData addData(float theValue)
addData
public ChartData addData(int theSetIndex,
float theValue)
addData
public ChartData addData(ChartDataSet theChartData,
float theValue)
push
public ChartData push(float theValue)
push
public ChartData push(int theSetIndex,
float theValue)
addFirst
public ChartData addFirst(float theValue)
addFirst
public ChartData addFirst(int theSetIndex,
float theValue)
removeLast
public Chart removeLast()
removeLast
public Chart removeLast(int theSetIndex)
removeData
public Chart removeData(ChartData theItem)
removeData
public Chart removeData(int theSetIndex,
ChartData theItem)
removeData
public Chart removeData(int theItemIndex)
removeData
public Chart removeData(int theSetIndex,
int theItemIndex)
setData
public ChartData setData(int theItemIndex,
ChartData theItem)
setData
public ChartData setData(int theSetItem,
int theItemIndex,
ChartData theItem)
addDataSet
public ChartDataSet addDataSet()
setDataSet
public ChartDataSet setDataSet(ChartDataSet theItems)
setDataSet
public ChartDataSet setDataSet(int theIndex,
ChartDataSet theChartData)
removeDataSet
public Chart removeDataSet(ChartDataSet theChartData)
removeDataSet
public void removeDataSet(int theIndex)
updateData
public ChartDataSet updateData(float[] theValues)
updateData
public ChartDataSet updateData(int theSetIndex,
float[] theValues)
getDataSet
public ChartDataSet getDataSet(int theTableIndex)
getDataSet
public ChartDataSet getDataSet()
getData
public ChartData getData(int theTableIndex,
int theItemIndex)
getData
public ChartData getData(int theIndex)
size
public int size()
onEnter
public void onEnter()
onLeave
public void onLeave()
setValue
public void setValue(float theValue)
- Description copied from class:
Controller
- set the value of the controller.
- Specified by:
setValue
in class Controller
- Parameters:
theValue
- float
addToXMLElement
public void addToXMLElement(ControlP5XMLElement theXMLElement)
- Parameters:
theXMLElement
- ControlP5XMLElement
setStrokeWeight
public void setStrokeWeight(float theWeight)
getStrokeWeight
public float getStrokeWeight()
setResolution
public void setResolution(int theValue)
getResolution
public int getResolution()
updateDisplayMode
public void updateDisplayMode(int theMode)
processing library controlP5 by Andreas Schlegel. (c) 2010