mirror of
https://github.com/sojamo/controlp5
synced 2024-12-23 03:33:49 +01:00
1041 lines
47 KiB
HTML
1041 lines
47 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:47 SGT 2014 -->
|
|
<title>ControllerProperties (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="ControllerProperties (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/ControllerPlug.html" title="class in controlP5"><span class="strong">Prev Class</span></a></li>
|
|
<li><a href="../controlP5/ControllerProperty.html" title="class in controlP5"><span class="strong">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../index.html?controlP5/ControllerProperties.html" target="_top">Frames</a></li>
|
|
<li><a href="ControllerProperties.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>Nested | </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 ControllerProperties" class="title">Class ControllerProperties</h2>
|
|
</div>
|
|
<div class="contentContainer">
|
|
<ul class="inheritance">
|
|
<li>java.lang.Object</li>
|
|
<li>
|
|
<ul class="inheritance">
|
|
<li>controlP5.ControllerProperties</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<div class="description">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<hr>
|
|
<br>
|
|
<pre>public class <span class="strong">ControllerProperties</span>
|
|
extends java.lang.Object</pre>
|
|
<div class="block">Values of controllers can be stored inside properties files which can be saved to file or memory.</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 Properties
|
|
*
|
|
*
|
|
* saves controller values to a properties-file
|
|
* loads controller values from a properties-file
|
|
*
|
|
* Properties will only save values not the Controller itself.
|
|
*
|
|
* Also take a look at the use/ControlP5snapshot example to
|
|
* save controller values to memory.
|
|
*
|
|
* Use ControllerProperties to load and save serialized controller properties
|
|
* to a properties file.
|
|
* The controllers implementing save/load properties so far are
|
|
* Slider, Knob, Numberbox, Toggle, Checkbox, RadioButton, Textlabel,
|
|
* Matrix, Range, Textarea, ListBox, Dropdown, ColorPicker.
|
|
* Properties are currently saved in the java serialization format.
|
|
*
|
|
* saveProperties(String theFilename) and loadProperties(String theFilename)
|
|
* by default properties will be saved to your sketch folder as controlP5.ser
|
|
* if that file already exists it will be overwritten. for custom property files
|
|
* see the comments inside keyPressed() below.
|
|
*
|
|
* find a list of public methods available for the ControllerProperties class
|
|
* at the bottom of this sketch's source code
|
|
*
|
|
* default properties load/save key combinations are
|
|
* alt+shift+l to load properties
|
|
* alt+shift+s to save properties
|
|
*
|
|
* by andreas schlegel, 2012
|
|
* www.sojamo.de/libraries/controlp5
|
|
*
|
|
*/
|
|
|
|
import controlP5.*;
|
|
|
|
ControlP5 cp5;
|
|
public int myColor = color(0, 0, 0);
|
|
|
|
public int sliderValue = 100;
|
|
public int sliderTicks1 = 100;
|
|
public int sliderTicks2 = 30;
|
|
|
|
|
|
void setup() {
|
|
size(700, 400);
|
|
noStroke();
|
|
|
|
cp5 = new ControlP5(this);
|
|
|
|
cp5.addSlider("slider")
|
|
.setBroadcast(false)
|
|
.setRange(0, 200)
|
|
.setPosition(20, 100)
|
|
.setSize(10, 100)
|
|
.setBroadcast(true)
|
|
.setValue(100)
|
|
;
|
|
|
|
cp5.addSlider("sliderTicks1")
|
|
.setRange(0, 255)
|
|
.setPosition(100, 100)
|
|
.setSize(10, 100)
|
|
.setNumberOfTickMarks(5)
|
|
;
|
|
|
|
cp5.addSlider("sliderValue")
|
|
.setRange(0, 255)
|
|
.setValue(128)
|
|
.setPosition(200, 180)
|
|
.setSize(100, 10)
|
|
;
|
|
|
|
cp5.addSlider("sliderTicks2")
|
|
.setRange(0, 255)
|
|
.setValue(128)
|
|
.setPosition(200, 220)
|
|
.setSize(100, 10)
|
|
.setNumberOfTickMarks(7)
|
|
.setSliderMode(Slider.FLEXIBLE)
|
|
;
|
|
|
|
}
|
|
|
|
void draw() {
|
|
background(sliderTicks1);
|
|
|
|
fill(sliderValue);
|
|
rect(0, 0, width, 100);
|
|
|
|
fill(myColor);
|
|
rect(0, 300, width, 70);
|
|
|
|
fill(sliderTicks2);
|
|
rect(0, 370, width, 30);
|
|
}
|
|
|
|
public void slider(float theColor) {
|
|
myColor = color(theColor);
|
|
println("a slider event. setting background to "+theColor);
|
|
}
|
|
|
|
void keyPressed() {
|
|
// default properties load/save key combinations are
|
|
// alt+shift+l to load properties
|
|
// alt+shift+s to save properties
|
|
if (key=='1') {
|
|
cp5.saveProperties(("hello.properties"));
|
|
}
|
|
else if (key=='2') {
|
|
cp5.loadProperties(("hello.properties"));
|
|
}
|
|
}
|
|
|
|
/*
|
|
a list of all methods available for the ControllerProperties Controller
|
|
use ControlP5.printPublicMethodsFor(ControllerProperties.class);
|
|
to print the following list into the console.
|
|
|
|
You can find further details about class ControllerProperties in the javadoc.
|
|
|
|
Format:
|
|
ClassName : returnType methodName(parameter type)
|
|
|
|
|
|
controlP5.ControllerProperties : ArrayList getSnapshotIndices()
|
|
controlP5.ControllerProperties : ControllerProperties addSet(String)
|
|
controlP5.ControllerProperties : ControllerProperties delete(ControllerProperty)
|
|
controlP5.ControllerProperties : ControllerProperties getSnapshot(String)
|
|
controlP5.ControllerProperties : ControllerProperties move(ControllerInterface, String, String)
|
|
controlP5.ControllerProperties : ControllerProperties move(ControllerProperty, String, String)
|
|
controlP5.ControllerProperties : ControllerProperties only(ControllerProperty, String)
|
|
controlP5.ControllerProperties : ControllerProperties print()
|
|
controlP5.ControllerProperties : ControllerProperties register(ControllerInterface, String)
|
|
controlP5.ControllerProperties : ControllerProperties remove(ControllerInterface)
|
|
controlP5.ControllerProperties : ControllerProperties remove(ControllerInterface, String)
|
|
controlP5.ControllerProperties : ControllerProperties remove(ControllerInterface, String, String)
|
|
controlP5.ControllerProperties : ControllerProperties removeSnapshot(String)
|
|
controlP5.ControllerProperties : ControllerProperties saveSnapshot(String)
|
|
controlP5.ControllerProperties : ControllerProperties saveSnapshotAs(String, String)
|
|
controlP5.ControllerProperties : ControllerProperties setSnapshot(String)
|
|
controlP5.ControllerProperties : ControllerProperties updateSnapshot(String)
|
|
controlP5.ControllerProperties : ControllerProperty getProperty(ControllerInterface, String)
|
|
controlP5.ControllerProperties : ControllerProperty getProperty(ControllerInterface, String, String)
|
|
controlP5.ControllerProperties : ControllerProperty register(ControllerInterface, String, String)
|
|
controlP5.ControllerProperties : HashSet getPropertySet(ControllerInterface)
|
|
controlP5.ControllerProperties : List get(ControllerInterface)
|
|
controlP5.ControllerProperties : Map get()
|
|
controlP5.ControllerProperties : String toString()
|
|
controlP5.ControllerProperties : boolean load()
|
|
controlP5.ControllerProperties : boolean load(String)
|
|
controlP5.ControllerProperties : boolean save()
|
|
controlP5.ControllerProperties : boolean saveAs(String)
|
|
controlP5.ControllerProperties : void setFormat(Format)
|
|
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">
|
|
<!-- =========== 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/ControllerProperties.html#CLOSE">CLOSE</a></strong></code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static java.lang.String</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControllerProperties.html#defaultName">defaultName</a></strong></code> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static java.util.logging.Logger</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControllerProperties.html#logger">logger</a></strong></code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControllerProperties.html#OPEN">OPEN</a></strong></code> </td>
|
|
</tr>
|
|
</table>
|
|
</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/ControllerProperties.html#ControllerProperties(controlP5.ControlP5)">ControllerProperties</a></strong>(<a href="../controlP5/ControlP5.html" title="class in controlP5">ControlP5</a> theControlP5)</code> </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/ControllerProperties.html" title="class in controlP5">ControllerProperties</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControllerProperties.html#addSet(java.lang.String)">addSet</a></strong>(java.lang.String theSet)</code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControllerProperties.html" title="class in controlP5">ControllerProperties</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControllerProperties.html#copy(controlP5.ControllerInterface, java.lang.String...)">copy</a></strong>(<a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><?> theController,
|
|
java.lang.String... theSet)</code> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControllerProperties.html" title="class in controlP5">ControllerProperties</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControllerProperties.html#copy(controlP5.ControllerProperty, java.lang.String...)">copy</a></strong>(<a href="../controlP5/ControllerProperty.html" title="class in controlP5">ControllerProperty</a> theProperty,
|
|
java.lang.String... theSet)</code>
|
|
<div class="block">copies a ControllerProperty from one set to other(s);</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControllerProperties.html" title="class in controlP5">ControllerProperties</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControllerProperties.html#delete(controlP5.ControllerProperty)">delete</a></strong>(<a href="../controlP5/ControllerProperty.html" title="class in controlP5">ControllerProperty</a> theProperty)</code>
|
|
<div class="block">deletes a ControllerProperty from all Sets including the default set.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>java.util.Map<<a href="../controlP5/ControllerProperty.html" title="class in controlP5">ControllerProperty</a>,java.util.HashSet<java.lang.String>></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControllerProperties.html#get()">get</a></strong>()</code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>java.util.List<<a href="../controlP5/ControllerProperty.html" title="class in controlP5">ControllerProperty</a>></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControllerProperties.html#get(controlP5.ControllerInterface)">get</a></strong>(<a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><?> theController)</code> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControllerProperty.html" title="class in controlP5">ControllerProperty</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControllerProperties.html#getProperty(controlP5.ControllerInterface, java.lang.String)">getProperty</a></strong>(<a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><?> theController,
|
|
java.lang.String theProperty)</code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControllerProperty.html" title="class in controlP5">ControllerProperty</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControllerProperties.html#getProperty(controlP5.ControllerInterface, java.lang.String, java.lang.String)">getProperty</a></strong>(<a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><?> theController,
|
|
java.lang.String theSetter,
|
|
java.lang.String theGetter)</code> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>java.util.HashSet<<a href="../controlP5/ControllerProperty.html" title="class in controlP5">ControllerProperty</a>></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControllerProperties.html#getPropertySet(controlP5.ControllerInterface)">getPropertySet</a></strong>(<a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><?> theController)</code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControllerProperties.html" title="class in controlP5">ControllerProperties</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControllerProperties.html#getSnapshot(java.lang.String)">getSnapshot</a></strong>(java.lang.String theKey)</code>
|
|
<div class="block">restores properties previously stored as snapshot in memory.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>java.util.ArrayList<java.lang.String></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControllerProperties.html#getSnapshotIndices()">getSnapshotIndices</a></strong>()</code>
|
|
<div class="block">properties stored in memory can be accessed by index, getSnapshotIndices() returns the index of the snapshot
|
|
list.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControllerProperties.html#load()">load</a></strong>()</code>
|
|
<div class="block">load properties from the default properties file 'controlP5.properties'</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControllerProperties.html#load(java.lang.String)">load</a></strong>(java.lang.String thePropertiesPath)</code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControllerProperties.html" title="class in controlP5">ControllerProperties</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControllerProperties.html#move(controlP5.ControllerInterface, java.lang.String, java.lang.String)">move</a></strong>(<a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><?> theController,
|
|
java.lang.String fromSet,
|
|
java.lang.String toSet)</code> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControllerProperties.html" title="class in controlP5">ControllerProperties</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControllerProperties.html#move(controlP5.ControllerProperty, java.lang.String, java.lang.String)">move</a></strong>(<a href="../controlP5/ControllerProperty.html" title="class in controlP5">ControllerProperty</a> theProperty,
|
|
java.lang.String fromSet,
|
|
java.lang.String toSet)</code>
|
|
<div class="block">Moves a ControllerProperty from one set to another.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControllerProperties.html" title="class in controlP5">ControllerProperties</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControllerProperties.html#only(controlP5.ControllerProperty, java.lang.String)">only</a></strong>(<a href="../controlP5/ControllerProperty.html" title="class in controlP5">ControllerProperty</a> theProperty,
|
|
java.lang.String theSet)</code>
|
|
<div class="block">stores a ControllerProperty in one particular set only.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControllerProperties.html" title="class in controlP5">ControllerProperties</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControllerProperties.html#print()">print</a></strong>()</code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControllerProperties.html" title="class in controlP5">ControllerProperties</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControllerProperties.html#register(controlP5.ControllerInterface, java.lang.String)">register</a></strong>(<a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><?> theController,
|
|
java.lang.String theProperty)</code>
|
|
<div class="block">registering a property with only one parameter assumes that there is a setter and getter function present for the
|
|
Controller.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControllerProperty.html" title="class in controlP5">ControllerProperty</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControllerProperties.html#register(controlP5.ControllerInterface, java.lang.String, java.lang.String)">register</a></strong>(<a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><?> theController,
|
|
java.lang.String thePropertySetter,
|
|
java.lang.String thePropertyGetter)</code>
|
|
<div class="block">adds a property based on names of setter and getter methods of a controller.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControllerProperties.html" title="class in controlP5">ControllerProperties</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControllerProperties.html#remove(controlP5.ControllerInterface)">remove</a></strong>(<a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><?> theController)</code> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControllerProperties.html" title="class in controlP5">ControllerProperties</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControllerProperties.html#remove(controlP5.ControllerInterface, java.lang.String...)">remove</a></strong>(<a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><?> theController,
|
|
java.lang.String... theSet)</code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControllerProperties.html" title="class in controlP5">ControllerProperties</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControllerProperties.html#remove(controlP5.ControllerInterface, java.lang.String)">remove</a></strong>(<a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><?> theController,
|
|
java.lang.String theProperty)</code> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControllerProperties.html" title="class in controlP5">ControllerProperties</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControllerProperties.html#remove(controlP5.ControllerInterface, java.lang.String, java.lang.String)">remove</a></strong>(<a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><?> theController,
|
|
java.lang.String theSetter,
|
|
java.lang.String theGetter)</code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControllerProperties.html" title="class in controlP5">ControllerProperties</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControllerProperties.html#remove(controlP5.ControllerProperty, java.lang.String...)">remove</a></strong>(<a href="../controlP5/ControllerProperty.html" title="class in controlP5">ControllerProperty</a> theProperty,
|
|
java.lang.String... theSet)</code>
|
|
<div class="block">removes a ControllerProperty from one or multiple sets.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControllerProperties.html" title="class in controlP5">ControllerProperties</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControllerProperties.html#removeSnapshot(java.lang.String)">removeSnapshot</a></strong>(java.lang.String theKey)</code>
|
|
<div class="block">removes a snapshot by key.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControllerProperties.html#save()">save</a></strong>()</code>
|
|
<div class="block">saves all registered properties into the default 'controlP5.properties' file into your sketch folder.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControllerProperties.html#saveAs(java.lang.String)">saveAs</a></strong>(java.lang.String thePropertiesPath)</code>
|
|
<div class="block">saves all registered properties into a file specified by parameter thePropertiesPath.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControllerProperties.html#saveAs(java.lang.String, java.lang.String...)">saveAs</a></strong>(java.lang.String thePropertiesPath,
|
|
java.lang.String... theSets)</code>
|
|
<div class="block">saves a list of properties sets into a file specified by parameter thePropertiesPath.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControllerProperties.html" title="class in controlP5">ControllerProperties</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControllerProperties.html#saveSnapshot(java.lang.String)">saveSnapshot</a></strong>(java.lang.String theKey)</code>
|
|
<div class="block">saves a snapshot into your sketch's sketch folder.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControllerProperties.html" title="class in controlP5">ControllerProperties</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControllerProperties.html#saveSnapshotAs(java.lang.String, java.lang.String)">saveSnapshotAs</a></strong>(java.lang.String thePropertiesPath,
|
|
java.lang.String theKey)</code>
|
|
<div class="block">saves a snapshot to the file with path given by the first parameter (thePropertiesPath).</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControllerProperties.html#setFormat(controlP5.ControllerProperties.PropertiesStorageFormat)">setFormat</a></strong>(controlP5.ControllerProperties.PropertiesStorageFormat theFormat)</code>
|
|
<div class="block">use ControllerProperties.SERIALIZED, ControllerProperties.XML or ControllerProperties.JSON as parameter.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControllerProperties.html" title="class in controlP5">ControllerProperties</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControllerProperties.html#setSnapshot(java.lang.String)">setSnapshot</a></strong>(java.lang.String theKey)</code>
|
|
<div class="block">logs all registered properties in memory.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>java.lang.String</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControllerProperties.html#toString()">toString</a></strong>()</code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControllerProperties.html" title="class in controlP5">ControllerProperties</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControllerProperties.html#updateSnapshot(java.lang.String)">updateSnapshot</a></strong>(java.lang.String theKey)</code>
|
|
<div class="block">convenience method, setSnapshot(String) also works here since it will override existing log with the same key.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<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>
|
|
</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="CLOSE">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>CLOSE</h4>
|
|
<pre>public static final int CLOSE</pre>
|
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#controlP5.ControllerProperties.CLOSE">Constant Field Values</a></dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="defaultName">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>defaultName</h4>
|
|
<pre>public static java.lang.String defaultName</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="logger">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>logger</h4>
|
|
<pre>public static final java.util.logging.Logger logger</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="OPEN">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>OPEN</h4>
|
|
<pre>public static final int OPEN</pre>
|
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#controlP5.ControllerProperties.OPEN">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="ControllerProperties(controlP5.ControlP5)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>ControllerProperties</h4>
|
|
<pre>public ControllerProperties(<a href="../controlP5/ControlP5.html" title="class in controlP5">ControlP5</a> theControlP5)</pre>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method_detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Detail</h3>
|
|
<a name="addSet(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>addSet</h4>
|
|
<pre>public <a href="../controlP5/ControllerProperties.html" title="class in controlP5">ControllerProperties</a> addSet(java.lang.String theSet)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="copy(controlP5.ControllerInterface, java.lang.String...)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>copy</h4>
|
|
<pre>public <a href="../controlP5/ControllerProperties.html" title="class in controlP5">ControllerProperties</a> copy(<a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><?> theController,
|
|
java.lang.String... theSet)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="copy(controlP5.ControllerProperty, java.lang.String...)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>copy</h4>
|
|
<pre>public <a href="../controlP5/ControllerProperties.html" title="class in controlP5">ControllerProperties</a> copy(<a href="../controlP5/ControllerProperty.html" title="class in controlP5">ControllerProperty</a> theProperty,
|
|
java.lang.String... theSet)</pre>
|
|
<div class="block">copies a ControllerProperty from one set to other(s);</div>
|
|
</li>
|
|
</ul>
|
|
<a name="delete(controlP5.ControllerProperty)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>delete</h4>
|
|
<pre>public <a href="../controlP5/ControllerProperties.html" title="class in controlP5">ControllerProperties</a> delete(<a href="../controlP5/ControllerProperty.html" title="class in controlP5">ControllerProperty</a> theProperty)</pre>
|
|
<div class="block">deletes a ControllerProperty from all Sets including the default set.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="get()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>get</h4>
|
|
<pre>public java.util.Map<<a href="../controlP5/ControllerProperty.html" title="class in controlP5">ControllerProperty</a>,java.util.HashSet<java.lang.String>> get()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="get(controlP5.ControllerInterface)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>get</h4>
|
|
<pre>public java.util.List<<a href="../controlP5/ControllerProperty.html" title="class in controlP5">ControllerProperty</a>> get(<a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><?> theController)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getProperty(controlP5.ControllerInterface, java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getProperty</h4>
|
|
<pre>public <a href="../controlP5/ControllerProperty.html" title="class in controlP5">ControllerProperty</a> getProperty(<a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><?> theController,
|
|
java.lang.String theProperty)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getProperty(controlP5.ControllerInterface, java.lang.String, java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getProperty</h4>
|
|
<pre>public <a href="../controlP5/ControllerProperty.html" title="class in controlP5">ControllerProperty</a> getProperty(<a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><?> theController,
|
|
java.lang.String theSetter,
|
|
java.lang.String theGetter)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getPropertySet(controlP5.ControllerInterface)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getPropertySet</h4>
|
|
<pre>public java.util.HashSet<<a href="../controlP5/ControllerProperty.html" title="class in controlP5">ControllerProperty</a>> getPropertySet(<a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><?> theController)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getSnapshot(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getSnapshot</h4>
|
|
<pre>public <a href="../controlP5/ControllerProperties.html" title="class in controlP5">ControllerProperties</a> getSnapshot(java.lang.String theKey)</pre>
|
|
<div class="block">restores properties previously stored as snapshot in memory.</div>
|
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../controlP5/ControllerProperties.html#setSnapshot(java.lang.String)"><code>setSnapshot(String)</code></a></dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getSnapshotIndices()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getSnapshotIndices</h4>
|
|
<pre>public java.util.ArrayList<java.lang.String> getSnapshotIndices()</pre>
|
|
<div class="block">properties stored in memory can be accessed by index, getSnapshotIndices() returns the index of the snapshot
|
|
list.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="load()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>load</h4>
|
|
<pre>public boolean load()</pre>
|
|
<div class="block">load properties from the default properties file 'controlP5.properties'</div>
|
|
</li>
|
|
</ul>
|
|
<a name="load(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>load</h4>
|
|
<pre>public boolean load(java.lang.String thePropertiesPath)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="move(controlP5.ControllerInterface, java.lang.String, java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>move</h4>
|
|
<pre>public <a href="../controlP5/ControllerProperties.html" title="class in controlP5">ControllerProperties</a> move(<a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><?> theController,
|
|
java.lang.String fromSet,
|
|
java.lang.String toSet)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="move(controlP5.ControllerProperty, java.lang.String, java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>move</h4>
|
|
<pre>public <a href="../controlP5/ControllerProperties.html" title="class in controlP5">ControllerProperties</a> move(<a href="../controlP5/ControllerProperty.html" title="class in controlP5">ControllerProperty</a> theProperty,
|
|
java.lang.String fromSet,
|
|
java.lang.String toSet)</pre>
|
|
<div class="block">Moves a ControllerProperty from one set to another.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="only(controlP5.ControllerProperty, java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>only</h4>
|
|
<pre>public <a href="../controlP5/ControllerProperties.html" title="class in controlP5">ControllerProperties</a> only(<a href="../controlP5/ControllerProperty.html" title="class in controlP5">ControllerProperty</a> theProperty,
|
|
java.lang.String theSet)</pre>
|
|
<div class="block">stores a ControllerProperty in one particular set only.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="print()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>print</h4>
|
|
<pre>public <a href="../controlP5/ControllerProperties.html" title="class in controlP5">ControllerProperties</a> print()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="register(controlP5.ControllerInterface, java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>register</h4>
|
|
<pre>public <a href="../controlP5/ControllerProperties.html" title="class in controlP5">ControllerProperties</a> register(<a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><?> theController,
|
|
java.lang.String theProperty)</pre>
|
|
<div class="block">registering a property with only one parameter assumes that there is a setter and getter function present for the
|
|
Controller. register("value") for example would create a property reference to setValue and getValue. Notice that
|
|
the first letter of value is being capitalized.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theProperty</code> - </dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd></dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="register(controlP5.ControllerInterface, java.lang.String, java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>register</h4>
|
|
<pre>public <a href="../controlP5/ControllerProperty.html" title="class in controlP5">ControllerProperty</a> register(<a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><?> theController,
|
|
java.lang.String thePropertySetter,
|
|
java.lang.String thePropertyGetter)</pre>
|
|
<div class="block">adds a property based on names of setter and getter methods of a controller.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>thePropertySetter</code> - </dd><dd><code>thePropertyGetter</code> - </dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="remove(controlP5.ControllerInterface)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>remove</h4>
|
|
<pre>public <a href="../controlP5/ControllerProperties.html" title="class in controlP5">ControllerProperties</a> remove(<a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><?> theController)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="remove(controlP5.ControllerInterface, java.lang.String...)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>remove</h4>
|
|
<pre>public <a href="../controlP5/ControllerProperties.html" title="class in controlP5">ControllerProperties</a> remove(<a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><?> theController,
|
|
java.lang.String... theSet)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="remove(controlP5.ControllerInterface, java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>remove</h4>
|
|
<pre>public <a href="../controlP5/ControllerProperties.html" title="class in controlP5">ControllerProperties</a> remove(<a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><?> theController,
|
|
java.lang.String theProperty)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="remove(controlP5.ControllerInterface, java.lang.String, java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>remove</h4>
|
|
<pre>public <a href="../controlP5/ControllerProperties.html" title="class in controlP5">ControllerProperties</a> remove(<a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><?> theController,
|
|
java.lang.String theSetter,
|
|
java.lang.String theGetter)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="remove(controlP5.ControllerProperty, java.lang.String...)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>remove</h4>
|
|
<pre>public <a href="../controlP5/ControllerProperties.html" title="class in controlP5">ControllerProperties</a> remove(<a href="../controlP5/ControllerProperty.html" title="class in controlP5">ControllerProperty</a> theProperty,
|
|
java.lang.String... theSet)</pre>
|
|
<div class="block">removes a ControllerProperty from one or multiple sets.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="removeSnapshot(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>removeSnapshot</h4>
|
|
<pre>public <a href="../controlP5/ControllerProperties.html" title="class in controlP5">ControllerProperties</a> removeSnapshot(java.lang.String theKey)</pre>
|
|
<div class="block">removes a snapshot by key.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="save()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>save</h4>
|
|
<pre>public boolean save()</pre>
|
|
<div class="block">saves all registered properties into the default 'controlP5.properties' file into your sketch folder.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="saveAs(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>saveAs</h4>
|
|
<pre>public boolean saveAs(java.lang.String thePropertiesPath)</pre>
|
|
<div class="block">saves all registered properties into a file specified by parameter thePropertiesPath.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="saveAs(java.lang.String, java.lang.String...)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>saveAs</h4>
|
|
<pre>public boolean saveAs(java.lang.String thePropertiesPath,
|
|
java.lang.String... theSets)</pre>
|
|
<div class="block">saves a list of properties sets into a file specified by parameter thePropertiesPath.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="saveSnapshot(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>saveSnapshot</h4>
|
|
<pre>public <a href="../controlP5/ControllerProperties.html" title="class in controlP5">ControllerProperties</a> saveSnapshot(java.lang.String theKey)</pre>
|
|
<div class="block">saves a snapshot into your sketch's sketch folder.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="saveSnapshotAs(java.lang.String, java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>saveSnapshotAs</h4>
|
|
<pre>public <a href="../controlP5/ControllerProperties.html" title="class in controlP5">ControllerProperties</a> saveSnapshotAs(java.lang.String thePropertiesPath,
|
|
java.lang.String theKey)</pre>
|
|
<div class="block">saves a snapshot to the file with path given by the first parameter (thePropertiesPath).</div>
|
|
</li>
|
|
</ul>
|
|
<a name="setFormat(controlP5.ControllerProperties.PropertiesStorageFormat)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setFormat</h4>
|
|
<pre>public void setFormat(controlP5.ControllerProperties.PropertiesStorageFormat theFormat)</pre>
|
|
<div class="block">use ControllerProperties.SERIALIZED, ControllerProperties.XML or ControllerProperties.JSON as parameter.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="setSnapshot(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setSnapshot</h4>
|
|
<pre>public <a href="../controlP5/ControllerProperties.html" title="class in controlP5">ControllerProperties</a> setSnapshot(java.lang.String theKey)</pre>
|
|
<div class="block">logs all registered properties in memory. Here, clones of properties are stored inside a map and can be accessed
|
|
by key using the getLog method.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theKey</code> - </dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>ControllerProperties</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../controlP5/ControllerProperties.html#getSnapshot(java.lang.String)"><code>getSnapshot(String)</code></a></dd></dl>
|
|
</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>toString</code> in class <code>java.lang.Object</code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="updateSnapshot(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>updateSnapshot</h4>
|
|
<pre>public <a href="../controlP5/ControllerProperties.html" title="class in controlP5">ControllerProperties</a> updateSnapshot(java.lang.String theKey)</pre>
|
|
<div class="block">convenience method, setSnapshot(String) also works here since it will override existing log with the same key.</div>
|
|
</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/ControllerPlug.html" title="class in controlP5"><span class="strong">Prev Class</span></a></li>
|
|
<li><a href="../controlP5/ControllerProperty.html" title="class in controlP5"><span class="strong">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../index.html?controlP5/ControllerProperties.html" target="_top">Frames</a></li>
|
|
<li><a href="ControllerProperties.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>Nested | </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>
|