|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
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(java.lang.String text,
double X1,
double Y1)
Create a TEXT object |
|
Text(java.lang.String text,
double X1,
double Y1,
java.awt.Font f,
java.awt.Color color)
Create a TEXT object |
Method Summary | |
---|---|
void |
doc()
Show online documentation. |
java.awt.Font |
getFont()
Get the font |
double |
getRotation()
Get the rotation angle |
java.lang.String |
getText()
Get a string with the text |
void |
setFont(java.awt.Font f)
Set the font |
void |
setRotation(double rotate)
Set the rotation angle |
void |
setText(java.lang.String text)
Set a string with the text |
java.lang.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(java.lang.String text, double X1, double Y1, java.awt.Font f, java.awt.Color color)
text
- TextX1
- X positionY1
- Y positionf
- Fontcolor
- Colorpublic Text(java.lang.String text, double X1, double Y1)
text
- TextX1
- X positionY1
- Y positionMethod Detail |
---|
public java.awt.Font getFont()
public void setRotation(double rotate)
rotate
- Rotation anglepublic double getRotation()
public void setFont(java.awt.Font f)
f
- Font to be setpublic java.lang.String getText()
public void setText(java.lang.String text)
text
- Test to be insertedpublic java.lang.String toString()
toString
in class java.lang.Object
public void doc()
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |