Class TLspStrokedLineStyle.Glyph

java.lang.Object
com.luciad.view.lightspeed.style.TLspStrokedLineStyle.Glyph
Enclosing class:
TLspStrokedLineStyle

public static class TLspStrokedLineStyle.Glyph extends Object
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 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

      public Color 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 using TLspStrokedLineStyle.Builder.space(int).
      Returns:
      true if this glyph is blank
    • getImage

      public BufferedImage getImage()
      Returns the image contained in this glyph.

      This image should never be modified.

      Returns:
      the image contained in this glyph
    • paintGlyph

      public void paintGlyph(Graphics2D aGraphics, int aX, int aY, double aScaleFactor)
      Paints this glyph on the given graphics.
      Parameters:
      aGraphics - the graphics to paint on
      aX - the X-axis offset in pixels
      aY - the Y-axis offset in pixels
      aScaleFactor - A scale factor with which to paint this Glyph.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object