org.PingOO.DLAI.lib.graph
Class TextLine.TextState
java.lang.Object
|
+--org.PingOO.DLAI.lib.graph.TextLine.TextState
- protected class TextLine.TextState
- extends java.lang.Object
A structure class used exclusively with the TextLine class.
When the Text changes state (new font, new color, new offset)
then this class holds the information plus the substring
that the state pertains to.
|
Field Summary |
(package private) java.awt.Font |
f
|
(package private) java.lang.StringBuffer |
s
|
(package private) int |
x
|
(package private) int |
y
|
| Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
f
java.awt.Font f
s
java.lang.StringBuffer s
x
int x
y
int y
TextLine.TextState
public TextLine.TextState()
copyAll
public TextLine.TextState copyAll()
copyState
public TextLine.TextState copyState()
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object
isEmpty
public boolean isEmpty()
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)
getMaxAscent
public int getMaxAscent(java.awt.Graphics g)
getMaxDescent
public int getMaxDescent(java.awt.Graphics g)
getLeading
public int getLeading(java.awt.Graphics g)