public static class TLspStrokedLineStyle.Glyph
extends java.lang.Object
TLspStrokedLineStyle
. A glyph can
contain geometric shapes, images or text. Glyphs can not be instantiated
directly: use TLspStrokedLineStyle.Builder
instead.Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.awt.Color |
getColor()
Returns the color of this glyph.
|
int |
getHeight()
Returns the height of this glyph in pixels.
|
java.awt.image.BufferedImage |
getImage()
Returns the image contained in this glyph.
|
int |
getWidth()
Returns the width of this glyph in pixels.
|
int |
hashCode() |
boolean |
isSpace()
Returns true if this glyph is blank.
|
void |
paintGlyph(java.awt.Graphics2D aGraphics,
int aX,
int aY,
double aScaleFactor)
Paints this glyph on the given graphics.
|
public int getWidth()
public int getHeight()
public java.awt.Color getColor()
public boolean isSpace()
TLspStrokedLineStyle.Builder.space(int)
.public java.awt.image.BufferedImage getImage()
public void paintGlyph(java.awt.Graphics2D aGraphics, int aX, int aY, double aScaleFactor)
aGraphics
- the graphics to paint onaX
- the X-axis offset in pixelsaY
- the Y-axis offset in pixelsaScaleFactor
- A scale factor with which to paint this Glyph.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object