Package com.luciad.view.lightspeed.style
Class TLspStrokedLineStyle.Glyph
java.lang.Object
com.luciad.view.lightspeed.style.TLspStrokedLineStyle.Glyph
- Enclosing class:
TLspStrokedLineStyle
Represents a single glyph in a
TLspStrokedLineStyle
. A glyph can
contain geometric shapes, images or text. Glyphs can not be instantiated
directly: use TLspStrokedLineStyle.Builder
instead.- Since:
- 2012.0
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getColor()
Returns the color of this glyph.int
Returns the height of this glyph in pixels.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.
-
Method Details
-
getWidth
public int getWidth()Returns the width of this glyph in pixels.- Returns:
- the width of this glyph in pixels
-
getHeight
public int getHeight()Returns the height of this glyph in pixels.- Returns:
- the height of this glyph in pixels
-
getColor
Returns the color of this glyph.- Returns:
- the color of this glyph
-
isSpace
public boolean isSpace()Returns true if this glyph is blank. Blank (spacing) glyphs can be created usingTLspStrokedLineStyle.Builder.space(int)
.- Returns:
- true if this glyph is blank
-
getImage
Returns the image contained in this glyph. This image should never be modified.- Returns:
- the image contained in this glyph
-
paintGlyph
Paints this glyph on the given graphics.- Parameters:
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.
-
equals
-
hashCode
public int hashCode()
-