java.lang.Object
java.awt.font.GraphicAttribute
- Direct Known Subclasses:
- ImageGraphicAttribute, ShapeGraphicAttribute
- public abstract class GraphicAttribute
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BOTTOM_ALIGNMENT
public static final int BOTTOM_ALIGNMENT
- See Also:
- Constant Field Values
CENTER_BASELINE
public static final int CENTER_BASELINE
- See Also:
- Constant Field Values
HANGING_BASELINE
public static final int HANGING_BASELINE
- See Also:
- Constant Field Values
ROMAN_BASELINE
public static final int ROMAN_BASELINE
- See Also:
- Constant Field Values
TOP_ALIGNMENT
public static final int TOP_ALIGNMENT
- See Also:
- Constant Field Values
alignment
private int alignment
GraphicAttribute
protected GraphicAttribute(int alignment)
draw
public abstract void draw(java.awt.Graphics2D graphics,
float x,
float y)
getAdvance
public abstract float getAdvance()
getAlignment
public final int getAlignment()
getAscent
public abstract float getAscent()
getBounds
public java.awt.geom.Rectangle2D getBounds()
throws gnu.classpath.NotImplementedException
getDescent
public abstract float getDescent()
getJustificationInfo
public GlyphJustificationInfo getJustificationInfo()
throws gnu.classpath.NotImplementedException