All Packages Class Hierarchy This Package Previous Next Index
Class grapher.TextLine
java.lang.Object
|
+----grapher.TextLine
- public class TextLine
- extends java.lang.Object
This class is designed to bundle together all the information required
to draw short Strings
-
ascent
-
-
CENTER
-
Constants
-
color
-
-
descent
-
-
font
-
-
fontname
-
-
fontsize
-
-
fontstyle
-
-
justification
-
-
leading
-
-
LEFT
-
-
lg
-
-
list
-
-
MINIMUM_SIZE
-
-
parse
-
-
RIGHT
-
-
script_fraction
-
Protected Variables
-
sub_offset
-
-
sup_offset
-
-
text
-
-
width
-
-
TextLine()
-
Constructors
-
TextLine(Font, Color, int)
-
-
TextLine(String)
-
-
TextLine(String, Color)
-
-
TextLine(String, Font)
-
-
TextLine(String, Font, Color, int)
-
-
charWidth(Graphics, char)
-
-
copyState()
-
Public Methods
-
copyState(TextLine)
-
-
draw(Graphics, int, int)
-
-
draw(Graphics, int, int, int)
-
-
getAscent(Graphics)
-
-
getColor()
-
-
getDescent(Graphics)
-
-
getFM(Graphics)
-
-
getFont()
-
-
getFontName()
-
-
getFontSize()
-
-
getFontStyle()
-
-
getHeight(Graphics)
-
-
getJustification()
-
-
getLeading(Graphics)
-
-
getScriptFont(Font)
-
-
getText()
-
-
getWidth(Graphics)
-
-
isNull()
-
-
parseText(Graphics)
-
-
rebuildFont()
-
-
setColor(Color)
-
-
setFont(Font)
-
-
setFontName(String)
-
-
setFontSize(int)
-
-
setFontStyle(int)
-
-
setJustification(int)
-
-
setText(String)
-
CENTER
static final int CENTER
- Constants
LEFT
static final int LEFT
RIGHT
static final int RIGHT
MINIMUM_SIZE
static final int MINIMUM_SIZE
script_fraction
protected double script_fraction
- Protected Variables
sup_offset
protected double sup_offset
sub_offset
protected double sub_offset
font
protected java.awt.Font font
color
protected java.awt.Color color
text
protected java.lang.String text
fontname
protected java.lang.String fontname
fontsize
protected int fontsize
fontstyle
protected int fontstyle
justification
protected int justification
width
protected int width
ascent
protected int ascent
descent
protected int descent
leading
protected int leading
parse
protected boolean parse
lg
protected java.awt.Graphics lg
list
java.util.Vector list
TextLine
public TextLine()
- Constructors
TextLine
public TextLine(java.lang.String s)
TextLine
public TextLine(java.lang.String s,
java.awt.Font f)
TextLine
public TextLine(java.lang.String s,
java.awt.Font f,
java.awt.Color c,
int j)
TextLine
public TextLine(java.lang.String s,
java.awt.Color c)
TextLine
public TextLine(java.awt.Font f,
java.awt.Color c,
int j)
copyState
public grapher.TextLine copyState()
- Public Methods
copyState
public void copyState(grapher.TextLine t)
setFont
public void setFont(java.awt.Font f)
setText
public void setText(java.lang.String s)
setColor
public void setColor(java.awt.Color c)
setJustification
public void setJustification(int i)
getFont
public java.awt.Font getFont()
getText
public java.lang.String getText()
getColor
public java.awt.Color getColor()
getJustification
public int getJustification()
getFM
public java.awt.FontMetrics getFM(java.awt.Graphics g)
charWidth
public int charWidth(java.awt.Graphics g,
char ch)
getWidth
public int getWidth(java.awt.Graphics g)
getHeight
public int getHeight(java.awt.Graphics g)
getAscent
public int getAscent(java.awt.Graphics g)
getDescent
public int getDescent(java.awt.Graphics g)
getLeading
public int getLeading(java.awt.Graphics g)
parseText
public void parseText(java.awt.Graphics g)
isNull
public boolean isNull()
draw
public void draw(java.awt.Graphics g,
int x,
int y,
int j)
draw
public void draw(java.awt.Graphics g,
int x,
int y)
getFontName
public java.lang.String getFontName()
getFontStyle
public int getFontStyle()
getFontSize
public int getFontSize()
setFontName
public void setFontName(java.lang.String s)
setFontStyle
public void setFontStyle(int i)
setFontSize
public void setFontSize(int i)
rebuildFont
private void rebuildFont()
getScriptFont
public java.awt.Font getScriptFont(java.awt.Font f)
All Packages Class Hierarchy This Package Previous Next Index