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

    • LINE_JOIN_MITER

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

      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

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

      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

      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

      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

    • TLcyG2DLineStyle

      public TLcyG2DLineStyle()
    • TLcyG2DLineStyle

      public TLcyG2DLineStyle(TLcyG2DLineStyle aLineStyle)
  • Method Details

    • addPropertyChangeListener

      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

      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

      public Color getColor()
    • setColor

      public void setColor(Color aColor)
    • getSelectionColor

      public Color getSelectionColor()
    • setSelectionColor

      public void setSelectionColor(Color aSelectionColor)
    • getLineWidth

      public int getLineWidth()
    • setLineWidth

      public void setLineWidth(int aLineWidth)
    • getSelectionLineWidth

      public int getSelectionLineWidth()
    • setSelectionLineWidth

      public void setSelectionLineWidth(int aSelectionLineWidth)
    • isAntiAliasing

      public boolean isAntiAliasing()
    • setAntiAliasing

      public void setAntiAliasing(boolean aAntiAliasing)
    • getLineJoin

      public int getLineJoin()
    • setLineJoin

      public void setLineJoin(int aLineJoin)
    • getLineEnd

      public int getLineEnd()
    • setLineEnd

      public void setLineEnd(int aLineEnd)
    • setupGraphics

      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

      public Object clone()
      Overrides:
      clone in class Object