mirror of
https://github.com/sojamo/controlp5
synced 2024-12-23 03:33:49 +01:00
1530 lines
79 KiB
HTML
1530 lines
79 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||
|
<!-- NewPage -->
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<!-- Generated by javadoc (version 1.7.0_51) on Sun Apr 27 21:39:46 SGT 2014 -->
|
||
|
<title>Chart (Javadocs: controlP5)</title>
|
||
|
<meta name="date" content="2014-04-27">
|
||
|
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
|
||
|
</head>
|
||
|
<body>
|
||
|
<script type="text/javascript"><!--
|
||
|
if (location.href.indexOf('is-external=true') == -1) {
|
||
|
parent.document.title="Chart (Javadocs: controlP5)";
|
||
|
}
|
||
|
//-->
|
||
|
</script>
|
||
|
<noscript>
|
||
|
<div>JavaScript is disabled on your browser.</div>
|
||
|
</noscript>
|
||
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
||
|
<div class="topNav"><a name="navbar_top">
|
||
|
<!-- -->
|
||
|
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="navList" title="Navigation">
|
||
|
<li><a href="../controlP5/package-summary.html">Package</a></li>
|
||
|
<li class="navBarCell1Rev">Class</li>
|
||
|
<li><a href="package-tree.html">Tree</a></li>
|
||
|
<li><a href="../index-all.html">Index</a></li>
|
||
|
<li><a href="../help-doc.html">Help</a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<div class="subNav">
|
||
|
<ul class="navList">
|
||
|
<li><a href="../controlP5/CDrawable.html" title="interface in controlP5"><span class="strong">Prev Class</span></a></li>
|
||
|
<li><a href="../controlP5/Chart.ChartViewArea.html" title="class in controlP5"><span class="strong">Next Class</span></a></li>
|
||
|
</ul>
|
||
|
<ul class="navList">
|
||
|
<li><a href="../index.html?controlP5/Chart.html" target="_top">Frames</a></li>
|
||
|
<li><a href="Chart.html" target="_top">No Frames</a></li>
|
||
|
</ul>
|
||
|
<ul class="navList" id="allclasses_navbar_top">
|
||
|
<li><a href="../allclasses-noframe.html">All Classes</a></li>
|
||
|
</ul>
|
||
|
<div>
|
||
|
<script type="text/javascript"><!--
|
||
|
allClassesLink = document.getElementById("allclasses_navbar_top");
|
||
|
if(window==top) {
|
||
|
allClassesLink.style.display = "block";
|
||
|
}
|
||
|
else {
|
||
|
allClassesLink.style.display = "none";
|
||
|
}
|
||
|
//-->
|
||
|
</script>
|
||
|
</div>
|
||
|
<div>
|
||
|
<ul class="subNavList">
|
||
|
<li>Summary: </li>
|
||
|
<li><a href="#nested_class_summary">Nested</a> | </li>
|
||
|
<li><a href="#field_summary">Field</a> | </li>
|
||
|
<li><a href="#constructor_summary">Constr</a> | </li>
|
||
|
<li><a href="#method_summary">Method</a></li>
|
||
|
</ul>
|
||
|
<ul class="subNavList">
|
||
|
<li>Detail: </li>
|
||
|
<li><a href="#field_detail">Field</a> | </li>
|
||
|
<li><a href="#constructor_detail">Constr</a> | </li>
|
||
|
<li><a href="#method_detail">Method</a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<a name="skip-navbar_top">
|
||
|
<!-- -->
|
||
|
</a></div>
|
||
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
||
|
<!-- ======== START OF CLASS DATA ======== -->
|
||
|
<div class="header">
|
||
|
<div class="subTitle">controlP5</div>
|
||
|
<h2 title="Class Chart" class="title">Class Chart</h2>
|
||
|
</div>
|
||
|
<div class="contentContainer">
|
||
|
<ul class="inheritance">
|
||
|
<li>java.lang.Object</li>
|
||
|
<li>
|
||
|
<ul class="inheritance">
|
||
|
<li><a href="../controlP5/Controller.html" title="class in controlP5">controlP5.Controller</a><<a href="../controlP5/Chart.html" title="class in controlP5">Chart</a>></li>
|
||
|
<li>
|
||
|
<ul class="inheritance">
|
||
|
<li>controlP5.Chart</li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<div class="description">
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<dl>
|
||
|
<dt>All Implemented Interfaces:</dt>
|
||
|
<dd><a href="../controlP5/CDrawable.html" title="interface in controlP5">CDrawable</a>, <a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><<a href="../controlP5/Chart.html" title="class in controlP5">Chart</a>>, <a href="../controlP5/ControlP5Constants.html" title="interface in controlP5">ControlP5Constants</a></dd>
|
||
|
</dl>
|
||
|
<hr>
|
||
|
<br>
|
||
|
<pre>public class <span class="strong">Chart</span>
|
||
|
extends <a href="../controlP5/Controller.html" title="class in controlP5">Controller</a><<a href="../controlP5/Chart.html" title="class in controlP5">Chart</a>></pre>
|
||
|
<div class="block">Use charts to display float array data as line chart, yet experimental, but see the
|
||
|
ControlP5chart example for more details.</div>
|
||
|
<dl><script type="text/javascript">
|
||
|
<!--
|
||
|
document.getElementsByTagName('html')[0].className = 'isjs';function toggle(dt) { var display, dd=dt; do{ dd = dd.nextSibling } while(dd.tagName!='DD'); toOpen =!dd.style.display;dd.style.display = toOpen? 'block':''; dt.getElementsByTagName('span')[0].innerHTML = toOpen? '-':'+' ; }
|
||
|
-->
|
||
|
</script>
|
||
|
<div id="test" class="toggleList"><dl><dt onclick="toggle(this);"><span>+</span>Example</dt><dd><code><pre>/**
|
||
|
* ControlP5 Chart
|
||
|
*
|
||
|
* find a list of public methods available for the Chart Controller
|
||
|
* at the bottom of this sketch.
|
||
|
*
|
||
|
* by Andreas Schlegel, 2012
|
||
|
* www.sojamo.de/libraries/controlp5
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
|
||
|
import controlP5.*;
|
||
|
|
||
|
ControlP5 cp5;
|
||
|
|
||
|
Chart myChart;
|
||
|
|
||
|
void setup() {
|
||
|
size(400, 700);
|
||
|
smooth();
|
||
|
cp5 = new ControlP5(this);
|
||
|
cp5.printPublicMethodsFor(Chart.class);
|
||
|
myChart = cp5.addChart("hello")
|
||
|
.setPosition(50, 50)
|
||
|
.setSize(200, 200)
|
||
|
.setRange(-20, 20)
|
||
|
.setView(Chart.BAR) // use Chart.LINE, Chart.PIE, Chart.AREA, Chart.BAR_CENTERED
|
||
|
;
|
||
|
|
||
|
myChart.getColor().setBackground(color(255, 100));
|
||
|
|
||
|
|
||
|
myChart.addDataSet("world");
|
||
|
myChart.setColors("world", color(255,0,255),color(255,0,0));
|
||
|
myChart.setData("world", new float[4]);
|
||
|
|
||
|
myChart.setStrokeWeight(1.5);
|
||
|
|
||
|
myChart.addDataSet("earth");
|
||
|
myChart.setColors("earth", color(255), color(0, 255, 0));
|
||
|
myChart.updateData("earth", 1, 2, 10, 3);
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
void draw() {
|
||
|
background(0);
|
||
|
// unshift: add data from left to right (first in)
|
||
|
myChart.unshift("world", (sin(frameCount*0.01)*10));
|
||
|
|
||
|
// push: add data from right to left (last in)
|
||
|
myChart.push("earth", (sin(frameCount*0.1)*10));
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
/*
|
||
|
a list of all methods available for the Chart Controller
|
||
|
use ControlP5.printPublicMethodsFor(Chart.class);
|
||
|
to print the following list into the console.
|
||
|
|
||
|
You can find further details about class Chart in the javadoc.
|
||
|
|
||
|
Format:
|
||
|
ClassName : returnType methodName(parameter type)
|
||
|
|
||
|
|
||
|
controlP5.Chart : Chart addData(ChartData)
|
||
|
controlP5.Chart : Chart addData(ChartDataSet, float)
|
||
|
controlP5.Chart : Chart addData(String, ChartData)
|
||
|
controlP5.Chart : Chart addData(String, float)
|
||
|
controlP5.Chart : Chart addData(float)
|
||
|
controlP5.Chart : Chart addDataSet(String)
|
||
|
controlP5.Chart : Chart addFirst(String, float)
|
||
|
controlP5.Chart : Chart addFirst(float)
|
||
|
controlP5.Chart : Chart removeData(ChartData)
|
||
|
controlP5.Chart : Chart removeData(String, ChartData)
|
||
|
controlP5.Chart : Chart removeData(String, int)
|
||
|
controlP5.Chart : Chart removeData(int)
|
||
|
controlP5.Chart : Chart removeDataSet(String)
|
||
|
controlP5.Chart : Chart removeLast()
|
||
|
controlP5.Chart : Chart removeLast(String)
|
||
|
controlP5.Chart : Chart setData(String, int, ChartData)
|
||
|
controlP5.Chart : Chart setData(int, ChartData)
|
||
|
controlP5.Chart : Chart setDataSet(ChartDataSet)
|
||
|
controlP5.Chart : Chart setDataSet(String, ChartDataSet)
|
||
|
controlP5.Chart : Chart setRange(float, float)
|
||
|
controlP5.Chart : Chart setResolution(int)
|
||
|
controlP5.Chart : Chart setStrokeWeight(float)
|
||
|
controlP5.Chart : Chart setValue(float)
|
||
|
controlP5.Chart : Chart setView(int)
|
||
|
controlP5.Chart : Chart unshift(String, float)
|
||
|
controlP5.Chart : Chart unshift(float)
|
||
|
controlP5.Chart : ChartData getData(String, int)
|
||
|
controlP5.Chart : ChartDataSet getDataSet(String)
|
||
|
controlP5.Chart : LinkedHashMap getDataSet()
|
||
|
controlP5.Chart : String getInfo()
|
||
|
controlP5.Chart : String toString()
|
||
|
controlP5.Chart : float getStrokeWeight()
|
||
|
controlP5.Chart : float[] getValuesFrom(String)
|
||
|
controlP5.Chart : int getResolution()
|
||
|
controlP5.Chart : int size()
|
||
|
controlP5.Chart : void onEnter()
|
||
|
controlP5.Chart : void onLeave()
|
||
|
controlP5.Controller : CColor getColor()
|
||
|
controlP5.Controller : Chart addCallback(CallbackListener)
|
||
|
controlP5.Controller : Chart addListener(ControlListener)
|
||
|
controlP5.Controller : Chart align(int, int, int, int)
|
||
|
controlP5.Controller : Chart bringToFront()
|
||
|
controlP5.Controller : Chart bringToFront(ControllerInterface)
|
||
|
controlP5.Controller : Chart hide()
|
||
|
controlP5.Controller : Chart linebreak()
|
||
|
controlP5.Controller : Chart listen(boolean)
|
||
|
controlP5.Controller : Chart lock()
|
||
|
controlP5.Controller : Chart plugTo(Object)
|
||
|
controlP5.Controller : Chart plugTo(Object, String)
|
||
|
controlP5.Controller : Chart plugTo(Object[])
|
||
|
controlP5.Controller : Chart plugTo(Object[], String)
|
||
|
controlP5.Controller : Chart registerProperty(String)
|
||
|
controlP5.Controller : Chart registerProperty(String, String)
|
||
|
controlP5.Controller : Chart registerTooltip(String)
|
||
|
controlP5.Controller : Chart removeBehavior()
|
||
|
controlP5.Controller : Chart removeCallback()
|
||
|
controlP5.Controller : Chart removeCallback(CallbackListener)
|
||
|
controlP5.Controller : Chart removeListener(ControlListener)
|
||
|
controlP5.Controller : Chart removeProperty(String)
|
||
|
controlP5.Controller : Chart removeProperty(String, String)
|
||
|
controlP5.Controller : Chart setArrayValue(float[])
|
||
|
controlP5.Controller : Chart setArrayValue(int, float)
|
||
|
controlP5.Controller : Chart setBehavior(ControlBehavior)
|
||
|
controlP5.Controller : Chart setBroadcast(boolean)
|
||
|
controlP5.Controller : Chart setCaptionLabel(String)
|
||
|
controlP5.Controller : Chart setColor(CColor)
|
||
|
controlP5.Controller : Chart setColorActive(int)
|
||
|
controlP5.Controller : Chart setColorBackground(int)
|
||
|
controlP5.Controller : Chart setColorCaptionLabel(int)
|
||
|
controlP5.Controller : Chart setColorForeground(int)
|
||
|
controlP5.Controller : Chart setColorValueLabel(int)
|
||
|
controlP5.Controller : Chart setDecimalPrecision(int)
|
||
|
controlP5.Controller : Chart setDefaultValue(float)
|
||
|
controlP5.Controller : Chart setHeight(int)
|
||
|
controlP5.Controller : Chart setId(int)
|
||
|
controlP5.Controller : Chart setImages(PImage, PImage, PImage)
|
||
|
controlP5.Controller : Chart setImages(PImage, PImage, PImage, PImage)
|
||
|
controlP5.Controller : Chart setLabelVisible(boolean)
|
||
|
controlP5.Controller : Chart setLock(boolean)
|
||
|
controlP5.Controller : Chart setMax(float)
|
||
|
controlP5.Controller : Chart setMin(float)
|
||
|
controlP5.Controller : Chart setMouseOver(boolean)
|
||
|
controlP5.Controller : Chart setMoveable(boolean)
|
||
|
controlP5.Controller : Chart setPosition(PVector)
|
||
|
controlP5.Controller : Chart setPosition(float, float)
|
||
|
controlP5.Controller : Chart setSize(PImage)
|
||
|
controlP5.Controller : Chart setSize(int, int)
|
||
|
controlP5.Controller : Chart setStringValue(String)
|
||
|
controlP5.Controller : Chart setUpdate(boolean)
|
||
|
controlP5.Controller : Chart setValueLabel(String)
|
||
|
controlP5.Controller : Chart setView(ControllerView)
|
||
|
controlP5.Controller : Chart setVisible(boolean)
|
||
|
controlP5.Controller : Chart setWidth(int)
|
||
|
controlP5.Controller : Chart show()
|
||
|
controlP5.Controller : Chart unlock()
|
||
|
controlP5.Controller : Chart unplugFrom(Object)
|
||
|
controlP5.Controller : Chart unplugFrom(Object[])
|
||
|
controlP5.Controller : Chart unregisterTooltip()
|
||
|
controlP5.Controller : Chart update()
|
||
|
controlP5.Controller : Chart updateSize()
|
||
|
controlP5.Controller : ControlBehavior getBehavior()
|
||
|
controlP5.Controller : ControlWindow getControlWindow()
|
||
|
controlP5.Controller : ControlWindow getWindow()
|
||
|
controlP5.Controller : ControllerProperty getProperty(String)
|
||
|
controlP5.Controller : ControllerProperty getProperty(String, String)
|
||
|
controlP5.Controller : Label getCaptionLabel()
|
||
|
controlP5.Controller : Label getValueLabel()
|
||
|
controlP5.Controller : List getControllerPlugList()
|
||
|
controlP5.Controller : PImage setImage(PImage)
|
||
|
controlP5.Controller : PImage setImage(PImage, int)
|
||
|
controlP5.Controller : PVector getAbsolutePosition()
|
||
|
controlP5.Controller : PVector getPosition()
|
||
|
controlP5.Controller : String getAddress()
|
||
|
controlP5.Controller : String getInfo()
|
||
|
controlP5.Controller : String getName()
|
||
|
controlP5.Controller : String getStringValue()
|
||
|
controlP5.Controller : String toString()
|
||
|
controlP5.Controller : Tab getTab()
|
||
|
controlP5.Controller : boolean isActive()
|
||
|
controlP5.Controller : boolean isBroadcast()
|
||
|
controlP5.Controller : boolean isInside()
|
||
|
controlP5.Controller : boolean isLabelVisible()
|
||
|
controlP5.Controller : boolean isListening()
|
||
|
controlP5.Controller : boolean isLock()
|
||
|
controlP5.Controller : boolean isMouseOver()
|
||
|
controlP5.Controller : boolean isMousePressed()
|
||
|
controlP5.Controller : boolean isMoveable()
|
||
|
controlP5.Controller : boolean isUpdate()
|
||
|
controlP5.Controller : boolean isVisible()
|
||
|
controlP5.Controller : float getArrayValue(int)
|
||
|
controlP5.Controller : float getDefaultValue()
|
||
|
controlP5.Controller : float getMax()
|
||
|
controlP5.Controller : float getMin()
|
||
|
controlP5.Controller : float getValue()
|
||
|
controlP5.Controller : float[] getArrayValue()
|
||
|
controlP5.Controller : int getDecimalPrecision()
|
||
|
controlP5.Controller : int getHeight()
|
||
|
controlP5.Controller : int getId()
|
||
|
controlP5.Controller : int getWidth()
|
||
|
controlP5.Controller : int listenerSize()
|
||
|
controlP5.Controller : void remove()
|
||
|
controlP5.Controller : void setView(ControllerView, int)
|
||
|
java.lang.Object : String toString()
|
||
|
java.lang.Object : boolean equals(Object)
|
||
|
|
||
|
|
||
|
*/
|
||
|
|
||
|
|
||
|
|
||
|
</pre></code></dd></dl></div></dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<div class="summary">
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<!-- ======== NESTED CLASS SUMMARY ======== -->
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList"><a name="nested_class_summary">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<h3>Nested Class Summary</h3>
|
||
|
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
|
||
|
<caption><span>Nested Classes</span><span class="tabEnd"> </span></caption>
|
||
|
<tr>
|
||
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
||
|
<th class="colLast" scope="col">Class and Description</th>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code>class </code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.ChartViewArea.html" title="class in controlP5">Chart.ChartViewArea</a></strong></code> </td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code>class </code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.ChartViewBar.html" title="class in controlP5">Chart.ChartViewBar</a></strong></code> </td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code>class </code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.ChartViewBarCentered.html" title="class in controlP5">Chart.ChartViewBarCentered</a></strong></code> </td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code>class </code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.ChartViewLine.html" title="class in controlP5">Chart.ChartViewLine</a></strong></code> </td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code>class </code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.ChartViewPie.html" title="class in controlP5">Chart.ChartViewPie</a></strong></code> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<!-- =========== FIELD SUMMARY =========== -->
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList"><a name="field_summary">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<h3>Field Summary</h3>
|
||
|
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
|
||
|
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
|
||
|
<tr>
|
||
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
||
|
<th class="colLast" scope="col">Field and Description</th>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code>static int</code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#AREA">AREA</a></strong></code> </td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code>static int</code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#BAR">BAR</a></strong></code> </td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code>static int</code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#BAR_CENTERED">BAR_CENTERED</a></strong></code> </td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code>static int</code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#HISTOGRAM">HISTOGRAM</a></strong></code> </td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code>static int</code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#LINE">LINE</a></strong></code> </td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code>static int</code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#PIE">PIE</a></strong></code> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList"><a name="fields_inherited_from_class_controlP5.Controller">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<h3>Fields inherited from class controlP5.<a href="../controlP5/Controller.html" title="class in controlP5">Controller</a></h3>
|
||
|
<code><a href="../controlP5/Controller.html#autoHeight">autoHeight</a>, <a href="../controlP5/Controller.html#autoSpacing">autoSpacing</a>, <a href="../controlP5/Controller.html#autoWidth">autoWidth</a></code></li>
|
||
|
</ul>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList"><a name="fields_inherited_from_class_controlP5.ControlP5Constants">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<h3>Fields inherited from interface controlP5.<a href="../controlP5/ControlP5Constants.html" title="interface in controlP5">ControlP5Constants</a></h3>
|
||
|
<code><a href="../controlP5/ControlP5Constants.html#acceptClassList">acceptClassList</a>, <a href="../controlP5/ControlP5Constants.html#ACTION_BROADCAST">ACTION_BROADCAST</a>, <a href="../controlP5/ControlP5Constants.html#ACTION_CLICK">ACTION_CLICK</a>, <a href="../controlP5/ControlP5Constants.html#ACTION_DRAG">ACTION_DRAG</a>, <a href="../controlP5/ControlP5Constants.html#ACTION_ENTER">ACTION_ENTER</a>, <a href="../controlP5/ControlP5Constants.html#ACTION_EXIT">ACTION_EXIT</a>, <a href="../controlP5/ControlP5Constants.html#ACTION_LEAVE">ACTION_LEAVE</a>, <a href="../controlP5/ControlP5Constants.html#ACTION_MOVE">ACTION_MOVE</a>, <a href="../controlP5/ControlP5Constants.html#ACTION_PRESS">ACTION_PRESS</a>, <a href="../controlP5/ControlP5Constants.html#ACTION_PRESSED">ACTION_PRESSED</a>, <a href="../controlP5/ControlP5Constants.html#ACTION_RELEASE">ACTION_RELEASE</a>, <a href="../controlP5/ControlP5Constants.html#ACTION_RELEASED">ACTION_RELEASED</a>, <a href="../controlP5/ControlP5Constants.html#ACTION_RELEASEDOUTSIDE">ACTION_RELEASEDOUTSIDE</a>, <a href="../controlP5/ControlP5Constants.html#ACTION_WHEEL">ACTION_WHEEL</a>, <a href="../controlP5/ControlP5Constants.html#ACTIVE">ACTIVE</a>, <a href="../controlP5/ControlP5Constants.html#ALL">ALL</a>, <a href="../controlP5/ControlP5Constants.html#ALT">ALT</a>, <a href="../controlP5/ControlP5Constants.html#AQUA">AQUA</a>, <a href="../controlP5/ControlP5Constants.html#ARC">ARC</a>, <a href="../controlP5/ControlP5Constants.html#ARRAY">ARRAY</a>, <a href="../controlP5/ControlP5Constants.html#BACKSPACE">BACKSPACE</a>, <a href="../controlP5/ControlP5Constants.html#BASELINE">BASELINE</a>, <a href="../controlP5/ControlP5Constants.html#BITFONT">BITFONT</a>, <a href="../controlP5/ControlP5Constants.html#BLACK">BLACK</a>, <a href="../controlP5/ControlP5Constants.html#BLUE">BLUE</a>, <a href="../controlP5/ControlP5Constants.html#BOOLEAN">BOOLEAN</a>, <a href="../controlP5/ControlP5Constants.html#BOTTOM">BOTTOM</a>, <a href="../controlP5/ControlP5Constants.html#BOTTOM_OUTSIDE">BOTTOM_OUTSIDE</a>, <a href="../controlP5/ControlP5Constants.html#CAPTIONLABEL">CAPTIONLABEL</a>, <a href="../controlP5/ControlP5Constants.html#CENTER">CENTER</a>, <a href="../controlP5/ControlP5Constants.html#CHECKBOX">CHECKBOX</a>, <a href="../controlP5/ControlP5Constants.html#COMMANDKEY">COMMANDKEY</a>, <a href="../controlP5/ControlP5Constants.html#CONTROL">CONTROL</a>, <a href="../controlP5/ControlP5Constants.html#controlEventClass">controlEventClass</a>, <a href="../controlP5/ControlP5Constants.html#CUSTOM">CUSTOM</a>, <a href="../controlP5/ControlP5Constants.html#DECREASE">DECREASE</a>, <a href="../controlP5/ControlP5Constants.html#DEFAULT">DEFAULT</a>, <a href="../controlP5/ControlP5Constants.html#DELETE">DELETE</a>, <a href="../controlP5/ControlP5Constants.html#DONE">DONE</a>, <a href="../controlP5/ControlP5Constants.html#DOWN">DOWN</a>, <a href="../controlP5/ControlP5Constants.html#DROPDOWN">DROPDOWN</a>, <a href="../controlP5/ControlP5Constants.html#ELLIPSE">ELLIPSE</a>, <a href="../controlP5/ControlP5Constants.html#ENTER">ENTER</a>, <a href="../controlP5/ControlP5Constants.html#ESCAPE">ESCAPE</a>, <a href="../controlP5/ControlP5Constants.html#EVENT">EVENT</a>, <a href="../controlP5/ControlP5Constants.html#eventMethod">eventMethod</a>, <a href="../controlP5/ControlP5Constants.html#FADEIN">FADEIN</a>, <a href="../controlP5/ControlP5Constants.html#FADEOUT">FADEOUT</a>, <a href="../controlP5/ControlP5Constants.html#FIELD">FIELD</a>, <a href="../controlP5/ControlP5Constants.html#FLOAT">FLOAT</a>, <a href="../controlP5/ControlP5Constants.html#FUCHSIA">FUCHSIA</a>, <a href="../controlP5/ControlP5Constants.html#GRAY">GRAY</a>, <a href="../controlP5/ControlP5Constants.html#GREEN">GREEN</a>, <a href="../controlP5/ControlP5Constants.html#grixel">grixel</a>, <a href="../controlP5/ControlP5Constants.html#HALF_PI">HALF_PI</a>, <a href="../controlP5/ControlP5Constants.html#HIDE">HIDE</a>, <a href="../controlP5/ControlP5Constants.html#HIGHLIGHT">HIGHLIGHT</a>, <a href="../controlP5/ControlP5Constants.html#HORIZONTAL">HOR
|
||
|
</ul>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList"><a name="constructor_summary">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<h3>Constructor Summary</h3>
|
||
|
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
|
||
|
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
|
||
|
<tr>
|
||
|
<th class="colOne" scope="col">Constructor and Description</th>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colOne"><code><strong><a href="../controlP5/Chart.html#Chart(controlP5.ControlP5, java.lang.String)">Chart</a></strong>(<a href="../controlP5/ControlP5.html" title="class in controlP5">ControlP5</a> theControlP5,
|
||
|
java.lang.String theName)</code>
|
||
|
<div class="block">Convenience constructor to extend Chart.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<!-- ========== METHOD SUMMARY =========== -->
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList"><a name="method_summary">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<h3>Method Summary</h3>
|
||
|
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
|
||
|
<caption><span>Methods</span><span class="tabEnd"> </span></caption>
|
||
|
<tr>
|
||
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
||
|
<th class="colLast" scope="col">Method and Description</th>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Chart.html" title="class in controlP5">Chart</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#addData(controlP5.ChartData)">addData</a></strong>(<a href="../controlP5/ChartData.html" title="class in controlP5">ChartData</a> theItem)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Chart.html" title="class in controlP5">Chart</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#addData(controlP5.ChartDataSet, float)">addData</a></strong>(<a href="../controlP5/ChartDataSet.html" title="class in controlP5">ChartDataSet</a> theChartData,
|
||
|
float theValue)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Chart.html" title="class in controlP5">Chart</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#addData(float)">addData</a></strong>(float theValue)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Chart.html" title="class in controlP5">Chart</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#addData(java.lang.String, controlP5.ChartData)">addData</a></strong>(java.lang.String theSetIndex,
|
||
|
<a href="../controlP5/ChartData.html" title="class in controlP5">ChartData</a> theItem)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Chart.html" title="class in controlP5">Chart</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#addData(java.lang.String, float)">addData</a></strong>(java.lang.String theSetIndex,
|
||
|
float theValue)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Chart.html" title="class in controlP5">Chart</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#addDataSet(java.lang.String)">addDataSet</a></strong>(java.lang.String theName)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Chart.html" title="class in controlP5">Chart</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#addFirst(float)">addFirst</a></strong>(float theValue)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Chart.html" title="class in controlP5">Chart</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#addFirst(java.lang.String, float)">addFirst</a></strong>(java.lang.String theSetIndex,
|
||
|
float theValue)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Chart.html" title="class in controlP5">Chart</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#addLast(float)">addLast</a></strong>(float theValue)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Chart.html" title="class in controlP5">Chart</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#addLast(java.lang.String, float)">addLast</a></strong>(java.lang.String theSetIndex,
|
||
|
float theValue)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/ChartData.html" title="class in controlP5">ChartData</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#getData(java.lang.String, int)">getData</a></strong>(java.lang.String theIndex,
|
||
|
int theItemIndex)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code>java.util.LinkedHashMap<java.lang.String,<a href="../controlP5/ChartDataSet.html" title="class in controlP5">ChartDataSet</a>></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#getDataSet()">getDataSet</a></strong>()</code> </td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/ChartDataSet.html" title="class in controlP5">ChartDataSet</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#getDataSet(java.lang.String)">getDataSet</a></strong>(java.lang.String theIndex)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code>java.lang.String</code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#getInfo()">getInfo</a></strong>()</code> </td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code>int</code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#getResolution()">getResolution</a></strong>()</code> </td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code>float</code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#getStrokeWeight()">getStrokeWeight</a></strong>()</code> </td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code>float[]</code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#getValuesFrom(java.lang.String)">getValuesFrom</a></strong>(java.lang.String theIndex)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code>void</code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#onEnter()">onEnter</a></strong>()</code> </td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code>void</code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#onLeave()">onLeave</a></strong>()</code> </td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Chart.html" title="class in controlP5">Chart</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#push(float)">push</a></strong>(float theValue)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Chart.html" title="class in controlP5">Chart</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#push(java.lang.String, float)">push</a></strong>(java.lang.String theSetIndex,
|
||
|
float theValue)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Chart.html" title="class in controlP5">Chart</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#removeData(controlP5.ChartData)">removeData</a></strong>(<a href="../controlP5/ChartData.html" title="class in controlP5">ChartData</a> theItem)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Chart.html" title="class in controlP5">Chart</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#removeData(int)">removeData</a></strong>(int theItemIndex)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Chart.html" title="class in controlP5">Chart</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#removeData(java.lang.String, controlP5.ChartData)">removeData</a></strong>(java.lang.String theSetIndex,
|
||
|
<a href="../controlP5/ChartData.html" title="class in controlP5">ChartData</a> theItem)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Chart.html" title="class in controlP5">Chart</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#removeData(java.lang.String, int)">removeData</a></strong>(java.lang.String theSetIndex,
|
||
|
int theItemIndex)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Chart.html" title="class in controlP5">Chart</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#removeDataSet(java.lang.String)">removeDataSet</a></strong>(java.lang.String theIndex)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Chart.html" title="class in controlP5">Chart</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#removeFirst()">removeFirst</a></strong>()</code> </td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Chart.html" title="class in controlP5">Chart</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#removeFirst(java.lang.String)">removeFirst</a></strong>(java.lang.String theSetIndex)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Chart.html" title="class in controlP5">Chart</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#removeLast()">removeLast</a></strong>()</code> </td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Chart.html" title="class in controlP5">Chart</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#removeLast(java.lang.String)">removeLast</a></strong>(java.lang.String theSetIndex)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Chart.html" title="class in controlP5">Chart</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#setColors(java.lang.String, int...)">setColors</a></strong>(java.lang.String theSetIndex,
|
||
|
int... theColors)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Chart.html" title="class in controlP5">Chart</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#setData(float...)">setData</a></strong>(float... theValues)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Chart.html" title="class in controlP5">Chart</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#setData(int, controlP5.ChartData)">setData</a></strong>(int theItemIndex,
|
||
|
<a href="../controlP5/ChartData.html" title="class in controlP5">ChartData</a> theItem)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Chart.html" title="class in controlP5">Chart</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#setData(java.lang.String, float...)">setData</a></strong>(java.lang.String theSetIndex,
|
||
|
float... theValues)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Chart.html" title="class in controlP5">Chart</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#setData(java.lang.String, int, controlP5.ChartData)">setData</a></strong>(java.lang.String theSetItem,
|
||
|
int theItemIndex,
|
||
|
<a href="../controlP5/ChartData.html" title="class in controlP5">ChartData</a> theItem)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Chart.html" title="class in controlP5">Chart</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#setDataSet(controlP5.ChartDataSet)">setDataSet</a></strong>(<a href="../controlP5/ChartDataSet.html" title="class in controlP5">ChartDataSet</a> theItems)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Chart.html" title="class in controlP5">Chart</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#setDataSet(java.lang.String, controlP5.ChartDataSet)">setDataSet</a></strong>(java.lang.String theSetIndex,
|
||
|
<a href="../controlP5/ChartDataSet.html" title="class in controlP5">ChartDataSet</a> theChartData)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Chart.html" title="class in controlP5">Chart</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#setRange(float, float)">setRange</a></strong>(float theMin,
|
||
|
float theMax)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Chart.html" title="class in controlP5">Chart</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#setResolution(int)">setResolution</a></strong>(int theValue)</code>
|
||
|
<div class="block">?</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Chart.html" title="class in controlP5">Chart</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#setStrokeWeight(float)">setStrokeWeight</a></strong>(float theWeight)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Chart.html" title="class in controlP5">Chart</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#setValue(float)">setValue</a></strong>(float theValue)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Chart.html" title="class in controlP5">Chart</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#setView(int)">setView</a></strong>(int theType)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code>int</code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#size()">size</a></strong>()</code> </td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code>java.lang.String</code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#toString()">toString</a></strong>()</code> </td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Chart.html" title="class in controlP5">Chart</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#unshift(float)">unshift</a></strong>(float theValue)</code>
|
||
|
<div class="block">adds a new float at the beginning of the data set.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Chart.html" title="class in controlP5">Chart</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#unshift(java.lang.String, float)">unshift</a></strong>(java.lang.String theSetIndex,
|
||
|
float theValue)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Chart.html" title="class in controlP5">Chart</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#updateData(float...)">updateData</a></strong>(float... theValues)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Chart.html" title="class in controlP5">Chart</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#updateData(java.lang.String, float...)">updateData</a></strong>(java.lang.String theSetIndex,
|
||
|
float... theValues)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Chart.html" title="class in controlP5">Chart</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#updateDisplayMode(int)">updateDisplayMode</a></strong>(int theMode)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Chart.html" title="class in controlP5">Chart</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Chart.html#updateViewMode(int)">updateViewMode</a></strong>(int theMode)</code> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList"><a name="methods_inherited_from_class_controlP5.Controller">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<h3>Methods inherited from class controlP5.<a href="../controlP5/Controller.html" title="class in controlP5">Controller</a></h3>
|
||
|
<code><a href="../controlP5/Controller.html#add(controlP5.ControllerInterface)">add</a>, <a href="../controlP5/Controller.html#addCallback(controlP5.CallbackListener)">addCallback</a>, <a href="../controlP5/Controller.html#addListener(controlP5.ControlListener)">addListener</a>, <a href="../controlP5/Controller.html#align(int, int, int, int)">align</a>, <a href="../controlP5/Controller.html#bringToFront()">bringToFront</a>, <a href="../controlP5/Controller.html#bringToFront(controlP5.ControllerInterface)">bringToFront</a>, <a href="../controlP5/Controller.html#changeValue(float)">changeValue</a>, <a href="../controlP5/Controller.html#continuousUpdateEvents()">continuousUpdateEvents</a>, <a href="../controlP5/Controller.html#draw(processing.core.PGraphics)">draw</a>, <a href="../controlP5/Controller.html#getAbsolutePosition()">getAbsolutePosition</a>, <a href="../controlP5/Controller.html#getAddress()">getAddress</a>, <a href="../controlP5/Controller.html#getArrayValue()">getArrayValue</a>, <a href="../controlP5/Controller.html#getArrayValue(int)">getArrayValue</a>, <a href="../controlP5/Controller.html#getBehavior()">getBehavior</a>, <a href="../controlP5/Controller.html#getCaptionLabel()">getCaptionLabel</a>, <a href="../controlP5/Controller.html#getColor()">getColor</a>, <a href="../controlP5/Controller.html#getControllerPlugList()">getControllerPlugList</a>, <a href="../controlP5/Controller.html#getControlWindow()">getControlWindow</a>, <a href="../controlP5/Controller.html#getDecimalPrecision()">getDecimalPrecision</a>, <a href="../controlP5/Controller.html#getDefaultValue()">getDefaultValue</a>, <a href="../controlP5/Controller.html#getHeight()">getHeight</a>, <a href="../controlP5/Controller.html#getId()">getId</a>, <a href="../controlP5/Controller.html#getLabel()">getLabel</a>, <a href="../controlP5/Controller.html#getMax()">getMax</a>, <a href="../controlP5/Controller.html#getMin()">getMin</a>, <a href="../controlP5/Controller.html#getName()">getName</a>, <a href="../controlP5/Controller.html#getParent()">getParent</a>, <a href="../controlP5/Controller.html#getPickingColor()">getPickingColor</a>, <a href="../controlP5/Controller.html#getPointer()">getPointer</a>, <a href="../controlP5/Controller.html#getPosition()">getPosition</a>, <a href="../controlP5/Controller.html#getProperty(java.lang.String)">getProperty</a>, <a href="../controlP5/Controller.html#getProperty(java.lang.String, java.lang.String)">getProperty</a>, <a href="../controlP5/Controller.html#getStringValue()">getStringValue</a>, <a href="../controlP5/Controller.html#getTab()">getTab</a>, <a href="../controlP5/Controller.html#getValue()">getValue</a>, <a href="../controlP5/Controller.html#getValueLabel()">getValueLabel</a>, <a href="../controlP5/Controller.html#getView()">getView</a>, <a href="../controlP5/Controller.html#getWidth()">getWidth</a>, <a href="../controlP5/Controller.html#getWindow()">getWindow</a>, <a href="../controlP5/Controller.html#hide()">hide</a>, <a href="../controlP5/Controller.html#init()">init</a>, <a href="../controlP5/Controller.html#isActive()">isActive</a>, <a href="../controlP5/Controller.html#isBroadcast()">isBroadcast</a>, <a href="../controlP5/Controller.html#isInside()">isInside</a>, <a href="../controlP5/Controller.html#isLabelVisible()">isLabelVisible</a>, <a href="../controlP5/Controller.html#isListening()">isListening</a>, <a href="../controlP5/Controller.html#isLock()">isLock</a>, <a href="../controlP5/Controller.html#isMouseOver()">isMouseOver</a>, <a href="../controlP5/Controller.html#isMousePressed()">isMousePressed</a>, <a href="../controlP5/Controller.html#isMoveable()">isMoveable</a>, <a href="../controlP5/Controller.html#isUpdate()">isUpdate</a>, <a href="../controlP5/Controller.html#isUserInteraction()">isUserInteraction</a>, <a href="../controlP5/Controller.html#isVisible()">isVisible</a>, <a href="../controlP5/Controller.html#keyEvent(processing.event.KeyEvent)">keyEvent</a>, <a href="../controlP5/Controller.html#linebreak()">linebreak</a>, <a href="../controlP5/Controller.html#listen(boolean)">listen<
|
||
|
</ul>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<h3>Methods inherited from class java.lang.Object</h3>
|
||
|
<code>equals, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li>
|
||
|
</ul>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList"><a name="methods_inherited_from_class_controlP5.ControllerInterface">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<h3>Methods inherited from interface controlP5.<a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a></h3>
|
||
|
<code><a href="../controlP5/ControllerInterface.html#parent()">parent</a>, <a href="../controlP5/ControllerInterface.html#setColorLabel(int)">setColorLabel</a>, <a href="../controlP5/ControllerInterface.html#setColorValue(int)">setColorValue</a>, <a href="../controlP5/ControllerInterface.html#setLabel(java.lang.String)">setLabel</a></code></li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<div class="details">
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<!-- ============ FIELD DETAIL =========== -->
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList"><a name="field_detail">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<h3>Field Detail</h3>
|
||
|
<a name="AREA">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>AREA</h4>
|
||
|
<pre>public static final int AREA</pre>
|
||
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#controlP5.Chart.AREA">Constant Field Values</a></dd></dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="BAR">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>BAR</h4>
|
||
|
<pre>public static final int BAR</pre>
|
||
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#controlP5.Chart.BAR">Constant Field Values</a></dd></dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="BAR_CENTERED">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>BAR_CENTERED</h4>
|
||
|
<pre>public static final int BAR_CENTERED</pre>
|
||
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#controlP5.Chart.BAR_CENTERED">Constant Field Values</a></dd></dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="HISTOGRAM">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>HISTOGRAM</h4>
|
||
|
<pre>public static final int HISTOGRAM</pre>
|
||
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#controlP5.Chart.HISTOGRAM">Constant Field Values</a></dd></dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="LINE">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>LINE</h4>
|
||
|
<pre>public static final int LINE</pre>
|
||
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#controlP5.Chart.LINE">Constant Field Values</a></dd></dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="PIE">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockListLast">
|
||
|
<li class="blockList">
|
||
|
<h4>PIE</h4>
|
||
|
<pre>public static final int PIE</pre>
|
||
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#controlP5.Chart.PIE">Constant Field Values</a></dd></dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList"><a name="constructor_detail">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<h3>Constructor Detail</h3>
|
||
|
<a name="Chart(controlP5.ControlP5, java.lang.String)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockListLast">
|
||
|
<li class="blockList">
|
||
|
<h4>Chart</h4>
|
||
|
<pre>public Chart(<a href="../controlP5/ControlP5.html" title="class in controlP5">ControlP5</a> theControlP5,
|
||
|
java.lang.String theName)</pre>
|
||
|
<div class="block">Convenience constructor to extend Chart.</div>
|
||
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theControlP5</code> - </dd><dd><code>theName</code> - </dd><script type="text/javascript">
|
||
|
<!--
|
||
|
document.getElementsByTagName('html')[0].className = 'isjs';function toggle(dt) { var display, dd=dt; do{ dd = dd.nextSibling } while(dd.tagName!='DD'); toOpen =!dd.style.display;dd.style.display = toOpen? 'block':''; dt.getElementsByTagName('span')[0].innerHTML = toOpen? '-':'+' ; }
|
||
|
-->
|
||
|
</script>
|
||
|
<div id="test" class="toggleList"><dl><dt onclick="toggle(this);"><span>+</span>Example</dt><dd><code><pre>/**
|
||
|
* ControlP5 extending Controllers
|
||
|
*
|
||
|
* the following example shows how to extend the Controller class to
|
||
|
* create customizable Controllers. You can either extend the Controller class itself,
|
||
|
* or any class that extends Controller itself like the Slider, Button, DropdownList, etc.
|
||
|
*
|
||
|
* How to:
|
||
|
*
|
||
|
* 1) do a super call to the convenience constructor requiring
|
||
|
* 2 parameter (ControlP5 instance, name)
|
||
|
*
|
||
|
* 2) the Controller class has a set of empty methods that allow you to capture
|
||
|
* inputs from the mouse including
|
||
|
* onEnter(), onLeave(), onPress(), onRelease(), onClick(), onScroll(int), onDrag()
|
||
|
* These you can override and include functionality as needed.
|
||
|
*
|
||
|
* 3) use method getPointer() to return the local (relative)
|
||
|
* xy-coordinates of the controller
|
||
|
*
|
||
|
* 4) after instantiation custom controllers are treated the same
|
||
|
* as default controlP5 controllers.
|
||
|
*
|
||
|
* by Andreas Schlegel, 2012
|
||
|
* www.sojamo.de/libraries/controlp5
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
import controlP5.*;
|
||
|
|
||
|
ControlP5 cp5;
|
||
|
PApplet p;
|
||
|
|
||
|
void setup() {
|
||
|
size(400, 400);
|
||
|
cp5 = new ControlP5(this);
|
||
|
|
||
|
// create 2 groups to show nesting of custom controllers and
|
||
|
//
|
||
|
Group g1 = cp5.addGroup("a").setPosition(0,100).setWidth(180);
|
||
|
Group g2 = cp5.addGroup("b").setPosition(0,10).setWidth(180);
|
||
|
g2.moveTo(g1);
|
||
|
|
||
|
// create 2 custom Controllers from class MyButton
|
||
|
// MyButton extends Controller and inherits all methods accordingly.
|
||
|
new MyButton(cp5, "b1").setPosition(0, 0).setSize(180, 200).moveTo(g2);
|
||
|
new MyButton(cp5, "b2").setPosition(205, 15).setSize(180, 200);
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
void draw() {
|
||
|
background(0);
|
||
|
}
|
||
|
|
||
|
// b1 will be called from Controller b1
|
||
|
public void b1(float theValue) {
|
||
|
println("yay button "+theValue);
|
||
|
}
|
||
|
|
||
|
public void controlEvent(ControlEvent theEvent) {
|
||
|
println("controlEvent : "+theEvent);
|
||
|
}
|
||
|
|
||
|
|
||
|
// Create a custom Controller, please not that
|
||
|
// MyButton extends Controller<MyButton>, <MyButton>
|
||
|
// is an indicator for the super class about the type of
|
||
|
// custom controller to be created.
|
||
|
|
||
|
class MyButton extends Controller<MyButton> {
|
||
|
|
||
|
int current = 0xffff0000;
|
||
|
|
||
|
float a = 128;
|
||
|
|
||
|
float na;
|
||
|
|
||
|
int y;
|
||
|
|
||
|
// use the convenience constructor of super class Controller
|
||
|
// MyButton will automatically registered and move to the
|
||
|
// default controlP5 tab.
|
||
|
|
||
|
MyButton(ControlP5 cp5, String theName) {
|
||
|
super(cp5, theName);
|
||
|
|
||
|
// replace the default view with a custom view.
|
||
|
setView(new ControllerView() {
|
||
|
public void display(PApplet p, Object b) {
|
||
|
// draw button background
|
||
|
na += (a-na) * 0.1;
|
||
|
p.fill(current,na);
|
||
|
p.rect(0, 0, getWidth(), getHeight());
|
||
|
|
||
|
// draw horizontal line which can be moved on the x-axis
|
||
|
// using the scroll wheel.
|
||
|
p.fill(0,255,0);
|
||
|
p.rect(0,y,width,10);
|
||
|
|
||
|
// draw the custom label
|
||
|
p.fill(128);
|
||
|
translate(0,getHeight()+14);
|
||
|
p.text(getName(),0,0);
|
||
|
p.text(getName(),0,0);
|
||
|
|
||
|
}
|
||
|
}
|
||
|
);
|
||
|
}
|
||
|
|
||
|
// override various input methods for mouse input control
|
||
|
void onEnter() {
|
||
|
cursor(HAND);
|
||
|
println("enter");
|
||
|
a = 255;
|
||
|
}
|
||
|
|
||
|
void onScroll(int n) {
|
||
|
println("scrolling");
|
||
|
y -= n;
|
||
|
y = constrain(y,0,getHeight()-10);
|
||
|
}
|
||
|
|
||
|
void onPress() {
|
||
|
println("press");
|
||
|
current = 0xffffff00;
|
||
|
}
|
||
|
|
||
|
void onClick() {
|
||
|
Pointer p1 = getPointer();
|
||
|
println("clicked at "+p1.x()+", "+p1.y());
|
||
|
current = 0xffffff00;
|
||
|
setValue(y);
|
||
|
}
|
||
|
|
||
|
void onRelease() {
|
||
|
println("release");
|
||
|
current = 0xffffffff;
|
||
|
}
|
||
|
|
||
|
void onMove() {
|
||
|
println("moving "+this+" "+_myControlWindow.getMouseOverList());
|
||
|
}
|
||
|
|
||
|
void onDrag() {
|
||
|
current = 0xff0000ff;
|
||
|
Pointer p1 = getPointer();
|
||
|
float dif = dist(p1.px(),p1.py(),p1.x(),p1.y());
|
||
|
println("dragging at "+p1.x()+", "+p1.y()+" "+dif);
|
||
|
}
|
||
|
|
||
|
void onReleaseOutside() {
|
||
|
onLeave();
|
||
|
}
|
||
|
|
||
|
void onLeave() {
|
||
|
println("leave");
|
||
|
cursor(ARROW);
|
||
|
a = 128;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
</pre></code></dd></dl></div></dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<!-- ============ METHOD DETAIL ========== -->
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList"><a name="method_detail">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<h3>Method Detail</h3>
|
||
|
<a name="addData(controlP5.ChartData)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>addData</h4>
|
||
|
<pre>public <a href="../controlP5/Chart.html" title="class in controlP5">Chart</a> addData(<a href="../controlP5/ChartData.html" title="class in controlP5">ChartData</a> theItem)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="addData(controlP5.ChartDataSet, float)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>addData</h4>
|
||
|
<pre>public <a href="../controlP5/Chart.html" title="class in controlP5">Chart</a> addData(<a href="../controlP5/ChartDataSet.html" title="class in controlP5">ChartDataSet</a> theChartData,
|
||
|
float theValue)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="addData(float)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>addData</h4>
|
||
|
<pre>public <a href="../controlP5/Chart.html" title="class in controlP5">Chart</a> addData(float theValue)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="addData(java.lang.String, controlP5.ChartData)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>addData</h4>
|
||
|
<pre>public <a href="../controlP5/Chart.html" title="class in controlP5">Chart</a> addData(java.lang.String theSetIndex,
|
||
|
<a href="../controlP5/ChartData.html" title="class in controlP5">ChartData</a> theItem)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="addData(java.lang.String, float)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>addData</h4>
|
||
|
<pre>public <a href="../controlP5/Chart.html" title="class in controlP5">Chart</a> addData(java.lang.String theSetIndex,
|
||
|
float theValue)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="addDataSet(java.lang.String)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>addDataSet</h4>
|
||
|
<pre>public <a href="../controlP5/Chart.html" title="class in controlP5">Chart</a> addDataSet(java.lang.String theName)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="addFirst(float)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>addFirst</h4>
|
||
|
<pre>public <a href="../controlP5/Chart.html" title="class in controlP5">Chart</a> addFirst(float theValue)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="addFirst(java.lang.String, float)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>addFirst</h4>
|
||
|
<pre>public <a href="../controlP5/Chart.html" title="class in controlP5">Chart</a> addFirst(java.lang.String theSetIndex,
|
||
|
float theValue)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="addLast(float)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>addLast</h4>
|
||
|
<pre>public <a href="../controlP5/Chart.html" title="class in controlP5">Chart</a> addLast(float theValue)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="addLast(java.lang.String, float)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>addLast</h4>
|
||
|
<pre>public <a href="../controlP5/Chart.html" title="class in controlP5">Chart</a> addLast(java.lang.String theSetIndex,
|
||
|
float theValue)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="getData(java.lang.String, int)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>getData</h4>
|
||
|
<pre>public <a href="../controlP5/ChartData.html" title="class in controlP5">ChartData</a> getData(java.lang.String theIndex,
|
||
|
int theItemIndex)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="getDataSet()">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>getDataSet</h4>
|
||
|
<pre>public java.util.LinkedHashMap<java.lang.String,<a href="../controlP5/ChartDataSet.html" title="class in controlP5">ChartDataSet</a>> getDataSet()</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="getDataSet(java.lang.String)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>getDataSet</h4>
|
||
|
<pre>public <a href="../controlP5/ChartDataSet.html" title="class in controlP5">ChartDataSet</a> getDataSet(java.lang.String theIndex)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="getInfo()">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>getInfo</h4>
|
||
|
<pre>public java.lang.String getInfo()</pre>
|
||
|
<dl>
|
||
|
<dt><strong>Overrides:</strong></dt>
|
||
|
<dd><code><a href="../controlP5/Controller.html#getInfo()">getInfo</a></code> in class <code><a href="../controlP5/Controller.html" title="class in controlP5">Controller</a><<a href="../controlP5/Chart.html" title="class in controlP5">Chart</a>></code></dd>
|
||
|
<dt><span class="strong">Returns:</span></dt><dd>String</dd></dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="getResolution()">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>getResolution</h4>
|
||
|
<pre>public int getResolution()</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="getStrokeWeight()">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>getStrokeWeight</h4>
|
||
|
<pre>public float getStrokeWeight()</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="getValuesFrom(java.lang.String)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>getValuesFrom</h4>
|
||
|
<pre>public float[] getValuesFrom(java.lang.String theIndex)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="onEnter()">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>onEnter</h4>
|
||
|
<pre>public void onEnter()</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="onLeave()">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>onLeave</h4>
|
||
|
<pre>public void onLeave()</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="push(float)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>push</h4>
|
||
|
<pre>public <a href="../controlP5/Chart.html" title="class in controlP5">Chart</a> push(float theValue)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="push(java.lang.String, float)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>push</h4>
|
||
|
<pre>public <a href="../controlP5/Chart.html" title="class in controlP5">Chart</a> push(java.lang.String theSetIndex,
|
||
|
float theValue)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="removeData(controlP5.ChartData)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>removeData</h4>
|
||
|
<pre>public <a href="../controlP5/Chart.html" title="class in controlP5">Chart</a> removeData(<a href="../controlP5/ChartData.html" title="class in controlP5">ChartData</a> theItem)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="removeData(int)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>removeData</h4>
|
||
|
<pre>public <a href="../controlP5/Chart.html" title="class in controlP5">Chart</a> removeData(int theItemIndex)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="removeData(java.lang.String, controlP5.ChartData)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>removeData</h4>
|
||
|
<pre>public <a href="../controlP5/Chart.html" title="class in controlP5">Chart</a> removeData(java.lang.String theSetIndex,
|
||
|
<a href="../controlP5/ChartData.html" title="class in controlP5">ChartData</a> theItem)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="removeData(java.lang.String, int)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>removeData</h4>
|
||
|
<pre>public <a href="../controlP5/Chart.html" title="class in controlP5">Chart</a> removeData(java.lang.String theSetIndex,
|
||
|
int theItemIndex)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="removeDataSet(java.lang.String)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>removeDataSet</h4>
|
||
|
<pre>public <a href="../controlP5/Chart.html" title="class in controlP5">Chart</a> removeDataSet(java.lang.String theIndex)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="removeFirst()">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>removeFirst</h4>
|
||
|
<pre>public <a href="../controlP5/Chart.html" title="class in controlP5">Chart</a> removeFirst()</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="removeFirst(java.lang.String)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>removeFirst</h4>
|
||
|
<pre>public <a href="../controlP5/Chart.html" title="class in controlP5">Chart</a> removeFirst(java.lang.String theSetIndex)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="removeLast()">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>removeLast</h4>
|
||
|
<pre>public <a href="../controlP5/Chart.html" title="class in controlP5">Chart</a> removeLast()</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="removeLast(java.lang.String)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>removeLast</h4>
|
||
|
<pre>public <a href="../controlP5/Chart.html" title="class in controlP5">Chart</a> removeLast(java.lang.String theSetIndex)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="setColors(java.lang.String, int...)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>setColors</h4>
|
||
|
<pre>public <a href="../controlP5/Chart.html" title="class in controlP5">Chart</a> setColors(java.lang.String theSetIndex,
|
||
|
int... theColors)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="setData(float...)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>setData</h4>
|
||
|
<pre>public <a href="../controlP5/Chart.html" title="class in controlP5">Chart</a> setData(float... theValues)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="setData(int, controlP5.ChartData)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>setData</h4>
|
||
|
<pre>public <a href="../controlP5/Chart.html" title="class in controlP5">Chart</a> setData(int theItemIndex,
|
||
|
<a href="../controlP5/ChartData.html" title="class in controlP5">ChartData</a> theItem)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="setData(java.lang.String, float...)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>setData</h4>
|
||
|
<pre>public <a href="../controlP5/Chart.html" title="class in controlP5">Chart</a> setData(java.lang.String theSetIndex,
|
||
|
float... theValues)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="setData(java.lang.String, int, controlP5.ChartData)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>setData</h4>
|
||
|
<pre>public <a href="../controlP5/Chart.html" title="class in controlP5">Chart</a> setData(java.lang.String theSetItem,
|
||
|
int theItemIndex,
|
||
|
<a href="../controlP5/ChartData.html" title="class in controlP5">ChartData</a> theItem)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="setDataSet(controlP5.ChartDataSet)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>setDataSet</h4>
|
||
|
<pre>public <a href="../controlP5/Chart.html" title="class in controlP5">Chart</a> setDataSet(<a href="../controlP5/ChartDataSet.html" title="class in controlP5">ChartDataSet</a> theItems)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="setDataSet(java.lang.String, controlP5.ChartDataSet)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>setDataSet</h4>
|
||
|
<pre>public <a href="../controlP5/Chart.html" title="class in controlP5">Chart</a> setDataSet(java.lang.String theSetIndex,
|
||
|
<a href="../controlP5/ChartDataSet.html" title="class in controlP5">ChartDataSet</a> theChartData)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="setRange(float, float)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>setRange</h4>
|
||
|
<pre>public <a href="../controlP5/Chart.html" title="class in controlP5">Chart</a> setRange(float theMin,
|
||
|
float theMax)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="setResolution(int)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>setResolution</h4>
|
||
|
<pre>public <a href="../controlP5/Chart.html" title="class in controlP5">Chart</a> setResolution(int theValue)</pre>
|
||
|
<div class="block">?</div>
|
||
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theValue</code> - </dd>
|
||
|
<dt><span class="strong">Returns:</span></dt><dd></dd></dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="setStrokeWeight(float)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>setStrokeWeight</h4>
|
||
|
<pre>public <a href="../controlP5/Chart.html" title="class in controlP5">Chart</a> setStrokeWeight(float theWeight)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="setValue(float)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>setValue</h4>
|
||
|
<pre>public <a href="../controlP5/Chart.html" title="class in controlP5">Chart</a> setValue(float theValue)</pre>
|
||
|
<dl>
|
||
|
<dt><strong>Specified by:</strong></dt>
|
||
|
<dd><code><a href="../controlP5/ControllerInterface.html#setValue(float)">setValue</a></code> in interface <code><a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><<a href="../controlP5/Chart.html" title="class in controlP5">Chart</a>></code></dd>
|
||
|
<dt><strong>Overrides:</strong></dt>
|
||
|
<dd><code><a href="../controlP5/Controller.html#setValue(float)">setValue</a></code> in class <code><a href="../controlP5/Controller.html" title="class in controlP5">Controller</a><<a href="../controlP5/Chart.html" title="class in controlP5">Chart</a>></code></dd>
|
||
|
<dt><span class="strong">Parameters:</span></dt><dd><code>theValue</code> - float</dd></dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="setView(int)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>setView</h4>
|
||
|
<pre>public <a href="../controlP5/Chart.html" title="class in controlP5">Chart</a> setView(int theType)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="size()">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>size</h4>
|
||
|
<pre>public int size()</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="toString()">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>toString</h4>
|
||
|
<pre>public java.lang.String toString()</pre>
|
||
|
<dl>
|
||
|
<dt><strong>Overrides:</strong></dt>
|
||
|
<dd><code><a href="../controlP5/Controller.html#toString()">toString</a></code> in class <code><a href="../controlP5/Controller.html" title="class in controlP5">Controller</a><<a href="../controlP5/Chart.html" title="class in controlP5">Chart</a>></code></dd>
|
||
|
</dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="unshift(float)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>unshift</h4>
|
||
|
<pre>public <a href="../controlP5/Chart.html" title="class in controlP5">Chart</a> unshift(float theValue)</pre>
|
||
|
<div class="block">adds a new float at the beginning of the data set.</div>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="unshift(java.lang.String, float)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>unshift</h4>
|
||
|
<pre>public <a href="../controlP5/Chart.html" title="class in controlP5">Chart</a> unshift(java.lang.String theSetIndex,
|
||
|
float theValue)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="updateData(float...)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>updateData</h4>
|
||
|
<pre>public <a href="../controlP5/Chart.html" title="class in controlP5">Chart</a> updateData(float... theValues)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="updateData(java.lang.String, float...)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>updateData</h4>
|
||
|
<pre>public <a href="../controlP5/Chart.html" title="class in controlP5">Chart</a> updateData(java.lang.String theSetIndex,
|
||
|
float... theValues)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="updateDisplayMode(int)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>updateDisplayMode</h4>
|
||
|
<pre>public <a href="../controlP5/Chart.html" title="class in controlP5">Chart</a> updateDisplayMode(int theMode)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="updateViewMode(int)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockListLast">
|
||
|
<li class="blockList">
|
||
|
<h4>updateViewMode</h4>
|
||
|
<pre>public <a href="../controlP5/Chart.html" title="class in controlP5">Chart</a> updateViewMode(int theMode)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
<!-- ========= END OF CLASS DATA ========= -->
|
||
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||
|
<div class="bottomNav"><a name="navbar_bottom">
|
||
|
<!-- -->
|
||
|
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="navList" title="Navigation">
|
||
|
<li><a href="../controlP5/package-summary.html">Package</a></li>
|
||
|
<li class="navBarCell1Rev">Class</li>
|
||
|
<li><a href="package-tree.html">Tree</a></li>
|
||
|
<li><a href="../index-all.html">Index</a></li>
|
||
|
<li><a href="../help-doc.html">Help</a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<div class="subNav">
|
||
|
<ul class="navList">
|
||
|
<li><a href="../controlP5/CDrawable.html" title="interface in controlP5"><span class="strong">Prev Class</span></a></li>
|
||
|
<li><a href="../controlP5/Chart.ChartViewArea.html" title="class in controlP5"><span class="strong">Next Class</span></a></li>
|
||
|
</ul>
|
||
|
<ul class="navList">
|
||
|
<li><a href="../index.html?controlP5/Chart.html" target="_top">Frames</a></li>
|
||
|
<li><a href="Chart.html" target="_top">No Frames</a></li>
|
||
|
</ul>
|
||
|
<ul class="navList" id="allclasses_navbar_bottom">
|
||
|
<li><a href="../allclasses-noframe.html">All Classes</a></li>
|
||
|
</ul>
|
||
|
<div>
|
||
|
<script type="text/javascript"><!--
|
||
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
||
|
if(window==top) {
|
||
|
allClassesLink.style.display = "block";
|
||
|
}
|
||
|
else {
|
||
|
allClassesLink.style.display = "none";
|
||
|
}
|
||
|
//-->
|
||
|
</script>
|
||
|
</div>
|
||
|
<div>
|
||
|
<ul class="subNavList">
|
||
|
<li>Summary: </li>
|
||
|
<li><a href="#nested_class_summary">Nested</a> | </li>
|
||
|
<li><a href="#field_summary">Field</a> | </li>
|
||
|
<li><a href="#constructor_summary">Constr</a> | </li>
|
||
|
<li><a href="#method_summary">Method</a></li>
|
||
|
</ul>
|
||
|
<ul class="subNavList">
|
||
|
<li>Detail: </li>
|
||
|
<li><a href="#field_detail">Field</a> | </li>
|
||
|
<li><a href="#constructor_detail">Constr</a> | </li>
|
||
|
<li><a href="#method_detail">Method</a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<a name="skip-navbar_bottom">
|
||
|
<!-- -->
|
||
|
</a></div>
|
||
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||
|
<p class="legalCopy"><small>processing library controlP5 by Andreas Schlegel. (c) 2006-2014</small></p>
|
||
|
</body>
|
||
|
</html>
|