mirror of
https://github.com/sojamo/controlp5
synced 2024-12-23 03:33:49 +01:00
1230 lines
67 KiB
HTML
1230 lines
67 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:48 SGT 2014 -->
|
||
|
<title>Textarea (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="Textarea (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/Tab.html" title="class in controlP5"><span class="strong">Prev Class</span></a></li>
|
||
|
<li><a href="../controlP5/Textfield.html" title="class in controlP5"><span class="strong">Next Class</span></a></li>
|
||
|
</ul>
|
||
|
<ul class="navList">
|
||
|
<li><a href="../index.html?controlP5/Textarea.html" target="_top">Frames</a></li>
|
||
|
<li><a href="Textarea.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>Field | </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>Field | </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 Textarea" class="title">Class Textarea</h2>
|
||
|
</div>
|
||
|
<div class="contentContainer">
|
||
|
<ul class="inheritance">
|
||
|
<li>java.lang.Object</li>
|
||
|
<li>
|
||
|
<ul class="inheritance">
|
||
|
<li><a href="../controlP5/ControllerGroup.html" title="class in controlP5">controlP5.ControllerGroup</a><<a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a>></li>
|
||
|
<li>
|
||
|
<ul class="inheritance">
|
||
|
<li>controlP5.Textarea</li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<div class="description">
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<dl>
|
||
|
<dt>All Implemented Interfaces:</dt>
|
||
|
<dd><a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><<a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a>>, <a href="../controlP5/ControlListener.html" title="interface in controlP5">ControlListener</a>, <a href="../controlP5/ControlP5Constants.html" title="interface in controlP5">ControlP5Constants</a></dd>
|
||
|
</dl>
|
||
|
<hr>
|
||
|
<br>
|
||
|
<pre>public class <span class="strong">Textarea</span>
|
||
|
extends <a href="../controlP5/ControllerGroup.html" title="class in controlP5">ControllerGroup</a><<a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a>>
|
||
|
implements <a href="../controlP5/ControlListener.html" title="interface in controlP5">ControlListener</a></pre>
|
||
|
<div class="block">a textarea can be used to leave notes, it uses the controlP5 BitFont to render text. Scrollbars
|
||
|
will automatically be added when text extends the visible area. Textarea extends ControllerGroup,
|
||
|
for more methods available see the ControllerGroup documentation.</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 Textarea
|
||
|
*
|
||
|
*
|
||
|
* find a list of public methods available for the Textarea Controller
|
||
|
* at the bottom of this sketch.
|
||
|
*
|
||
|
* by Andreas Schlegel, 2012
|
||
|
* www.sojamo.de/libraries/controlp5
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
import controlP5.*;
|
||
|
|
||
|
ControlP5 cp5;
|
||
|
Textarea myTextarea;
|
||
|
|
||
|
void setup() {
|
||
|
size(700,400);
|
||
|
cp5 = new ControlP5(this);
|
||
|
|
||
|
myTextarea = cp5.addTextarea("txt")
|
||
|
.setPosition(100,100)
|
||
|
.setSize(200,200)
|
||
|
.setFont(createFont("arial",12))
|
||
|
.setLineHeight(14)
|
||
|
.setColor(color(128))
|
||
|
.setColorBackground(color(255,100))
|
||
|
.setColorForeground(color(255,100));
|
||
|
;
|
||
|
myTextarea.setText("Lorem Ipsum is simply dummy text of the printing and typesetting"
|
||
|
+" industry. Lorem Ipsum has been the industry's standard dummy text"
|
||
|
+" ever since the 1500s, when an unknown printer took a galley of type"
|
||
|
+" and scrambled it to make a type specimen book. It has survived not"
|
||
|
+" only five centuries, but also the leap into electronic typesetting,"
|
||
|
+" remaining essentially unchanged. It was popularised in the 1960s"
|
||
|
+" with the release of Letraset sheets containing Lorem Ipsum passages,"
|
||
|
+" and more recently with desktop publishing software like Aldus"
|
||
|
+" PageMaker including versions of Lorem Ipsum."
|
||
|
);
|
||
|
|
||
|
cp5.addSlider("changeWidth")
|
||
|
.setRange(100,400)
|
||
|
.setValue(200)
|
||
|
.setPosition(100,20)
|
||
|
.setSize(100,19)
|
||
|
;
|
||
|
|
||
|
cp5.addSlider("changeHeight")
|
||
|
.setRange(100,400)
|
||
|
.setValue(200)
|
||
|
.setPosition(100,40)
|
||
|
.setSize(100,19)
|
||
|
;
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
void keyPressed() {
|
||
|
if(key=='r') {
|
||
|
myTextarea.setText("Lorem ipsum dolor sit amet, consectetur adipiscing elit."
|
||
|
+" Quisque sed velit nec eros scelerisque adipiscing vitae eu sem."
|
||
|
+" Quisque malesuada interdum lectus. Pellentesque pellentesque molestie"
|
||
|
+" vestibulum. Maecenas ultricies, neque at porttitor lacinia, tellus enim"
|
||
|
+" suscipit tortor, ut dapibus orci lorem non ipsum. Mauris ut velit velit."
|
||
|
+" Fusce at purus in augue semper tincidunt imperdiet sit amet eros."
|
||
|
+" Vestibulum nunc diam, fringilla vitae tristique ut, viverra ut felis."
|
||
|
+" Proin aliquet turpis ornare leo aliquam dapibus. Integer dui nisi, condimentum"
|
||
|
+" ut sagittis non, fringilla vestibulum sapien. Sed ullamcorper libero et massa"
|
||
|
+" congue in facilisis mauris lobortis. Fusce cursus risus sit amet leo imperdiet"
|
||
|
+" lacinia faucibus turpis tempus. Pellentesque pellentesque augue sed purus varius"
|
||
|
+" sed volutpat dui rhoncus. Lorem ipsum dolor sit amet, consectetur adipiscing elit"
|
||
|
);
|
||
|
|
||
|
} else if(key=='c') {
|
||
|
myTextarea.setColor(0xffffffff);
|
||
|
}
|
||
|
}
|
||
|
void draw() {
|
||
|
background(0);
|
||
|
if(keyPressed && key==' ') {
|
||
|
myTextarea.scroll((float)mouseX/(float)width);
|
||
|
}
|
||
|
if(keyPressed && key=='l') {
|
||
|
myTextarea.setLineHeight(mouseY);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
void changeWidth(int theValue) {
|
||
|
myTextarea.setWidth(theValue);
|
||
|
}
|
||
|
|
||
|
void changeHeight(int theValue) {
|
||
|
myTextarea.setHeight(theValue);
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
/*
|
||
|
a list of all methods available for the Textarea Controller
|
||
|
use ControlP5.printPublicMethodsFor(Textarea.class);
|
||
|
to print the following list into the console.
|
||
|
|
||
|
You can find further details about class Textarea in the javadoc.
|
||
|
|
||
|
Format:
|
||
|
ClassName : returnType methodName(parameter type)
|
||
|
|
||
|
controlP5.Textarea : Label getValueLabel()
|
||
|
controlP5.Textarea : String getStringValue()
|
||
|
controlP5.Textarea : String getText()
|
||
|
controlP5.Textarea : Textarea disableColorBackground()
|
||
|
controlP5.Textarea : Textarea enableColorBackground()
|
||
|
controlP5.Textarea : Textarea hideScrollbar()
|
||
|
controlP5.Textarea : Textarea scroll(float)
|
||
|
controlP5.Textarea : Textarea setBorderColor(int)
|
||
|
controlP5.Textarea : Textarea setColor(int)
|
||
|
controlP5.Textarea : Textarea setColorBackground(int)
|
||
|
controlP5.Textarea : Textarea setFont(ControlFont)
|
||
|
controlP5.Textarea : Textarea setFont(PFont)
|
||
|
controlP5.Textarea : Textarea setFont(int)
|
||
|
controlP5.Textarea : Textarea setHeight(int)
|
||
|
controlP5.Textarea : Textarea setLineHeight(int)
|
||
|
controlP5.Textarea : Textarea setScrollActive(int)
|
||
|
controlP5.Textarea : Textarea setScrollBackground(int)
|
||
|
controlP5.Textarea : Textarea setScrollForeground(int)
|
||
|
controlP5.Textarea : Textarea setSize(int, int)
|
||
|
controlP5.Textarea : Textarea setText(String)
|
||
|
controlP5.Textarea : Textarea setWidth(int)
|
||
|
controlP5.Textarea : Textarea showScrollbar()
|
||
|
controlP5.Textarea : boolean isScrollable()
|
||
|
controlP5.Textarea : float getValue()
|
||
|
controlP5.Textarea : void controlEvent(ControlEvent)
|
||
|
controlP5.ControllerGroup : CColor getColor()
|
||
|
controlP5.ControllerGroup : ControlWindow getWindow()
|
||
|
controlP5.ControllerGroup : ControlWindowCanvas addCanvas(ControlWindowCanvas)
|
||
|
controlP5.ControllerGroup : Controller getController(String)
|
||
|
controlP5.ControllerGroup : ControllerProperty getProperty(String)
|
||
|
controlP5.ControllerGroup : ControllerProperty getProperty(String, String)
|
||
|
controlP5.ControllerGroup : Label getCaptionLabel()
|
||
|
controlP5.ControllerGroup : Label getValueLabel()
|
||
|
controlP5.ControllerGroup : PVector getPosition()
|
||
|
controlP5.ControllerGroup : String getAddress()
|
||
|
controlP5.ControllerGroup : String getInfo()
|
||
|
controlP5.ControllerGroup : String getName()
|
||
|
controlP5.ControllerGroup : String getStringValue()
|
||
|
controlP5.ControllerGroup : String toString()
|
||
|
controlP5.ControllerGroup : Tab getTab()
|
||
|
controlP5.ControllerGroup : Textarea add(ControllerInterface)
|
||
|
controlP5.ControllerGroup : Textarea bringToFront()
|
||
|
controlP5.ControllerGroup : Textarea bringToFront(ControllerInterface)
|
||
|
controlP5.ControllerGroup : Textarea close()
|
||
|
controlP5.ControllerGroup : Textarea disableCollapse()
|
||
|
controlP5.ControllerGroup : Textarea enableCollapse()
|
||
|
controlP5.ControllerGroup : Textarea hide()
|
||
|
controlP5.ControllerGroup : Textarea moveTo(ControlWindow)
|
||
|
controlP5.ControllerGroup : Textarea moveTo(PApplet)
|
||
|
controlP5.ControllerGroup : Textarea open()
|
||
|
controlP5.ControllerGroup : Textarea registerProperty(String)
|
||
|
controlP5.ControllerGroup : Textarea registerProperty(String, String)
|
||
|
controlP5.ControllerGroup : Textarea remove(CDrawable)
|
||
|
controlP5.ControllerGroup : Textarea remove(ControllerInterface)
|
||
|
controlP5.ControllerGroup : Textarea removeCanvas(ControlWindowCanvas)
|
||
|
controlP5.ControllerGroup : Textarea removeProperty(String)
|
||
|
controlP5.ControllerGroup : Textarea removeProperty(String, String)
|
||
|
controlP5.ControllerGroup : Textarea setAddress(String)
|
||
|
controlP5.ControllerGroup : Textarea setArrayValue(float[])
|
||
|
controlP5.ControllerGroup : Textarea setColor(CColor)
|
||
|
controlP5.ControllerGroup : Textarea setColorActive(int)
|
||
|
controlP5.ControllerGroup : Textarea setColorBackground(int)
|
||
|
controlP5.ControllerGroup : Textarea setColorForeground(int)
|
||
|
controlP5.ControllerGroup : Textarea setColorLabel(int)
|
||
|
controlP5.ControllerGroup : Textarea setColorValue(int)
|
||
|
controlP5.ControllerGroup : Textarea setHeight(int)
|
||
|
controlP5.ControllerGroup : Textarea setId(int)
|
||
|
controlP5.ControllerGroup : Textarea setLabel(String)
|
||
|
controlP5.ControllerGroup : Textarea setMouseOver(boolean)
|
||
|
controlP5.ControllerGroup : Textarea setMoveable(boolean)
|
||
|
controlP5.ControllerGroup : Textarea setOpen(boolean)
|
||
|
controlP5.ControllerGroup : Textarea setPosition(PVector)
|
||
|
controlP5.ControllerGroup : Textarea setPosition(float, float)
|
||
|
controlP5.ControllerGroup : Textarea setStringValue(String)
|
||
|
controlP5.ControllerGroup : Textarea setUpdate(boolean)
|
||
|
controlP5.ControllerGroup : Textarea setValue(float)
|
||
|
controlP5.ControllerGroup : Textarea setVisible(boolean)
|
||
|
controlP5.ControllerGroup : Textarea setWidth(int)
|
||
|
controlP5.ControllerGroup : Textarea show()
|
||
|
controlP5.ControllerGroup : Textarea update()
|
||
|
controlP5.ControllerGroup : Textarea updateAbsolutePosition()
|
||
|
controlP5.ControllerGroup : boolean isCollapse()
|
||
|
controlP5.ControllerGroup : boolean isMouseOver()
|
||
|
controlP5.ControllerGroup : boolean isMoveable()
|
||
|
controlP5.ControllerGroup : boolean isOpen()
|
||
|
controlP5.ControllerGroup : boolean isUpdate()
|
||
|
controlP5.ControllerGroup : boolean isVisible()
|
||
|
controlP5.ControllerGroup : boolean setMousePressed(boolean)
|
||
|
controlP5.ControllerGroup : float getValue()
|
||
|
controlP5.ControllerGroup : float[] getArrayValue()
|
||
|
controlP5.ControllerGroup : int getHeight()
|
||
|
controlP5.ControllerGroup : int getId()
|
||
|
controlP5.ControllerGroup : int getWidth()
|
||
|
controlP5.ControllerGroup : void remove()
|
||
|
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>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList"><a name="fields_inherited_from_class_controlP5.ControlP5Constants">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<h3>Fields inherited from interface controlP5.<a href="../controlP5/ControlP5Constants.html" title="interface in controlP5">ControlP5Constants</a></h3>
|
||
|
<code><a href="../controlP5/ControlP5Constants.html#acceptClassList">acceptClassList</a>, <a href="../controlP5/ControlP5Constants.html#ACTION_BROADCAST">ACTION_BROADCAST</a>, <a href="../controlP5/ControlP5Constants.html#ACTION_CLICK">ACTION_CLICK</a>, <a href="../controlP5/ControlP5Constants.html#ACTION_DRAG">ACTION_DRAG</a>, <a href="../controlP5/ControlP5Constants.html#ACTION_ENTER">ACTION_ENTER</a>, <a href="../controlP5/ControlP5Constants.html#ACTION_EXIT">ACTION_EXIT</a>, <a href="../controlP5/ControlP5Constants.html#ACTION_LEAVE">ACTION_LEAVE</a>, <a href="../controlP5/ControlP5Constants.html#ACTION_MOVE">ACTION_MOVE</a>, <a href="../controlP5/ControlP5Constants.html#ACTION_PRESS">ACTION_PRESS</a>, <a href="../controlP5/ControlP5Constants.html#ACTION_PRESSED">ACTION_PRESSED</a>, <a href="../controlP5/ControlP5Constants.html#ACTION_RELEASE">ACTION_RELEASE</a>, <a href="../controlP5/ControlP5Constants.html#ACTION_RELEASED">ACTION_RELEASED</a>, <a href="../controlP5/ControlP5Constants.html#ACTION_RELEASEDOUTSIDE">ACTION_RELEASEDOUTSIDE</a>, <a href="../controlP5/ControlP5Constants.html#ACTION_WHEEL">ACTION_WHEEL</a>, <a href="../controlP5/ControlP5Constants.html#ACTIVE">ACTIVE</a>, <a href="../controlP5/ControlP5Constants.html#ALL">ALL</a>, <a href="../controlP5/ControlP5Constants.html#ALT">ALT</a>, <a href="../controlP5/ControlP5Constants.html#AQUA">AQUA</a>, <a href="../controlP5/ControlP5Constants.html#ARC">ARC</a>, <a href="../controlP5/ControlP5Constants.html#ARRAY">ARRAY</a>, <a href="../controlP5/ControlP5Constants.html#BACKSPACE">BACKSPACE</a>, <a href="../controlP5/ControlP5Constants.html#BASELINE">BASELINE</a>, <a href="../controlP5/ControlP5Constants.html#BITFONT">BITFONT</a>, <a href="../controlP5/ControlP5Constants.html#BLACK">BLACK</a>, <a href="../controlP5/ControlP5Constants.html#BLUE">BLUE</a>, <a href="../controlP5/ControlP5Constants.html#BOOLEAN">BOOLEAN</a>, <a href="../controlP5/ControlP5Constants.html#BOTTOM">BOTTOM</a>, <a href="../controlP5/ControlP5Constants.html#BOTTOM_OUTSIDE">BOTTOM_OUTSIDE</a>, <a href="../controlP5/ControlP5Constants.html#CAPTIONLABEL">CAPTIONLABEL</a>, <a href="../controlP5/ControlP5Constants.html#CENTER">CENTER</a>, <a href="../controlP5/ControlP5Constants.html#CHECKBOX">CHECKBOX</a>, <a href="../controlP5/ControlP5Constants.html#COMMANDKEY">COMMANDKEY</a>, <a href="../controlP5/ControlP5Constants.html#CONTROL">CONTROL</a>, <a href="../controlP5/ControlP5Constants.html#controlEventClass">controlEventClass</a>, <a href="../controlP5/ControlP5Constants.html#CUSTOM">CUSTOM</a>, <a href="../controlP5/ControlP5Constants.html#DECREASE">DECREASE</a>, <a href="../controlP5/ControlP5Constants.html#DEFAULT">DEFAULT</a>, <a href="../controlP5/ControlP5Constants.html#DELETE">DELETE</a>, <a href="../controlP5/ControlP5Constants.html#DONE">DONE</a>, <a href="../controlP5/ControlP5Constants.html#DOWN">DOWN</a>, <a href="../controlP5/ControlP5Constants.html#DROPDOWN">DROPDOWN</a>, <a href="../controlP5/ControlP5Constants.html#ELLIPSE">ELLIPSE</a>, <a href="../controlP5/ControlP5Constants.html#ENTER">ENTER</a>, <a href="../controlP5/ControlP5Constants.html#ESCAPE">ESCAPE</a>, <a href="../controlP5/ControlP5Constants.html#EVENT">EVENT</a>, <a href="../controlP5/ControlP5Constants.html#eventMethod">eventMethod</a>, <a href="../controlP5/ControlP5Constants.html#FADEIN">FADEIN</a>, <a href="../controlP5/ControlP5Constants.html#FADEOUT">FADEOUT</a>, <a href="../controlP5/ControlP5Constants.html#FIELD">FIELD</a>, <a href="../controlP5/ControlP5Constants.html#FLOAT">FLOAT</a>, <a href="../controlP5/ControlP5Constants.html#FUCHSIA">FUCHSIA</a>, <a href="../controlP5/ControlP5Constants.html#GRAY">GRAY</a>, <a href="../controlP5/ControlP5Constants.html#GREEN">GREEN</a>, <a href="../controlP5/ControlP5Constants.html#grixel">grixel</a>, <a href="../controlP5/ControlP5Constants.html#HALF_PI">HALF_PI</a>, <a href="../controlP5/ControlP5Constants.html#HIDE">HIDE</a>, <a href="../controlP5/ControlP5Constants.html#HIGHLIGHT">HIGHLIGHT</a>, <a href="../controlP5/ControlP5Constants.html#HORIZONTAL">HOR
|
||
|
</ul>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList"><a name="constructor_summary">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<h3>Constructor Summary</h3>
|
||
|
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
|
||
|
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
|
||
|
<tr>
|
||
|
<th class="colOne" scope="col">Constructor and Description</th>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colOne"><code><strong><a href="../controlP5/Textarea.html#Textarea(controlP5.ControlP5, java.lang.String)">Textarea</a></strong>(<a href="../controlP5/ControlP5.html" title="class in controlP5">ControlP5</a> theControlP5,
|
||
|
java.lang.String theName)</code>
|
||
|
<div class="block">Convenience constructor to extend Textarea.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colOne"><code><strong><a href="../controlP5/Textarea.html#Textarea(java.lang.String, int, int)">Textarea</a></strong>(java.lang.String theText,
|
||
|
int theX,
|
||
|
int theY)</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/Textarea.html" title="class in controlP5">Textarea</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Textarea.html#append(java.lang.String)">append</a></strong>(java.lang.String theText)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Textarea.html#append(java.lang.String, int)">append</a></strong>(java.lang.String theText,
|
||
|
int max)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Textarea.html#clear()">clear</a></strong>()</code> </td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code>void</code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Textarea.html#controlEvent(controlP5.ControlEvent)">controlEvent</a></strong>(<a href="../controlP5/ControlEvent.html" title="class in controlP5">ControlEvent</a> theEvent)</code>
|
||
|
<div class="block">controlEvent is called by controlP5's ControlBroadcaster to inform available listeners about
|
||
|
value changes.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Textarea.html#disableColorBackground()">disableColorBackground</a></strong>()</code> </td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Textarea.html#enableColorBackground()">enableColorBackground</a></strong>()</code> </td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code>float</code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Textarea.html#getScrollPosition()">getScrollPosition</a></strong>()</code> </td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code>java.lang.String</code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Textarea.html#getStringValue()">getStringValue</a></strong>()</code></td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code>java.lang.String</code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Textarea.html#getText()">getText</a></strong>()</code>
|
||
|
<div class="block">returns the text content of the textarea.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code>float</code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Textarea.html#getValue()">getValue</a></strong>()</code></td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Label.html" title="class in controlP5">Label</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Textarea.html#getValueLabel()">getValueLabel</a></strong>()</code>
|
||
|
<div class="block">returns the instance of the textarea's label.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Textarea.html#hideScrollbar()">hideScrollbar</a></strong>()</code> </td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code>boolean</code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Textarea.html#isScrollable()">isScrollable</a></strong>()</code> </td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Textarea.html#scroll(float)">scroll</a></strong>(float theValue)</code>
|
||
|
<div class="block">scroll the Textarea remotely.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code>void</code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Textarea.html#scrolled(int)">scrolled</a></strong>(int theStep)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Textarea.html#setBorderColor(int)">setBorderColor</a></strong>(int theColor)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Textarea.html#setColor(int)">setColor</a></strong>(int theColor)</code>
|
||
|
<div class="block">set the text color of the textarea.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Textarea.html#setColorBackground(int)">setColorBackground</a></strong>(int theColor)</code></td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Textarea.html#setFont(controlP5.ControlFont)">setFont</a></strong>(<a href="../controlP5/ControlFont.html" title="class in controlP5">ControlFont</a> theFont)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Textarea.html#setFont(int)">setFont</a></strong>(int theFontIndex)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Textarea.html#setFont(processing.core.PFont)">setFont</a></strong>(processing.core.PFont thePFont)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Textarea.html#setHeight(int)">setHeight</a></strong>(int theValue)</code>
|
||
|
<div class="block">set the height of the textarea.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Textarea.html#setLineHeight(int)">setLineHeight</a></strong>(int theLineHeight)</code>
|
||
|
<div class="block">set the lineheight of the textarea.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Textarea.html#setScrollActive(int)">setScrollActive</a></strong>(int theColor)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Textarea.html#setScrollBackground(int)">setScrollBackground</a></strong>(int theColor)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Textarea.html#setScrollForeground(int)">setScrollForeground</a></strong>(int theColor)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Textarea.html#setSize(int, int)">setSize</a></strong>(int theWidth,
|
||
|
int theHeight)</code> </td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Textarea.html#setText(java.lang.String)">setText</a></strong>(java.lang.String theText)</code>
|
||
|
<div class="block">set the text of the textarea.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Textarea.html#setWidth(int)">setWidth</a></strong>(int theValue)</code>
|
||
|
<div class="block">set the width of the textarea.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Textarea.html#showScrollbar()">showScrollbar</a></strong>()</code> </td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code>java.lang.String</code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Textarea.html#stringValue()">stringValue</a></strong>()</code>
|
||
|
<div class="block"><strong>Deprecated.</strong> </div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code>float</code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Textarea.html#value()">value</a></strong>()</code>
|
||
|
<div class="block"><strong>Deprecated.</strong> </div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code><a href="../controlP5/Label.html" title="class in controlP5">Label</a></code></td>
|
||
|
<td class="colLast"><code><strong><a href="../controlP5/Textarea.html#valueLabel()">valueLabel</a></strong>()</code>
|
||
|
<div class="block"><strong>Deprecated.</strong> </div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList"><a name="methods_inherited_from_class_controlP5.ControllerGroup">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<h3>Methods inherited from class controlP5.<a href="../controlP5/ControllerGroup.html" title="class in controlP5">ControllerGroup</a></h3>
|
||
|
<code><a href="../controlP5/ControllerGroup.html#absolutePosition()">absolutePosition</a>, <a href="../controlP5/ControllerGroup.html#add(controlP5.ControllerInterface)">add</a>, <a href="../controlP5/ControllerGroup.html#addCanvas(controlP5.Canvas)">addCanvas</a>, <a href="../controlP5/ControllerGroup.html#addCloseButton()">addCloseButton</a>, <a href="../controlP5/ControllerGroup.html#addDrawable(controlP5.CDrawable)">addDrawable</a>, <a href="../controlP5/ControllerGroup.html#addListener(controlP5.ControlListener)">addListener</a>, <a href="../controlP5/ControllerGroup.html#arrayValue()">arrayValue</a>, <a href="../controlP5/ControllerGroup.html#bringToFront()">bringToFront</a>, <a href="../controlP5/ControllerGroup.html#bringToFront(controlP5.ControllerInterface)">bringToFront</a>, <a href="../controlP5/ControllerGroup.html#close()">close</a>, <a href="../controlP5/ControllerGroup.html#color()">color</a>, <a href="../controlP5/ControllerGroup.html#continuousUpdateEvents()">continuousUpdateEvents</a>, <a href="../controlP5/ControllerGroup.html#controller(java.lang.String)">controller</a>, <a href="../controlP5/ControllerGroup.html#disableCollapse()">disableCollapse</a>, <a href="../controlP5/ControllerGroup.html#draw(processing.core.PGraphics)">draw</a>, <a href="../controlP5/ControllerGroup.html#enableCollapse()">enableCollapse</a>, <a href="../controlP5/ControllerGroup.html#getAbsolutePosition()">getAbsolutePosition</a>, <a href="../controlP5/ControllerGroup.html#getAddress()">getAddress</a>, <a href="../controlP5/ControllerGroup.html#getArrayValue()">getArrayValue</a>, <a href="../controlP5/ControllerGroup.html#getArrayValue(int)">getArrayValue</a>, <a href="../controlP5/ControllerGroup.html#getCaptionLabel()">getCaptionLabel</a>, <a href="../controlP5/ControllerGroup.html#getColor()">getColor</a>, <a href="../controlP5/ControllerGroup.html#getController(java.lang.String)">getController</a>, <a href="../controlP5/ControllerGroup.html#getHeight()">getHeight</a>, <a href="../controlP5/ControllerGroup.html#getId()">getId</a>, <a href="../controlP5/ControllerGroup.html#getInfo()">getInfo</a>, <a href="../controlP5/ControllerGroup.html#getName()">getName</a>, <a href="../controlP5/ControllerGroup.html#getParent()">getParent</a>, <a href="../controlP5/ControllerGroup.html#getPickingColor()">getPickingColor</a>, <a href="../controlP5/ControllerGroup.html#getPosition()">getPosition</a>, <a href="../controlP5/ControllerGroup.html#getProperty(java.lang.String)">getProperty</a>, <a href="../controlP5/ControllerGroup.html#getProperty(java.lang.String, java.lang.String)">getProperty</a>, <a href="../controlP5/ControllerGroup.html#getTab()">getTab</a>, <a href="../controlP5/ControllerGroup.html#getWidth()">getWidth</a>, <a href="../controlP5/ControllerGroup.html#getWindow()">getWindow</a>, <a href="../controlP5/ControllerGroup.html#hide()">hide</a>, <a href="../controlP5/ControllerGroup.html#hideArrow()">hideArrow</a>, <a href="../controlP5/ControllerGroup.html#hideBar()">hideBar</a>, <a href="../controlP5/ControllerGroup.html#id()">id</a>, <a href="../controlP5/ControllerGroup.html#init()">init</a>, <a href="../controlP5/ControllerGroup.html#isBarVisible()">isBarVisible</a>, <a href="../controlP5/ControllerGroup.html#isCollapse()">isCollapse</a>, <a href="../controlP5/ControllerGroup.html#isMouseOver()">isMouseOver</a>, <a href="../controlP5/ControllerGroup.html#isMoveable()">isMoveable</a>, <a href="../controlP5/ControllerGroup.html#isOpen()">isOpen</a>, <a href="../controlP5/ControllerGroup.html#isUpdate()">isUpdate</a>, <a href="../controlP5/ControllerGroup.html#isVisible()">isVisible</a>, <a href="../controlP5/ControllerGroup.html#keyEvent(processing.event.KeyEvent)">keyEvent</a>, <a href="../controlP5/ControllerGroup.html#listenerSize()">listenerSize</a>, <a href="../controlP5/ControllerGroup.html#moveTo(controlP5.ControllerGroup)">moveTo</a>, <a href="../controlP5/ControllerGroup.html#moveTo(controlP5.ControllerGroup, controlP5.Tab, controlP5.ControlWindow)">moveTo</a>, <a href="../controlP5/ControllerGroup.html#moveTo(c
|
||
|
</ul>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<h3>Methods inherited from class java.lang.Object</h3>
|
||
|
<code>equals, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<div class="details">
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList"><a name="constructor_detail">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<h3>Constructor Detail</h3>
|
||
|
<a name="Textarea(controlP5.ControlP5, java.lang.String)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>Textarea</h4>
|
||
|
<pre>public Textarea(<a href="../controlP5/ControlP5.html" title="class in controlP5">ControlP5</a> theControlP5,
|
||
|
java.lang.String theName)</pre>
|
||
|
<div class="block">Convenience constructor to extend Textarea.</div>
|
||
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theControlP5</code> - </dd><dd><code>theName</code> - </dd><script type="text/javascript">
|
||
|
<!--
|
||
|
document.getElementsByTagName('html')[0].className = 'isjs';function toggle(dt) { var display, dd=dt; do{ dd = dd.nextSibling } while(dd.tagName!='DD'); toOpen =!dd.style.display;dd.style.display = toOpen? 'block':''; dt.getElementsByTagName('span')[0].innerHTML = toOpen? '-':'+' ; }
|
||
|
-->
|
||
|
</script>
|
||
|
<div id="test" class="toggleList"><dl><dt onclick="toggle(this);"><span>+</span>Example</dt><dd><code><pre>/**
|
||
|
* ControlP5 extending Controllers
|
||
|
*
|
||
|
* the following example shows how to extend the Controller class to
|
||
|
* create customizable Controllers. You can either extend the Controller class itself,
|
||
|
* or any class that extends Controller itself like the Slider, Button, DropdownList, etc.
|
||
|
*
|
||
|
* How to:
|
||
|
*
|
||
|
* 1) do a super call to the convenience constructor requiring
|
||
|
* 2 parameter (ControlP5 instance, name)
|
||
|
*
|
||
|
* 2) the Controller class has a set of empty methods that allow you to capture
|
||
|
* inputs from the mouse including
|
||
|
* onEnter(), onLeave(), onPress(), onRelease(), onClick(), onScroll(int), onDrag()
|
||
|
* These you can override and include functionality as needed.
|
||
|
*
|
||
|
* 3) use method getPointer() to return the local (relative)
|
||
|
* xy-coordinates of the controller
|
||
|
*
|
||
|
* 4) after instantiation custom controllers are treated the same
|
||
|
* as default controlP5 controllers.
|
||
|
*
|
||
|
* by Andreas Schlegel, 2012
|
||
|
* www.sojamo.de/libraries/controlp5
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
import controlP5.*;
|
||
|
|
||
|
ControlP5 cp5;
|
||
|
PApplet p;
|
||
|
|
||
|
void setup() {
|
||
|
size(400, 400);
|
||
|
cp5 = new ControlP5(this);
|
||
|
|
||
|
// create 2 groups to show nesting of custom controllers and
|
||
|
//
|
||
|
Group g1 = cp5.addGroup("a").setPosition(0,100).setWidth(180);
|
||
|
Group g2 = cp5.addGroup("b").setPosition(0,10).setWidth(180);
|
||
|
g2.moveTo(g1);
|
||
|
|
||
|
// create 2 custom Controllers from class MyButton
|
||
|
// MyButton extends Controller and inherits all methods accordingly.
|
||
|
new MyButton(cp5, "b1").setPosition(0, 0).setSize(180, 200).moveTo(g2);
|
||
|
new MyButton(cp5, "b2").setPosition(205, 15).setSize(180, 200);
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
void draw() {
|
||
|
background(0);
|
||
|
}
|
||
|
|
||
|
// b1 will be called from Controller b1
|
||
|
public void b1(float theValue) {
|
||
|
println("yay button "+theValue);
|
||
|
}
|
||
|
|
||
|
public void controlEvent(ControlEvent theEvent) {
|
||
|
println("controlEvent : "+theEvent);
|
||
|
}
|
||
|
|
||
|
|
||
|
// Create a custom Controller, please not that
|
||
|
// MyButton extends Controller<MyButton>, <MyButton>
|
||
|
// is an indicator for the super class about the type of
|
||
|
// custom controller to be created.
|
||
|
|
||
|
class MyButton extends Controller<MyButton> {
|
||
|
|
||
|
int current = 0xffff0000;
|
||
|
|
||
|
float a = 128;
|
||
|
|
||
|
float na;
|
||
|
|
||
|
int y;
|
||
|
|
||
|
// use the convenience constructor of super class Controller
|
||
|
// MyButton will automatically registered and move to the
|
||
|
// default controlP5 tab.
|
||
|
|
||
|
MyButton(ControlP5 cp5, String theName) {
|
||
|
super(cp5, theName);
|
||
|
|
||
|
// replace the default view with a custom view.
|
||
|
setView(new ControllerView() {
|
||
|
public void display(PApplet p, Object b) {
|
||
|
// draw button background
|
||
|
na += (a-na) * 0.1;
|
||
|
p.fill(current,na);
|
||
|
p.rect(0, 0, getWidth(), getHeight());
|
||
|
|
||
|
// draw horizontal line which can be moved on the x-axis
|
||
|
// using the scroll wheel.
|
||
|
p.fill(0,255,0);
|
||
|
p.rect(0,y,width,10);
|
||
|
|
||
|
// draw the custom label
|
||
|
p.fill(128);
|
||
|
translate(0,getHeight()+14);
|
||
|
p.text(getName(),0,0);
|
||
|
p.text(getName(),0,0);
|
||
|
|
||
|
}
|
||
|
}
|
||
|
);
|
||
|
}
|
||
|
|
||
|
// override various input methods for mouse input control
|
||
|
void onEnter() {
|
||
|
cursor(HAND);
|
||
|
println("enter");
|
||
|
a = 255;
|
||
|
}
|
||
|
|
||
|
void onScroll(int n) {
|
||
|
println("scrolling");
|
||
|
y -= n;
|
||
|
y = constrain(y,0,getHeight()-10);
|
||
|
}
|
||
|
|
||
|
void onPress() {
|
||
|
println("press");
|
||
|
current = 0xffffff00;
|
||
|
}
|
||
|
|
||
|
void onClick() {
|
||
|
Pointer p1 = getPointer();
|
||
|
println("clicked at "+p1.x()+", "+p1.y());
|
||
|
current = 0xffffff00;
|
||
|
setValue(y);
|
||
|
}
|
||
|
|
||
|
void onRelease() {
|
||
|
println("release");
|
||
|
current = 0xffffffff;
|
||
|
}
|
||
|
|
||
|
void onMove() {
|
||
|
println("moving "+this+" "+_myControlWindow.getMouseOverList());
|
||
|
}
|
||
|
|
||
|
void onDrag() {
|
||
|
current = 0xff0000ff;
|
||
|
Pointer p1 = getPointer();
|
||
|
float dif = dist(p1.px(),p1.py(),p1.x(),p1.y());
|
||
|
println("dragging at "+p1.x()+", "+p1.y()+" "+dif);
|
||
|
}
|
||
|
|
||
|
void onReleaseOutside() {
|
||
|
onLeave();
|
||
|
}
|
||
|
|
||
|
void onLeave() {
|
||
|
println("leave");
|
||
|
cursor(ARROW);
|
||
|
a = 128;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
</pre></code></dd></dl></div></dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="Textarea(java.lang.String, int, int)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockListLast">
|
||
|
<li class="blockList">
|
||
|
<h4>Textarea</h4>
|
||
|
<pre>public Textarea(java.lang.String theText,
|
||
|
int theX,
|
||
|
int theY)</pre>
|
||
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theText</code> - String</dd><dd><code>theX</code> - int</dd><dd><code>theY</code> - int</dd></dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<!-- ============ METHOD DETAIL ========== -->
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList"><a name="method_detail">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<h3>Method Detail</h3>
|
||
|
<a name="append(java.lang.String)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>append</h4>
|
||
|
<pre>public <a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a> append(java.lang.String theText)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="append(java.lang.String, int)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>append</h4>
|
||
|
<pre>public <a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a> append(java.lang.String theText,
|
||
|
int max)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="clear()">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>clear</h4>
|
||
|
<pre>public <a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a> clear()</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="controlEvent(controlP5.ControlEvent)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>controlEvent</h4>
|
||
|
<pre>public void controlEvent(<a href="../controlP5/ControlEvent.html" title="class in controlP5">ControlEvent</a> theEvent)</pre>
|
||
|
<div class="block"><strong>Description copied from interface: <code><a href="../controlP5/ControlListener.html#controlEvent(controlP5.ControlEvent)">ControlListener</a></code></strong></div>
|
||
|
<div class="block">controlEvent is called by controlP5's ControlBroadcaster to inform available listeners about
|
||
|
value changes. Use the CallbackListener to get informed when actions such as pressed,
|
||
|
release, drag, etc are performed.</div>
|
||
|
<dl>
|
||
|
<dt><strong>Specified by:</strong></dt>
|
||
|
<dd><code><a href="../controlP5/ControlListener.html#controlEvent(controlP5.ControlEvent)">controlEvent</a></code> in interface <code><a href="../controlP5/ControlListener.html" title="interface in controlP5">ControlListener</a></code></dd>
|
||
|
<dt><strong>Overrides:</strong></dt>
|
||
|
<dd><code><a href="../controlP5/ControllerGroup.html#controlEvent(controlP5.ControlEvent)">controlEvent</a></code> in class <code><a href="../controlP5/ControllerGroup.html" title="class in controlP5">ControllerGroup</a><<a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a>></code></dd>
|
||
|
<dt><span class="strong">Parameters:</span></dt><dd><code>theEvent</code> - ControlEvent</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../controlP5/CallbackListener.html" title="interface in controlP5"><code>CallbackListener</code></a>,
|
||
|
<a href="../controlP5/CallbackEvent.html" title="class in controlP5"><code>CallbackEvent</code></a></dd></dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="disableColorBackground()">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>disableColorBackground</h4>
|
||
|
<pre>public <a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a> disableColorBackground()</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="enableColorBackground()">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>enableColorBackground</h4>
|
||
|
<pre>public <a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a> enableColorBackground()</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="getScrollPosition()">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>getScrollPosition</h4>
|
||
|
<pre>public float getScrollPosition()</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="getStringValue()">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>getStringValue</h4>
|
||
|
<pre>public java.lang.String getStringValue()</pre>
|
||
|
<div class="block"><strong>Description copied from class: <code><a href="../controlP5/ControllerGroup.html#getStringValue()">ControllerGroup</a></code></strong></div>
|
||
|
<dl>
|
||
|
<dt><strong>Specified by:</strong></dt>
|
||
|
<dd><code><a href="../controlP5/ControllerInterface.html#getStringValue()">getStringValue</a></code> in interface <code><a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><<a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a>></code></dd>
|
||
|
<dt><strong>Overrides:</strong></dt>
|
||
|
<dd><code><a href="../controlP5/ControllerGroup.html#getStringValue()">getStringValue</a></code> in class <code><a href="../controlP5/ControllerGroup.html" title="class in controlP5">ControllerGroup</a><<a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a>></code></dd>
|
||
|
</dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="getText()">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>getText</h4>
|
||
|
<pre>public java.lang.String getText()</pre>
|
||
|
<div class="block">returns the text content of the textarea.</div>
|
||
|
<dl><dt><span class="strong">Returns:</span></dt><dd>String</dd></dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="getValue()">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>getValue</h4>
|
||
|
<pre>public float getValue()</pre>
|
||
|
<dl>
|
||
|
<dt><strong>Specified by:</strong></dt>
|
||
|
<dd><code><a href="../controlP5/ControllerInterface.html#getValue()">getValue</a></code> in interface <code><a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><<a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a>></code></dd>
|
||
|
<dt><strong>Overrides:</strong></dt>
|
||
|
<dd><code><a href="../controlP5/ControllerGroup.html#getValue()">getValue</a></code> in class <code><a href="../controlP5/ControllerGroup.html" title="class in controlP5">ControllerGroup</a><<a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a>></code></dd>
|
||
|
</dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="getValueLabel()">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>getValueLabel</h4>
|
||
|
<pre>public <a href="../controlP5/Label.html" title="class in controlP5">Label</a> getValueLabel()</pre>
|
||
|
<div class="block">returns the instance of the textarea's label.</div>
|
||
|
<dl>
|
||
|
<dt><strong>Overrides:</strong></dt>
|
||
|
<dd><code><a href="../controlP5/ControllerGroup.html#getValueLabel()">getValueLabel</a></code> in class <code><a href="../controlP5/ControllerGroup.html" title="class in controlP5">ControllerGroup</a><<a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a>></code></dd>
|
||
|
<dt><span class="strong">Returns:</span></dt><dd></dd></dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="hideScrollbar()">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>hideScrollbar</h4>
|
||
|
<pre>public <a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a> hideScrollbar()</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="isScrollable()">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>isScrollable</h4>
|
||
|
<pre>public boolean isScrollable()</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="scroll(float)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>scroll</h4>
|
||
|
<pre>public <a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a> scroll(float theValue)</pre>
|
||
|
<div class="block">scroll the Textarea remotely. values must range from 0 to 1.</div>
|
||
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theValue</code> - </dd></dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="scrolled(int)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>scrolled</h4>
|
||
|
<pre>public void scrolled(int theStep)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="setBorderColor(int)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>setBorderColor</h4>
|
||
|
<pre>public <a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a> setBorderColor(int theColor)</pre>
|
||
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theColor</code> - </dd>
|
||
|
<dt><span class="strong">Returns:</span></dt><dd>Textarea</dd></dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="setColor(int)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>setColor</h4>
|
||
|
<pre>public <a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a> setColor(int theColor)</pre>
|
||
|
<div class="block">set the text color of the textarea.</div>
|
||
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theColor</code> - int</dd></dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="setColorBackground(int)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>setColorBackground</h4>
|
||
|
<pre>public <a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a> setColorBackground(int theColor)</pre>
|
||
|
<div class="block"><strong>Description copied from class: <code><a href="../controlP5/ControllerGroup.html#setColorBackground(int)">ControllerGroup</a></code></strong></div>
|
||
|
<dl>
|
||
|
<dt><strong>Specified by:</strong></dt>
|
||
|
<dd><code><a href="../controlP5/ControllerInterface.html#setColorBackground(int)">setColorBackground</a></code> in interface <code><a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><<a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a>></code></dd>
|
||
|
<dt><strong>Overrides:</strong></dt>
|
||
|
<dd><code><a href="../controlP5/ControllerGroup.html#setColorBackground(int)">setColorBackground</a></code> in class <code><a href="../controlP5/ControllerGroup.html" title="class in controlP5">ControllerGroup</a><<a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a>></code></dd>
|
||
|
</dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="setFont(controlP5.ControlFont)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>setFont</h4>
|
||
|
<pre>public <a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a> setFont(<a href="../controlP5/ControlFont.html" title="class in controlP5">ControlFont</a> theFont)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="setFont(int)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>setFont</h4>
|
||
|
<pre>public <a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a> setFont(int theFontIndex)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="setFont(processing.core.PFont)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>setFont</h4>
|
||
|
<pre>public <a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a> setFont(processing.core.PFont thePFont)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="setHeight(int)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>setHeight</h4>
|
||
|
<pre>public <a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a> setHeight(int theValue)</pre>
|
||
|
<div class="block">set the height of the textarea.</div>
|
||
|
<dl>
|
||
|
<dt><strong>Overrides:</strong></dt>
|
||
|
<dd><code><a href="../controlP5/ControllerGroup.html#setHeight(int)">setHeight</a></code> in class <code><a href="../controlP5/ControllerGroup.html" title="class in controlP5">ControllerGroup</a><<a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a>></code></dd>
|
||
|
<dt><span class="strong">Parameters:</span></dt><dd><code>theValue</code> - int</dd>
|
||
|
<dt><span class="strong">Returns:</span></dt><dd>ControllerGroup</dd></dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="setLineHeight(int)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>setLineHeight</h4>
|
||
|
<pre>public <a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a> setLineHeight(int theLineHeight)</pre>
|
||
|
<div class="block">set the lineheight of the textarea.</div>
|
||
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theLineHeight</code> - int</dd></dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="setScrollActive(int)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>setScrollActive</h4>
|
||
|
<pre>public <a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a> setScrollActive(int theColor)</pre>
|
||
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theColor</code> - </dd>
|
||
|
<dt><span class="strong">Returns:</span></dt><dd>Textarea</dd></dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="setScrollBackground(int)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>setScrollBackground</h4>
|
||
|
<pre>public <a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a> setScrollBackground(int theColor)</pre>
|
||
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theColor</code> - </dd>
|
||
|
<dt><span class="strong">Returns:</span></dt><dd>Textarea</dd></dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="setScrollForeground(int)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>setScrollForeground</h4>
|
||
|
<pre>public <a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a> setScrollForeground(int theColor)</pre>
|
||
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theColor</code> - </dd>
|
||
|
<dt><span class="strong">Returns:</span></dt><dd>Textarea</dd></dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="setSize(int, int)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>setSize</h4>
|
||
|
<pre>public <a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a> setSize(int theWidth,
|
||
|
int theHeight)</pre>
|
||
|
<dl>
|
||
|
<dt><strong>Overrides:</strong></dt>
|
||
|
<dd><code><a href="../controlP5/ControllerGroup.html#setSize(int, int)">setSize</a></code> in class <code><a href="../controlP5/ControllerGroup.html" title="class in controlP5">ControllerGroup</a><<a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a>></code></dd>
|
||
|
</dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="setText(java.lang.String)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>setText</h4>
|
||
|
<pre>public <a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a> setText(java.lang.String theText)</pre>
|
||
|
<div class="block">set the text of the textarea.</div>
|
||
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theText</code> - String</dd></dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="setWidth(int)">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>setWidth</h4>
|
||
|
<pre>public <a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a> setWidth(int theValue)</pre>
|
||
|
<div class="block">set the width of the textarea.</div>
|
||
|
<dl>
|
||
|
<dt><strong>Overrides:</strong></dt>
|
||
|
<dd><code><a href="../controlP5/ControllerGroup.html#setWidth(int)">setWidth</a></code> in class <code><a href="../controlP5/ControllerGroup.html" title="class in controlP5">ControllerGroup</a><<a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a>></code></dd>
|
||
|
<dt><span class="strong">Parameters:</span></dt><dd><code>theValue</code> - int</dd>
|
||
|
<dt><span class="strong">Returns:</span></dt><dd>ControllerGroup</dd></dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="showScrollbar()">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>showScrollbar</h4>
|
||
|
<pre>public <a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a> showScrollbar()</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="stringValue()">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>stringValue</h4>
|
||
|
<pre>@Deprecated
|
||
|
public java.lang.String stringValue()</pre>
|
||
|
<div class="block"><span class="strong">Deprecated.</span> </div>
|
||
|
<dl>
|
||
|
<dt><strong>Specified by:</strong></dt>
|
||
|
<dd><code><a href="../controlP5/ControllerInterface.html#stringValue()">stringValue</a></code> in interface <code><a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><<a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a>></code></dd>
|
||
|
<dt><strong>Overrides:</strong></dt>
|
||
|
<dd><code><a href="../controlP5/ControllerGroup.html#stringValue()">stringValue</a></code> in class <code><a href="../controlP5/ControllerGroup.html" title="class in controlP5">ControllerGroup</a><<a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a>></code></dd>
|
||
|
</dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="value()">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>value</h4>
|
||
|
<pre>@Deprecated
|
||
|
public float value()</pre>
|
||
|
<div class="block"><span class="strong">Deprecated.</span> </div>
|
||
|
<dl>
|
||
|
<dt><strong>Overrides:</strong></dt>
|
||
|
<dd><code><a href="../controlP5/ControllerGroup.html#value()">value</a></code> in class <code><a href="../controlP5/ControllerGroup.html" title="class in controlP5">ControllerGroup</a><<a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a>></code></dd>
|
||
|
</dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="valueLabel()">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockListLast">
|
||
|
<li class="blockList">
|
||
|
<h4>valueLabel</h4>
|
||
|
<pre>@Deprecated
|
||
|
public <a href="../controlP5/Label.html" title="class in controlP5">Label</a> valueLabel()</pre>
|
||
|
<div class="block"><span class="strong">Deprecated.</span> </div>
|
||
|
<dl>
|
||
|
<dt><strong>Overrides:</strong></dt>
|
||
|
<dd><code><a href="../controlP5/ControllerGroup.html#valueLabel()">valueLabel</a></code> in class <code><a href="../controlP5/ControllerGroup.html" title="class in controlP5">ControllerGroup</a><<a href="../controlP5/Textarea.html" title="class in controlP5">Textarea</a>></code></dd>
|
||
|
</dl>
|
||
|
</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/Tab.html" title="class in controlP5"><span class="strong">Prev Class</span></a></li>
|
||
|
<li><a href="../controlP5/Textfield.html" title="class in controlP5"><span class="strong">Next Class</span></a></li>
|
||
|
</ul>
|
||
|
<ul class="navList">
|
||
|
<li><a href="../index.html?controlP5/Textarea.html" target="_top">Frames</a></li>
|
||
|
<li><a href="Textarea.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>Field | </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>Field | </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>
|