Drawablepublic class TitleText extends DrawableTextLine
DrawableTextLine.DrawableTextLineLoader| Modifier and Type | Field | Description |
|---|---|---|
static int |
BOTTOM |
|
static int |
CENTER |
|
static int |
CUSTOM |
|
static int |
LEFT |
|
static int |
RIGHT |
|
static int |
TOP |
pixelXYALGEBRAIC, ascent, background, color, descent, font, fontname, fontsize, fontstyle, height, justification, leading, lg, list, maxAscent, maxDescent, parse, SCIENTIFIC, script_fraction, sub_offset, sup_offset, text, width| Constructor | Description |
|---|---|
TitleText(java.lang.String text) |
TitleText draws a TextLine relative to a drawing panel's edge.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
draw(DrawingPanel panel,
java.awt.Graphics g) |
Draws the TextLine offset from the location.
|
void |
setFont(java.awt.Font font) |
Sets the font used to display the text.
|
void |
setLocation(int location) |
Sets the location of the text relative to a display area edge
|
void |
setOffsets(int xoff,
int yoff) |
Sets the x and y offsets.
|
void |
setText(java.lang.String text) |
Sets the text to be displayed.
|
getLoader, getX, getY, setPixelXY, setTheta, setX, setYclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcharWidth, copyState, copyState, drawText, drawText, getAscent, getBackground, getColor, getDescent, getFM, getFont, getFontName, getFontSize, getFontStyle, getHeight, getJustification, getLeading, getMaxAscent, getMaxDescent, getScriptFont, getStringBounds, getText, getWidth, isNull, log10, parseDouble, parseDouble, parseDouble, parseText, setBackground, setColor, setFontName, setFontSize, setFontStyle, setJustificationpublic static final int CENTER
public static final int BOTTOM
public static final int LEFT
public static final int TOP
public static final int RIGHT
public static final int CUSTOM
public TitleText(java.lang.String text)
text - Stringpublic void setOffsets(int xoff,
int yoff)
xoff - doubleyoff - doublepublic void setLocation(int location)
location - intpublic void setFont(java.awt.Font font)
public void setText(java.lang.String text)
public void draw(DrawingPanel panel, java.awt.Graphics g)
draw in interface Drawabledraw in class DrawableTextLinepanel - DrawingPanelg - Graphics