|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjhplot.shapes.HShape
jhplot.shapes.Text
public class Text
Draw a TEXT in the USER coordinate system. Use HLabel to draw an interactive label.
| Field Summary |
|---|
| Fields inherited from class jhplot.shapes.HShape |
|---|
ARROW, CIRCLE, ELLIPSE, IMAGE, LINE, POLYGON, RECTAN, TEXT |
| Constructor Summary | |
|---|---|
Text(String text,
double X1,
double Y1)
Create a TEXT object |
|
Text(String text,
double X1,
double Y1,
Font f,
Color color)
Create a TEXT object |
|
| Method Summary | |
|---|---|
void |
doc()
Show online documentation. |
Font |
getFont()
Get the font |
double |
getRotation()
Get the rotation angle |
String |
getText()
Get a string with the text |
void |
setFont(Font f)
Set the font |
void |
setRotation(double rotate)
Set the rotation angle |
void |
setText(String text)
Set a string with the text |
String |
toString()
Show this object |
| Methods inherited from class jhplot.shapes.HShape |
|---|
contains, getColor, getFill, getPosition, getPositionCoordinate, getScaledPosition, getSettings, getStroke, getTransparency, getWhoAm, setColor, setDashed, setDotted, setFill, setPosCoord, setPositionCoordinate, setStroke, setTransparency, setWhoAm, updateSettings |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Text(String text,
double X1,
double Y1,
Font f,
Color color)
text - TextX1 - X positionY1 - Y positionf - Fontcolor - Color
public Text(String text,
double X1,
double Y1)
text - TextX1 - X positionY1 - Y position| Method Detail |
|---|
public Font getFont()
public void setRotation(double rotate)
rotate - Rotation anglepublic double getRotation()
public void setFont(Font f)
f - Font to be setpublic String getText()
public void setText(String text)
text - Test to be insertedpublic String toString()
toString in class Objectpublic void doc()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||