Class TLcdCGMLineGXYPainterStyle

java.lang.Object
com.luciad.format.cgm.gxy.TLcdCGMLineGXYPainterStyle
All Implemented Interfaces:
ILcdCloneable, ILcdGXYPainterStyle, Serializable, Cloneable

public class TLcdCGMLineGXYPainterStyle extends Object implements ILcdGXYPainterStyle, ILcdCloneable
See Also:
  • Constructor Details

    • TLcdCGMLineGXYPainterStyle

      public TLcdCGMLineGXYPainterStyle()
      Constructs a pen painter style with the default selection color (red) for selected objects.
    • TLcdCGMLineGXYPainterStyle

      public TLcdCGMLineGXYPainterStyle(Color aSelectionColor)
      Constructs a pen painter style with the given selection color for selected objects.
      Parameters:
      aSelectionColor - the color to use to paint selected objects.
  • Method Details

    • setSelectionColor

      public void setSelectionColor(Color aSelectionColor)
      Sets the color to paint selected objects in.
      Parameters:
      aSelectionColor - the color for selected objects.
      See Also:
    • getSelectionColor

      public Color getSelectionColor()
      Returns the color used to paint selected objects.
      Returns:
      the color used to paint selected objects.
      See Also:
    • getLineStyle

      public TLcdLineStyle getLineStyle()
      Returns the line style used to paint objects.
      Returns:
      the line style used to paint objects.
    • 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()
      Description copied from interface: ILcdCloneable

      Makes Object.clone() public.

      When for example extending from java.lang.Object, it can be implemented like this:
      
       public Object clone() {
         try {
           return super.clone();
         } catch ( CloneNotSupportedException e ) {
           // Cannot happen: extends from Object and implements Cloneable (see also Object.clone)
           throw new RuntimeException( e );
         }
       }
       
      Specified by:
      clone in interface ILcdCloneable
      Overrides:
      clone in class Object
      See Also: