|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectcontrolP5.ControllerGroup
controlP5.Textarea
public class Textarea
Constructor Summary | |
---|---|
Textarea(ControlP5 theControlP5,
ControllerGroup theGroup,
java.lang.String theName,
java.lang.String theText,
int theX,
int theY,
int theW,
int theH)
|
|
Textarea(java.lang.String theText,
int theX,
int theY)
|
Method Summary | |
---|---|
void |
addToXMLElement(ControlP5XMLElement theElement)
|
void |
controlEvent(ControlEvent theEvent)
ControlListener is an interface that can be implemented by a custom class. |
void |
disableColorBackground()
|
void |
enableColorBackground()
|
void |
hideScrollbar()
|
boolean |
isScrollbarVisible()
|
void |
scroll(float theValue)
scroll the Textarea remotely. |
void |
setColor(int theColor)
set the text color of the textarea. |
void |
setColorBackground(int theColor)
set the background color of the group. |
void |
setHeight(int theValue)
set the height of the textarea. |
void |
setLineHeight(int theLineHeight)
set the lineheight of the textarea. |
void |
setPosition(float theX,
float theY)
set the position of the textarea. |
void |
setText(java.lang.String theText)
set the text of the textarea. |
void |
setWidth(int theValue)
set the width of the textarea. |
void |
showScrollbar()
|
java.lang.String |
stringValue()
returns the content of the textarea's label. |
java.lang.String |
text()
returns the text content of the textarea . |
float |
value()
!!! experimental, have to check if this spoils anything. |
Label |
valueLabel()
returns the instance of the textarea's label. |
Methods inherited from class controlP5.ControllerGroup |
---|
absolutePosition, add, addCanvas, addDrawable, arrayValue, captionLabel, close, color, continuousUpdateEvents, controller, draw, getAsXML, getColor, getTab, getWindow, hide, id, init, isMoveable, isOpen, isUpdate, isVisible, isXMLsavable, keyEvent, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, name, open, position, remove, remove, remove, removeCanvas, setColorActive, setColorForeground, setColorLabel, setColorValue, setGroup, setGroup, setId, setLabel, setMousePressed, setMoveable, setOpen, setTab, setTab, setTab, setUpdate, setVisible, show, update, updateAbsolutePosition, updateEvents, updateInternalEvents |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Textarea(ControlP5 theControlP5, ControllerGroup theGroup, java.lang.String theName, java.lang.String theText, int theX, int theY, int theW, int theH)
theControlP5
- ControlP5theGroup
- ControllerGrouptheName
- StringtheText
- StringtheX
- inttheY
- inttheW
- inttheH
- intpublic Textarea(java.lang.String theText, int theX, int theY)
theText
- StringtheX
- inttheY
- intMethod Detail |
---|
public void controlEvent(ControlEvent theEvent)
ControlListener
controlEvent
in interface ControlListener
theEvent
- ControlEventpublic void hideScrollbar()
public void showScrollbar()
public boolean isScrollbarVisible()
public void setColorBackground(int theColor)
ControllerGroup
setColorBackground
in interface ControllerInterface
setColorBackground
in class ControllerGroup
theColor
- intpublic void disableColorBackground()
public void enableColorBackground()
public void scroll(float theValue)
theValue
- public void setWidth(int theValue)
theValue
- intpublic void setHeight(int theValue)
theValue
- intpublic void setLineHeight(int theLineHeight)
theLineHeight
- intpublic void setColor(int theColor)
theColor
- intpublic Label valueLabel()
valueLabel
in class ControllerGroup
public void setText(java.lang.String theText)
theText
- Stringpublic void setPosition(float theX, float theY)
setPosition
in interface ControllerInterface
setPosition
in class ControllerGroup
theX
- floattheY
- floatpublic void addToXMLElement(ControlP5XMLElement theElement)
addToXMLElement
in interface ControllerInterface
theElement
- ControlP5XMLElementpublic java.lang.String stringValue()
stringValue
in interface ControllerInterface
stringValue
in class ControllerGroup
public java.lang.String text()
public float value()
ControllerGroup
value
in interface ControllerInterface
value
in class ControllerGroup
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |