|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjaron.pde.Label
public class Label
The Label
class provides the functionality for displaying a line
of Text in the Processing Development Environment.
Field Summary | |
---|---|
static int |
HORIZONTAL
Text alignment. |
static int |
VERTICAL
Text alignment. |
Constructor Summary | |
---|---|
Label(processing.core.PApplet applet,
java.lang.String text,
int left,
int top)
Creates a new Label object for the Processing Development Environment
(PDE) at a certain position. |
|
Label(processing.core.PApplet applet,
java.lang.String text,
int left,
int top,
int width,
int height)
Creates a new Label object for the Processing Development Environment
(PDE) at a certain position and with a certain width and height. |
Method Summary | |
---|---|
void |
draw()
Draws the label to the screen. |
void |
setColorBackground(int colorBackground)
Sets the label's background color. |
void |
setColorFrame(int colorFrame)
Sets the color of the label's outer frame. |
void |
setColorText(int colorText)
Sets the label's text color. |
void |
setTextOrientation(int textOrientation)
Sets the text orientation. |
void |
setThicknessFrame(int thicknessFrame)
Sets the thickness of the label's outer frame. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int HORIZONTAL
public static final int VERTICAL
Constructor Detail |
---|
public Label(processing.core.PApplet applet, java.lang.String text, int left, int top, int width, int height)
Label
object for the Processing Development Environment
(PDE) at a certain position and with a certain width and height.
applet
- a reference to the PDE applet that provides the drawing environmenttext
- the text to be displayedleft
- the component's position from the lefttop
- the component's position from topheight
- the component's heightwidth
- the component's widthpublic Label(processing.core.PApplet applet, java.lang.String text, int left, int top)
Label
object for the Processing Development Environment
(PDE) at a certain position.
applet
- a reference to the PDE applet that provides the drawing environmenttext
- the text to be displayedleft
- the component's position from the lefttop
- the component's position from topMethod Detail |
---|
public void setColorBackground(int colorBackground)
colorBackground
- the background colorColors
public void setColorFrame(int colorFrame)
colorFrame
- the frame colorColors
public void setColorText(int colorText)
colorText
- the text colorColors
public void setTextOrientation(int textOrientation)
textOrientation
- vertical or horizontal orientationHORIZONTAL
,
VERTICAL
public void setThicknessFrame(int thicknessFrame)
thicknessFrame
- frame thickness in pixelspublic void draw()
draw
method of the Processing Development Environment.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |