|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdiva.util.java2d.PaintedString
A utility class that paints a string. This is a low-level class which is designed to simplify the construction of drawn graphics. It contains enough font and painting information to be useful in many cases where fonts are needed for labels and so on in graphic diagrams.
| Constructor Summary | |
PaintedString()
Deprecated. Construct an empty label figure. |
|
PaintedString(java.lang.String s)
Deprecated. Construct a label figure displaying the given string, using the default font. |
|
PaintedString(java.lang.String s,
java.awt.Font f)
Deprecated. Construct a label figure displaying the given string in the given font. |
|
PaintedString(java.lang.String s,
java.lang.String face,
int style,
int size)
Deprecated. Construct a label figure displaying the given string in the given face, style, and size. |
|
| Method Summary | |
java.awt.geom.Rectangle2D |
getBounds()
Deprecated. Get the bounds of this string |
java.awt.Paint |
getFillPaint()
Deprecated. Get the fill paint for this label. |
java.awt.Font |
getFont()
Deprecated. Get the font that this label is drawn in. |
java.lang.String |
getFontName()
Deprecated. Get the font name. |
java.awt.Shape |
getShape()
Deprecated. Get the shape of this label figure. |
int |
getSize()
Deprecated. Get the font size. |
java.lang.String |
getString()
Deprecated. Get the string of this label. |
int |
getStyle()
Deprecated. Get the font style. |
void |
paint(java.awt.Graphics2D g)
Deprecated. Paint the label. |
void |
setFillPaint(java.awt.Paint p)
Deprecated. Set the fill paint that this shape is drawn with. |
void |
setFont(java.awt.Font f)
Deprecated. Set the font. |
void |
setFontName(java.lang.String s)
Deprecated. Set the font family by name. |
void |
setSize(int size)
Deprecated. Set the font size. |
void |
setString(java.lang.String s)
Deprecated. Set the string. |
void |
setStyle(int style)
Deprecated. Set the font style. |
void |
setTransform(java.awt.geom.AffineTransform at)
Deprecated. Change the transform of this label. |
void |
transform(java.awt.geom.AffineTransform at)
Deprecated. Transform the label with the given transform. |
void |
translate(double x,
double y)
Deprecated. Translate the label the given distance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PaintedString()
public PaintedString(java.lang.String s)
public PaintedString(java.lang.String s,
java.awt.Font f)
public PaintedString(java.lang.String s,
java.lang.String face,
int style,
int size)
| Method Detail |
public java.awt.geom.Rectangle2D getBounds()
getBounds in interface PaintedObjectpublic java.awt.Font getFont()
public java.awt.Paint getFillPaint()
public java.lang.String getFontName()
public int getStyle()
public int getSize()
public java.awt.Shape getShape()
public java.lang.String getString()
public void paint(java.awt.Graphics2D g)
paint in interface PaintedObjectpublic void setFillPaint(java.awt.Paint p)
public void setFont(java.awt.Font f)
public void setFontName(java.lang.String s)
public void setStyle(int style)
public void setSize(int size)
public void setString(java.lang.String s)
public void setTransform(java.awt.geom.AffineTransform at)
public void transform(java.awt.geom.AffineTransform at)
public void translate(double x,
double y)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||