API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt.font. GraphicAttribute View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      GraphicAttribute
Implements
Subclasses
Description
publicabstract abstract class GraphicAttribute
  This class is used with the CHAR_REPLACEMENT attribute.
See also:   
Constructors
protected GraphicAttribute (int alignment)
  Constructs a GraphicAttribute.
Methods
Hide/Show inherited methods
publicabstract void draw (Graphics2D graphics, float x, float y)
  Renders this GraphicAttribute at the specified location.
publicabstract float getAdvance ()
  Returns the advance of this GraphicAttribute.
publicfinal int getAlignment ()
  Returns the alignment of this GraphicAttribute.
publicabstract float getAscent ()
  Returns the ascent of this GraphicAttribute.
public Rectangle2D getBounds ()
  Returns a Rectangle2D that encloses all of the bits drawn by this GraphicAttribute relative to the rendering position.
publicabstract float getDescent ()
  Returns the descent of this GraphicAttribute.
public GlyphJustificationInfo getJustificationInfo ()
  Returns the justification information for this GraphicAttribute.
public Shape getOutline (AffineTransform tx)
  Return a Shape that represents the region that this GraphicAttribute renders.
Fields
Hide/Show inherited fields
publicfinalstatic int BOTTOM_ALIGNMENT = "-2"
Aligns bottom of graphic to bottom of line.
publicfinalstatic int CENTER_BASELINE = "1"
Aligns origin of graphic to center baseline of line.
publicfinalstatic int HANGING_BASELINE = "2"
Aligns origin of graphic to hanging baseline of line.
publicfinalstatic int ROMAN_BASELINE = "0"
Aligns origin of graphic to roman baseline of line.
publicfinalstatic int TOP_ALIGNMENT = "-1"
Aligns top of graphic to top of line.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar