mirror of
https://github.com/sojamo/controlp5
synced 2024-12-23 03:33:49 +01:00
1287 lines
48 KiB
HTML
1287 lines
48 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>ControlWindow (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="ControlWindow (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/ControlTimer.html" title="class in controlP5"><span class="strong">Prev Class</span></a></li>
|
|
<li><a href="../controlP5/ControlWindow.Pointer.html" title="class in controlP5"><span class="strong">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../index.html?controlP5/ControlWindow.html" target="_top">Frames</a></li>
|
|
<li><a href="ControlWindow.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 ControlWindow" class="title">Class ControlWindow</h2>
|
|
</div>
|
|
<div class="contentContainer">
|
|
<ul class="inheritance">
|
|
<li>java.lang.Object</li>
|
|
<li>
|
|
<ul class="inheritance">
|
|
<li>controlP5.ControlWindow</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<div class="description">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<hr>
|
|
<br>
|
|
<pre>public final class <span class="strong">ControlWindow</span>
|
|
extends java.lang.Object</pre>
|
|
<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 ControlWindow
|
|
* by andreas schlegel, 2012
|
|
*/
|
|
|
|
import controlP5.*;
|
|
|
|
ControlP5 cp5;
|
|
|
|
int myColorBackground = color(0, 0, 0);
|
|
|
|
ControlWindow controlWindow;
|
|
|
|
public int sliderValue = 40;
|
|
|
|
void setup() {
|
|
size(700, 400);
|
|
|
|
cp5 = new ControlP5(this);
|
|
|
|
|
|
// PLEASE READ
|
|
//
|
|
// With controlP5 2.0 the ControlWindow has been removed,
|
|
// please see the changelog.txt for details.
|
|
// Instead, see the extra/ControlP5frame example for
|
|
// a ControlWindow alternative.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// controlWindow = cp5.addControlWindow("controlP5window", 100, 100, 400, 200)
|
|
// .hideCoordinates()
|
|
// .setBackground(color(40))
|
|
// ;
|
|
|
|
cp5.addSlider("sliderValue")
|
|
.setRange(0, 255)
|
|
.setPosition(40, 40)
|
|
.setSize(200, 29)
|
|
//.moveTo(controlWindow)
|
|
;
|
|
}
|
|
|
|
|
|
void draw() {
|
|
background(sliderValue);
|
|
}
|
|
|
|
void myTextfield(String theValue) {
|
|
println(theValue);
|
|
}
|
|
|
|
void myWindowTextfield(String theValue) {
|
|
println("from controlWindow: "+theValue);
|
|
}
|
|
|
|
void keyPressed() {
|
|
// if (key==',') cp5.window("controlP5window").hide();
|
|
// if (key=='.') cp5.window("controlP5window").show();
|
|
// controlWindow = controlP5.addControlWindow("controlP5window2",600,100,400,200);
|
|
// controlP5.controller("sliderValue1").moveTo(controlWindow);
|
|
|
|
// if (key=='d') {
|
|
// if (controlWindow.isUndecorated()) {
|
|
// controlWindow.setUndecorated(false);
|
|
// } else {
|
|
// controlWindow.setUndecorated(true);
|
|
// }
|
|
// }
|
|
// if (key=='t') {
|
|
// controlWindow.toggleUndecorated();
|
|
// }
|
|
}
|
|
|
|
</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/ControlWindow.Pointer.html" title="class in controlP5">ControlWindow.Pointer</a></strong></code>
|
|
<div class="block">A pointer by default is linked to the mouse and
|
|
stores the x and y position as well as the pressed
|
|
and released state.</div>
|
|
</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>int</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#background">background</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/ControlWindow.html#ControlWindow(controlP5.ControlP5, processing.core.PApplet)">ControlWindow</a></strong>(<a href="../controlP5/ControlP5.html" title="class in controlP5">ControlP5</a> theControlP5,
|
|
processing.core.PApplet theApplet)</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/ControlWindow.html" title="class in controlP5">ControlWindow</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#activateTab(java.lang.String)">activateTab</a></strong>(java.lang.String theTab)</code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/Tab.html" title="class in controlP5">Tab</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#add(controlP5.Tab)">add</a></strong>(<a href="../controlP5/Tab.html" title="class in controlP5">Tab</a> theTab)</code> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#addCanvas(controlP5.Canvas)">addCanvas</a></strong>(<a href="../controlP5/Canvas.html" title="class in controlP5">Canvas</a> theCanvas)</code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/Tab.html" title="class in controlP5">Tab</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#addTab(java.lang.String)">addTab</a></strong>(java.lang.String theTab)</code> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#clear()">clear</a></strong>()</code>
|
|
<div class="block">clear the control window, delete all controllers from
|
|
a control window.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#clearKeys()">clearKeys</a></strong>()</code> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#disableMouseWheel()">disableMouseWheel</a></strong>()</code>
|
|
<div class="block"><strong>Deprecated.</strong> </div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#disablePointer()">disablePointer</a></strong>()</code> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#draw()">draw</a></strong>()</code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#draw(processing.core.PGraphics)">draw</a></strong>(processing.core.PGraphics pg)</code> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#draw(processing.core.PGraphics, int, int)">draw</a></strong>(processing.core.PGraphics pg,
|
|
int theX,
|
|
int theY)</code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#enableMouseWheel()">enableMouseWheel</a></strong>()</code>
|
|
<div class="block"><strong>Deprecated.</strong> </div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#enablePointer()">enablePointer</a></strong>()</code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#frameRate(int)">frameRate</a></strong>(int theFrameRate)</code>
|
|
<div class="block">sets the frame rate of the control window.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../controlP5/Tab.html" title="class in controlP5">Tab</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#getCurrentTab()">getCurrentTab</a></strong>()</code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><?></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#getFirstFromMouseOverList()">getFirstFromMouseOverList</a></strong>()</code> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>java.util.List<<a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><?>></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#getMouseOverList()">getMouseOverList</a></strong>()</code>
|
|
<div class="block">A list of controllers that are registered with a
|
|
mouseover.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControlWindow.Pointer.html" title="class in controlP5">ControlWindow.Pointer</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#getPointer()">getPointer</a></strong>()</code> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>processing.core.PVector</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#getPositionOfTabs()">getPositionOfTabs</a></strong>()</code>
|
|
<div class="block">Returns the position of the tab bar as PVector.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/Tab.html" title="class in controlP5">Tab</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#getTab(java.lang.String)">getTab</a></strong>(java.lang.String theTabName)</code> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControllerList.html" title="class in controlP5">ControllerList</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#getTabs()">getTabs</a></strong>()</code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#handleKeyEvent(processing.event.KeyEvent)">handleKeyEvent</a></strong>(processing.event.KeyEvent theKeyEvent)</code> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#hide()">hide</a></strong>()</code>
|
|
<div class="block">hide the controllers and tabs of the ControlWindow.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#isDrawBackground()">isDrawBackground</a></strong>()</code> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#isMouseOver()">isMouseOver</a></strong>()</code>
|
|
<div class="block">returns true if the mouse is inside a controller.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#isMouseOver(controlP5.ControllerInterface)">isMouseOver</a></strong>(<a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><?> theController)</code> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#isMousePressed()">isMousePressed</a></strong>()</code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#isMouseWheel()">isMouseWheel</a></strong>()</code>
|
|
<div class="block"><strong>Deprecated.</strong> </div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#isUndecorated()">isUndecorated</a></strong>()</code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#isUpdate()">isUpdate</a></strong>()</code>
|
|
<div class="block">check the update status of a control window.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#isVisible()">isVisible</a></strong>()</code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#keyEvent(processing.event.KeyEvent)">keyEvent</a></strong>(processing.event.KeyEvent theKeyEvent)</code> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#mouseEvent(int, int, boolean)">mouseEvent</a></strong>(int theX,
|
|
int theY,
|
|
boolean pressed)</code>
|
|
<div class="block">when in Android mode, call mouseEvent(int, int,
|
|
boolean).</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#mouseEvent(processing.event.MouseEvent)">mouseEvent</a></strong>(processing.event.MouseEvent theMouseEvent)</code> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>java.lang.String</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#name()">name</a></strong>()</code>
|
|
<div class="block">returns the name of the control window.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>processing.core.PApplet</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#papplet()">papplet</a></strong>()</code>
|
|
<div class="block">get the papplet instance of the ControlWindow.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#pre()">pre</a></strong>()</code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#remove()">remove</a></strong>()</code> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#removeCanvas(controlP5.Canvas)">removeCanvas</a></strong>(<a href="../controlP5/Canvas.html" title="class in controlP5">Canvas</a> theCanvas)</code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#removeMouseOverFor(controlP5.ControllerInterface)">removeMouseOverFor</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/ControlWindow.html" title="class in controlP5">ControlWindow</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#removeTab(controlP5.Tab)">removeTab</a></strong>(<a href="../controlP5/Tab.html" title="class in controlP5">Tab</a> theTab)</code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#resetMouseOver()">resetMouseOver</a></strong>()</code> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#setBackground(int)">setBackground</a></strong>(int theValue)</code>
|
|
<div class="block">set the background color of the control window.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#setColorActive(int)">setColorActive</a></strong>(int theColor)</code>
|
|
<div class="block">set the color for the controller while active.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#setColorBackground(int)">setColorBackground</a></strong>(int theColor)</code>
|
|
<div class="block">set the background color of the controller.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#setColorForeground(int)">setColorForeground</a></strong>(int theColor)</code>
|
|
<div class="block">set the foreground color of the controller.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#setColorLabel(int)">setColorLabel</a></strong>(int theColor)</code>
|
|
<div class="block">set the color of the text label of the controller.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#setColorValue(int)">setColorValue</a></strong>(int theColor)</code>
|
|
<div class="block">set the color of the values.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#setContext(controlP5.CDrawable)">setContext</a></strong>(<a href="../controlP5/CDrawable.html" title="interface in controlP5">CDrawable</a> theDrawable)</code>
|
|
<div class="block">Adds a custom context to a ControlWindow.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#setDrawBackground(boolean)">setDrawBackground</a></strong>(boolean theFlag)</code>
|
|
<div class="block">by default the background of a controlWindow is
|
|
filled with a background color every frame.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#setLocation(int, int)">setLocation</a></strong>(int theX,
|
|
int theY)</code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#setPosition(int, int)">setPosition</a></strong>(int theX,
|
|
int theY)</code> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#setPositionOfTabs(int, int)">setPositionOfTabs</a></strong>(int theX,
|
|
int theY)</code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#setPositionOfTabs(processing.core.PVector)">setPositionOfTabs</a></strong>(processing.core.PVector thePVector)</code>
|
|
<div class="block">Sets the position of the tab bar which is set to 0,0
|
|
by default.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#setUndecorated(boolean)">setUndecorated</a></strong>(boolean theFlag)</code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#setUpdate(boolean)">setUpdate</a></strong>(boolean theFlag)</code>
|
|
<div class="block">enable or disable the update function of a control
|
|
window.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#show()">show</a></strong>()</code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#toggleUndecorated()">toggleUndecorated</a></strong>()</code> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#update()">update</a></strong>()</code>
|
|
<div class="block">updates all controllers inside the control window if
|
|
update is enabled.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/ControlWindow.html#updateEvents()">updateEvents</a></strong>()</code> </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, toString, 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="background">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>background</h4>
|
|
<pre>public int background</pre>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="constructor_detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Constructor Detail</h3>
|
|
<a name="ControlWindow(controlP5.ControlP5, processing.core.PApplet)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>ControlWindow</h4>
|
|
<pre>public ControlWindow(<a href="../controlP5/ControlP5.html" title="class in controlP5">ControlP5</a> theControlP5,
|
|
processing.core.PApplet theApplet)</pre>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method_detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Detail</h3>
|
|
<a name="activateTab(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>activateTab</h4>
|
|
<pre>public <a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a> activateTab(java.lang.String theTab)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="add(controlP5.Tab)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>add</h4>
|
|
<pre>public <a href="../controlP5/Tab.html" title="class in controlP5">Tab</a> add(<a href="../controlP5/Tab.html" title="class in controlP5">Tab</a> theTab)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="addCanvas(controlP5.Canvas)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>addCanvas</h4>
|
|
<pre>public <a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a> addCanvas(<a href="../controlP5/Canvas.html" title="class in controlP5">Canvas</a> theCanvas)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="addTab(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>addTab</h4>
|
|
<pre>public <a href="../controlP5/Tab.html" title="class in controlP5">Tab</a> addTab(java.lang.String theTab)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="clear()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>clear</h4>
|
|
<pre>public <a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a> clear()</pre>
|
|
<div class="block">clear the control window, delete all controllers from
|
|
a control window.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="clearKeys()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>clearKeys</h4>
|
|
<pre>public void clearKeys()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="disableMouseWheel()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>disableMouseWheel</h4>
|
|
<pre>@Deprecated
|
|
public <a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a> disableMouseWheel()</pre>
|
|
<div class="block"><span class="strong">Deprecated.</span> </div>
|
|
</li>
|
|
</ul>
|
|
<a name="disablePointer()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>disablePointer</h4>
|
|
<pre>public <a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a> disablePointer()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="draw()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>draw</h4>
|
|
<pre>public void draw()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="draw(processing.core.PGraphics)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>draw</h4>
|
|
<pre>public void draw(processing.core.PGraphics pg)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="draw(processing.core.PGraphics, int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>draw</h4>
|
|
<pre>public void draw(processing.core.PGraphics pg,
|
|
int theX,
|
|
int theY)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="enableMouseWheel()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>enableMouseWheel</h4>
|
|
<pre>@Deprecated
|
|
public <a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a> enableMouseWheel()</pre>
|
|
<div class="block"><span class="strong">Deprecated.</span> </div>
|
|
</li>
|
|
</ul>
|
|
<a name="enablePointer()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>enablePointer</h4>
|
|
<pre>public <a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a> enablePointer()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="frameRate(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>frameRate</h4>
|
|
<pre>public <a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a> frameRate(int theFrameRate)</pre>
|
|
<div class="block">sets the frame rate of the control window.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theFrameRate</code> - </dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>ControlWindow</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getCurrentTab()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getCurrentTab</h4>
|
|
<pre>public <a href="../controlP5/Tab.html" title="class in controlP5">Tab</a> getCurrentTab()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getFirstFromMouseOverList()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getFirstFromMouseOverList</h4>
|
|
<pre>public <a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><?> getFirstFromMouseOverList()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getMouseOverList()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getMouseOverList</h4>
|
|
<pre>public java.util.List<<a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><?>> getMouseOverList()</pre>
|
|
<div class="block">A list of controllers that are registered with a
|
|
mouseover.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="getPointer()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getPointer</h4>
|
|
<pre>public <a href="../controlP5/ControlWindow.Pointer.html" title="class in controlP5">ControlWindow.Pointer</a> getPointer()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getPositionOfTabs()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getPositionOfTabs</h4>
|
|
<pre>public processing.core.PVector getPositionOfTabs()</pre>
|
|
<div class="block">Returns the position of the tab bar as PVector. to
|
|
move the tabs to y-position 100, use
|
|
cp5.window().getPositionOfTabs().y = 100; or
|
|
cp5.window().setPositionOfTabs(new PVector(0,100,0));</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>PVector</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getTab(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getTab</h4>
|
|
<pre>public <a href="../controlP5/Tab.html" title="class in controlP5">Tab</a> getTab(java.lang.String theTabName)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getTabs()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getTabs</h4>
|
|
<pre>public <a href="../controlP5/ControllerList.html" title="class in controlP5">ControllerList</a> getTabs()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="handleKeyEvent(processing.event.KeyEvent)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>handleKeyEvent</h4>
|
|
<pre>public void handleKeyEvent(processing.event.KeyEvent theKeyEvent)</pre>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theKeyEvent</code> - KeyEvent</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="hide()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>hide</h4>
|
|
<pre>public <a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a> hide()</pre>
|
|
<div class="block">hide the controllers and tabs of the ControlWindow.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="isDrawBackground()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isDrawBackground</h4>
|
|
<pre>public boolean isDrawBackground()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="isMouseOver()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isMouseOver</h4>
|
|
<pre>public boolean isMouseOver()</pre>
|
|
<div class="block">returns true if the mouse is inside a controller. !!!
|
|
doesnt work for groups yet.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="isMouseOver(controlP5.ControllerInterface)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isMouseOver</h4>
|
|
<pre>public boolean isMouseOver(<a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><?> theController)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="isMousePressed()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isMousePressed</h4>
|
|
<pre>public boolean isMousePressed()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="isMouseWheel()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isMouseWheel</h4>
|
|
<pre>@Deprecated
|
|
public boolean isMouseWheel()</pre>
|
|
<div class="block"><span class="strong">Deprecated.</span> </div>
|
|
</li>
|
|
</ul>
|
|
<a name="isUndecorated()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isUndecorated</h4>
|
|
<pre>public boolean isUndecorated()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="isUpdate()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isUpdate</h4>
|
|
<pre>public boolean isUpdate()</pre>
|
|
<div class="block">check the update status of a control window.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="isVisible()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isVisible</h4>
|
|
<pre>public boolean isVisible()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="keyEvent(processing.event.KeyEvent)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>keyEvent</h4>
|
|
<pre>public void keyEvent(processing.event.KeyEvent theKeyEvent)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="mouseEvent(int, int, boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>mouseEvent</h4>
|
|
<pre>public void mouseEvent(int theX,
|
|
int theY,
|
|
boolean pressed)</pre>
|
|
<div class="block">when in Android mode, call mouseEvent(int, int,
|
|
boolean).</div>
|
|
</li>
|
|
</ul>
|
|
<a name="mouseEvent(processing.event.MouseEvent)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>mouseEvent</h4>
|
|
<pre>public void mouseEvent(processing.event.MouseEvent theMouseEvent)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="name()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>name</h4>
|
|
<pre>public java.lang.String name()</pre>
|
|
<div class="block">returns the name of the control window.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="papplet()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>papplet</h4>
|
|
<pre>public processing.core.PApplet papplet()</pre>
|
|
<div class="block">get the papplet instance of the ControlWindow.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="pre()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>pre</h4>
|
|
<pre>public <a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a> pre()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="remove()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>remove</h4>
|
|
<pre>public void remove()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="removeCanvas(controlP5.Canvas)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>removeCanvas</h4>
|
|
<pre>public <a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a> removeCanvas(<a href="../controlP5/Canvas.html" title="class in controlP5">Canvas</a> theCanvas)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="removeMouseOverFor(controlP5.ControllerInterface)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>removeMouseOverFor</h4>
|
|
<pre>public <a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a> removeMouseOverFor(<a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><?> theController)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="removeTab(controlP5.Tab)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>removeTab</h4>
|
|
<pre>public <a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a> removeTab(<a href="../controlP5/Tab.html" title="class in controlP5">Tab</a> theTab)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="resetMouseOver()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>resetMouseOver</h4>
|
|
<pre>public void resetMouseOver()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="setBackground(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setBackground</h4>
|
|
<pre>public <a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a> setBackground(int theValue)</pre>
|
|
<div class="block">set the background color of the control window.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="setColorActive(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setColorActive</h4>
|
|
<pre>public <a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a> setColorActive(int theColor)</pre>
|
|
<div class="block">set the color for the controller while active.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="setColorBackground(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setColorBackground</h4>
|
|
<pre>public <a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a> setColorBackground(int theColor)</pre>
|
|
<div class="block">set the background color of the controller.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="setColorForeground(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setColorForeground</h4>
|
|
<pre>public <a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a> setColorForeground(int theColor)</pre>
|
|
<div class="block">set the foreground color of the controller.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="setColorLabel(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setColorLabel</h4>
|
|
<pre>public <a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a> setColorLabel(int theColor)</pre>
|
|
<div class="block">set the color of the text label of the controller.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="setColorValue(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setColorValue</h4>
|
|
<pre>public <a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a> setColorValue(int theColor)</pre>
|
|
<div class="block">set the color of the values.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="setContext(controlP5.CDrawable)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setContext</h4>
|
|
<pre>public <a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a> setContext(<a href="../controlP5/CDrawable.html" title="interface in controlP5">CDrawable</a> theDrawable)</pre>
|
|
<div class="block">Adds a custom context to a ControlWindow. Use a
|
|
custom class which implements the CDrawable interface</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theDrawable</code> - CDrawable</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../controlP5/CDrawable.html" title="interface in controlP5"><code>CDrawable</code></a></dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setDrawBackground(boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setDrawBackground</h4>
|
|
<pre>public <a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a> setDrawBackground(boolean theFlag)</pre>
|
|
<div class="block">by default the background of a controlWindow is
|
|
filled with a background color every frame. to enable
|
|
or disable the background from drawing, use
|
|
setDrawBackgorund(true/false).</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theFlag</code> - </dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>ControlWindow</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setLocation(int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setLocation</h4>
|
|
<pre>public <a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a> setLocation(int theX,
|
|
int theY)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="setPosition(int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setPosition</h4>
|
|
<pre>public <a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a> setPosition(int theX,
|
|
int theY)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="setPositionOfTabs(int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setPositionOfTabs</h4>
|
|
<pre>public <a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a> setPositionOfTabs(int theX,
|
|
int theY)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="setPositionOfTabs(processing.core.PVector)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setPositionOfTabs</h4>
|
|
<pre>public <a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a> setPositionOfTabs(processing.core.PVector thePVector)</pre>
|
|
<div class="block">Sets the position of the tab bar which is set to 0,0
|
|
by default. to move the tabs to y-position 100, use
|
|
cp5.window().setPositionOfTabs(new PVector(0,100,0));</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>thePVector</code> - </dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setUndecorated(boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setUndecorated</h4>
|
|
<pre>public <a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a> setUndecorated(boolean theFlag)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="setUpdate(boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setUpdate</h4>
|
|
<pre>public void setUpdate(boolean theFlag)</pre>
|
|
<div class="block">enable or disable the update function of a control
|
|
window.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="show()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>show</h4>
|
|
<pre>public <a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a> show()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="toggleUndecorated()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>toggleUndecorated</h4>
|
|
<pre>public <a href="../controlP5/ControlWindow.html" title="class in controlP5">ControlWindow</a> toggleUndecorated()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="update()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>update</h4>
|
|
<pre>public void update()</pre>
|
|
<div class="block">updates all controllers inside the control window if
|
|
update is enabled.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="updateEvents()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>updateEvents</h4>
|
|
<pre>public void updateEvents()</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/ControlTimer.html" title="class in controlP5"><span class="strong">Prev Class</span></a></li>
|
|
<li><a href="../controlP5/ControlWindow.Pointer.html" title="class in controlP5"><span class="strong">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../index.html?controlP5/ControlWindow.html" target="_top">Frames</a></li>
|
|
<li><a href="ControlWindow.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>
|