API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt.font. ImageGraphicAttribute View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      GraphicAttribute
          ImageGraphicAttribute
Implements
Subclasses
Description
publicfinal class ImageGraphicAttribute
  The ImageGraphicAttribute class is an implementation of GraphicAttribute which draws images in a TextLayout.
See also:    GraphicAttribute
Constructors
public ImageGraphicAttribute (Image image, int alignment)
  Constucts an ImageGraphicAttribute from the specified Image.
public ImageGraphicAttribute (Image image, int alignment, float originX, float originY)
  Constructs an ImageGraphicAttribute from the specified Image.
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 (ImageGraphicAttribute rhs)
  Compares this ImageGraphicAttribute to the specified ImageGraphicAttribute.
public boolean equals (Object rhs)
  Compares this ImageGraphicAttribute to the specified Object.
public float getAdvance () [Specified in GraphicAttribute]
  Returns the advance of this ImageGraphicAttribute.
publicfinal int getAlignment () [Inherited From GraphicAttribute]
  Returns the alignment of this GraphicAttribute.
public float getAscent () [Specified in GraphicAttribute]
  Returns the ascent of this ImageGraphicAttribute.
public Rectangle2D getBounds () [Overrides GraphicAttribute]
  Returns a Rectangle2D that encloses all of the bits rendered by this ImageGraphicAttribute, relative to the rendering position.
public float getDescent () [Specified in GraphicAttribute]
  Returns the descent of this ImageGraphicAttribute.
public GlyphJustificationInfo getJustificationInfo () [Inherited From GraphicAttribute]
  Returns the justification information for this GraphicAttribute.
public Shape getOutline (AffineTransform tx) [Inherited From GraphicAttribute]
  Return a Shape that represents the region that this GraphicAttribute renders.
public int hashCode ()
  Returns a hashcode for this ImageGraphicAttribute.
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 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 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