ImageGraphicAttribute class is an implementation of
GraphicAttribute which draws images in
a TextLayout.
GraphicAttribute
| Modifier and Type | Field and Description |
|---|---|
| private Image | |
| private float | |
| private float | |
| private float | |
| private float |
| Access | Constructor and Description |
|---|---|
| public | ImageGraphicAttribute(Image
the image, int Image rendered by this
ImageGraphicAttribute.
This object keeps a reference to image.one of the alignments from this
alignment)ImageGraphicAttributeConstructs an |
| public | ImageGraphicAttribute(Image
the image, int Image rendered by this
ImageGraphicAttribute.
This object keeps a reference to image.one of the alignments from this
alignment, float ImageGraphicAttributethe X coordinate of the point within
the originX, float Image that appears at the origin of the
ImageGraphicAttribute in the text line.the Y coordinate of the point within
the originY)Image that appears at the origin of the
ImageGraphicAttribute in the text line.Constructs an |
| Modifier and Type | Method and Description |
|---|---|
| public void | draw(Graphics2D graphics, float x, float y)
Implements abstract java. Renders this |
| public boolean | Returns: true if this
ImageGraphicAttribute equals rhs;
false otherwise.the rhs)Object to compare for equalityOverrides java. Compares this |
| public boolean | Returns: true if this
ImageGraphicAttribute equals rhs;
false otherwise.the rhs)ImageGraphicAttribute to compare for
equalityCompares this |
| public float | Returns: the advance of thisImageGraphicAttribute.Implements abstract java. Returns the advance of this |
| public float | Returns: the ascent of thisImageGraphicAttribute.Implements abstract java. Returns the ascent of this |
| public Rectangle2D | Returns: aRectangle2D that encloses all of the bits
rendered by this ImageGraphicAttribute.Overrides java. Returns a |
| public float | Returns: the descent of thisImageGraphicAttribute.Implements abstract java. Returns the descent of this |
| public int | Returns: a hash code value for this object.Overrides java. Returns a hashcode for this |
| fImage | back to summary |
|---|---|
| private Image fImage | |
| fImageHeight | back to summary |
|---|---|
| private float fImageHeight | |
| fImageWidth | back to summary |
|---|---|
| private float fImageWidth | |
| fOriginX | back to summary |
|---|---|
| private float fOriginX | |
| fOriginY | back to summary |
|---|---|
| private float fOriginY | |
| ImageGraphicAttribute | back to summary |
|---|---|
| public ImageGraphicAttribute(Image image, int alignment) Constructs an
| |
| ImageGraphicAttribute | back to summary |
|---|---|
| public ImageGraphicAttribute(Image image, int alignment, float originX, float originY) Constructs an
| |
| draw | back to summary |
|---|---|
| public void draw(Graphics2D graphics, float x, float y) Implements abstract java. Doc from java. Renders this | |
| equals | back to summary |
|---|---|
| public boolean equals(Object rhs) Overrides java. Compares this
| |
| equals | back to summary |
|---|---|
| public boolean equals(ImageGraphicAttribute rhs) Compares this
| |
| getAdvance | back to summary |
|---|---|
| public float getAdvance() Implements abstract java. Returns the advance of this
| |
| getAscent | back to summary |
|---|---|
| public float getAscent() Implements abstract java. Returns the ascent of this
| |
| getBounds | back to summary |
|---|---|
| public Rectangle2D getBounds() Overrides java. Returns a
| |
| getDescent | back to summary |
|---|---|
| public float getDescent() Implements abstract java. Returns the descent of this
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns a hashcode for this
| |