public class Text extends HShape
| Constructor and Description |
|---|
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
|
| Modifier and Type | Method and Description |
|---|---|
void |
doc()
Show online documentation.
|
Font |
getFont()
Get the font
|
String |
getText()
Get a string with the text.
|
void |
setFont(Font f)
Set the font for this text.
|
void |
setText(String text)
Set a string with the text
|
String |
toString()
Show this object
|
contains, getColor, getFill, getPosition, getPositionCoordinate, getRotation, getScaledPosition, getSettings, getStroke, getTransparency, getWhoAm, setColor, setDashed, setDotted, setFill, setPosCoord, setPositionCoordinate, setRotation, setStroke, setTransparency, setWhoAm, updateSettingspublic Text(String text, double X1, double Y1, Font f, Color color)
text - TextX1 - X positionY1 - Y positionf - Fontcolor - Colorpublic Text(String text, double X1, double Y1)
text - TextX1 - X positionY1 - Y positionpublic Font getFont()
public void setFont(Font f)
f - Font to be setpublic String getText()
public void setText(String text)
text - Test to be insertedpublic String toString()
public void doc()
DMelt 2.0 © DataMelt by jWork.ORG