API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt.font. ShapeGraphicAttribute View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      GraphicAttribute
          ShapeGraphicAttribute
Implements
Subclasses
Description
publicfinal class ShapeGraphicAttribute
  The ShapeGraphicAttribute class is an implementation of GraphicAttribute that draws shapes in a TextLayout.
See also:    GraphicAttribute
Constructors
public ShapeGraphicAttribute (Shape shape, int alignment, boolean stroke)
  Constructs a ShapeGraphicAttribute for the specified Shape.
Methods
Hide/Show inherited methods
public void draw (Graphics2D graphics, float x, float y) [Specified in GraphicAttribute]
Renders this GraphicAttribute at the specified location.
public boolean equals (Object rhs)
  Compares this ShapeGraphicAttribute to the specified Object.
public boolean equals (ShapeGraphicAttribute rhs)
  Compares this ShapeGraphicAttribute to the specified ShapeGraphicAttribute.
public float getAdvance () [Specified in GraphicAttribute]
  Returns the advance of this ShapeGraphicAttribute.
publicfinal int getAlignment () [Inherited From GraphicAttribute]
  Returns the alignment of this GraphicAttribute.
public float getAscent () [Specified in GraphicAttribute]
  Returns the ascent of this ShapeGraphicAttribute.
public Rectangle2D getBounds () [Overrides GraphicAttribute]
  Returns a Rectangle2D that encloses all of the bits drawn by this ShapeGraphicAttribute relative to the rendering position.
public float getDescent () [Specified in GraphicAttribute]
  Returns the descent of this ShapeGraphicAttribute.
public GlyphJustificationInfo getJustificationInfo () [Inherited From GraphicAttribute]
  Returns the justification information for this GraphicAttribute.
public Shape getOutline (AffineTransform tx) [Overrides GraphicAttribute]
  Return a Shape that represents the region that this ShapeGraphicAttribute renders.
public int hashCode ()
  Returns a hashcode for this ShapeGraphicAttribute.
Fields
Hide/Show inherited fields
publicfinalstatic int BOTTOM_ALIGNMENT = "-2" [Inherited From GraphicAttribute]
Aligns bottom of graphic to bottom of line.
publicfinalstatic int CENTER_BASELINE = "1" [Inherited From GraphicAttribute]
Aligns origin of graphic to center baseline of line.
publicfinalstatic boolean FILL = "false"
A key indicating the shape should be filled.
publicfinalstatic int HANGING_BASELINE = "2" [Inherited From GraphicAttribute]
Aligns origin of graphic to hanging baseline of line.
publicfinalstatic int ROMAN_BASELINE = "0" [Inherited From GraphicAttribute]
Aligns origin of graphic to roman baseline of line.
publicfinalstatic boolean STROKE = "true"
A key indicating the shape should be stroked with a 1-pixel wide stroke.
publicfinalstatic int TOP_ALIGNMENT = "-1" [Inherited From GraphicAttribute]
Aligns top of graphic to top of line.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar