Class TLcyG2DLineStyle

java.lang.Object
com.luciad.lucy.map.TLcyG2DLineStyle
All Implemented Interfaces:
ILcdPropertyChangeSource, ILcdGXYPainterStyle, Serializable

public class TLcyG2DLineStyle extends Object implements ILcdGXYPainterStyle, ILcdPropertyChangeSource
Do not use this class, it's subject to change or disappear without notice. It's only here because it is used as a bean.

Line style that offers color, selection color, line width, selection line width, antialiasing, line end and line join properties.

See Also:
  • Field Details Link icon

    • LINE_JOIN_MITER Link icon

      public static final int LINE_JOIN_MITER
      Joins lines like this
      
         /\
        //\\
       //  \\
       
      See Also:
    • LINE_JOIN_ROUND Link icon

      public static final int LINE_JOIN_ROUND
      Joins lines like if you were using a pen with a round tip.
      See Also:
    • LINE_JOIN_BEVEL Link icon

      public static final int LINE_JOIN_BEVEL
      Joins lines like this
      
         __
        //\\
       //  \\
       
      See Also:
    • LINE_END_BUTT Link icon

      public static final int LINE_END_BUTT
      End lines like if you were using a square pen and make sure the actual line length equals the desired line length.
      See Also:
    • LINE_END_ROUND Link icon

      public static final int LINE_END_ROUND
      End lines like if you were using a pen with a round tip.
      See Also:
    • LINE_END_SQUARE Link icon

      public static final int LINE_END_SQUARE
      End lines like if you were using a pen with a square tip. Stop the center of the pen at the line end, so the actual line length is half the tip size longer, at each side.
      See Also:
  • Constructor Details Link icon

    • TLcyG2DLineStyle Link icon

      public TLcyG2DLineStyle()
    • TLcyG2DLineStyle Link icon

      public TLcyG2DLineStyle(TLcyG2DLineStyle aLineStyle)
  • Method Details Link icon

    • addPropertyChangeListener Link icon

      public void addPropertyChangeListener(PropertyChangeListener aListener)
      Description copied from interface: ILcdPropertyChangeSource

      Registers the given PropertyChangeListener to be notified when this object's properties change.

      In case you need to register a listener which keeps a reference to an object with a shorter life-time than this change source, you can use a ALcdWeakPropertyChangeListener instance as property change listener.

      Specified by:
      addPropertyChangeListener in interface ILcdPropertyChangeSource
      Parameters:
      aListener - The listener to be notified
      See Also:
    • removePropertyChangeListener Link icon

      public void removePropertyChangeListener(PropertyChangeListener aListener)
      Description copied from interface: ILcdPropertyChangeSource

      De-registers the given PropertyChangeListener from receiving property change events for this object.

      If the listener was added more than once, it will be notified one less time after being removed. If the listener is null, or was never added, no exception is thrown and no action is taken.

      Specified by:
      removePropertyChangeListener in interface ILcdPropertyChangeSource
      Parameters:
      aListener - the listener that should no longer be notified of changes of this object's properties
      See Also:
    • getColor Link icon

      public Color getColor()
    • setColor Link icon

      public void setColor(Color aColor)
    • getSelectionColor Link icon

      public Color getSelectionColor()
    • setSelectionColor Link icon

      public void setSelectionColor(Color aSelectionColor)
    • getLineWidth Link icon

      public int getLineWidth()
    • setLineWidth Link icon

      public void setLineWidth(int aLineWidth)
    • getSelectionLineWidth Link icon

      public int getSelectionLineWidth()
    • setSelectionLineWidth Link icon

      public void setSelectionLineWidth(int aSelectionLineWidth)
    • isAntiAliasing Link icon

      public boolean isAntiAliasing()
    • setAntiAliasing Link icon

      public void setAntiAliasing(boolean aAntiAliasing)
    • getLineJoin Link icon

      public int getLineJoin()
    • setLineJoin Link icon

      public void setLineJoin(int aLineJoin)
    • getLineEnd Link icon

      public int getLineEnd()
    • setLineEnd Link icon

      public void setLineEnd(int aLineEnd)
    • setupGraphics Link icon

      public void setupGraphics(Graphics aGraphics, Object aObject, int aMode, ILcdGXYContext aGXYContext)
      Description copied from interface: ILcdGXYPainterStyle
      Set up aGraphics before painting aObject. For example, if (aMode & ILcdGXYPainter.SELECTED) != 0, you may want to call aGraphics.setColor(Color.red) for instance, to see the selected representation of a aObject in red.
      Specified by:
      setupGraphics in interface ILcdGXYPainterStyle
      Parameters:
      aGraphics - the Graphics to set up.
      aObject - the Object to paint.
      aMode - the painting mode to consider (defined in ILcdGXYPainter).
      aGXYContext - the ILcdGXYContext to consider.
      See Also:
    • clone Link icon

      public Object clone()
      Overrides:
      clone in class Object