public static class TLspStrokedLineStyle.Glyph extends 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(Object o) |
Color |
getColor()
Returns the color of this glyph.
|
int |
getHeight()
Returns the height of this glyph in pixels.
|
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(Graphics2D aGraphics,
int aX,
int aY,
double aScaleFactor)
Paints this glyph on the given graphics.
|
public int getWidth()
public int getHeight()
public Color getColor()
public boolean isSpace()
TLspStrokedLineStyle.Builder.space(int)
.public BufferedImage getImage()
public void paintGlyph(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.