java.awt.font
public abstract class GraphicAttribute extends Object
Field Summary | |
---|---|
static int | BOTTOM_ALIGNMENT |
static int | CENTER_BASELINE |
static int | HANGING_BASELINE |
static int | ROMAN_BASELINE |
static int | TOP_ALIGNMENT |
Constructor Summary | |
---|---|
protected | GraphicAttribute(int alignment)
Constructor.
|
Method Summary | |
---|---|
abstract void | draw(Graphics2D graphics, float x, float y)
Draws the graphic.
|
abstract float | getAdvance()
Gets the distance from the origin of its graphic to the right side of the
bounds of its graphic.
|
int | getAlignment()
Gets the alignment.
|
abstract float | getAscent()
Gets the positive distance from the origin of its graphic to the top of
bounds.
|
Rectangle2D | getBounds()
Returns a Rectangle2D that encloses the rendered area.
|
abstract float | getDescent()
Gets the distance from the origin of its graphic to the bottom of the bounds.
|
GlyphJustificationInfo | getJustificationInfo()
Returns the justification information for this object.
|
Parameters: alignment - the alignment to use for the graphic
Parameters: graphics - the graphics configuration to use x - the x location y - the y location
Returns: the advance
Returns: the alignment
Returns: the ascent
Returns: the bounds of the rendered area
Returns: the descent
Returns: the justification information