Class TLcdMapG2DLineStyle

java.lang.Object
com.luciad.view.map.TLcdMapG2DLineStyle
All Implemented Interfaces:
ILcdCloneable, ILcdGXYPainterStyle, Serializable, Cloneable

public class TLcdMapG2DLineStyle extends Object implements ILcdGXYPainterStyle, ILcdCloneable
An ILcdGXYPainterStyle implementation that paints lines with a given thickness expressed in a given unit.
See Also:
  • Constructor Details

  • Method Details

    • getColor

      public Color getColor()
      Returns the color used to paint a line.
      Returns:
      the color used to paint a line.
      See Also:
    • setColor

      public void setColor(Color aColor)
      Sets the color to paint a line.
      Parameters:
      aColor - the color to paint a line.
      See Also:
    • getSelectionColor

      public Color getSelectionColor()
      Returns the color to paint a line in selected mode.
      Returns:
      the color to paint a line in selected mode.
      See Also:
    • setSelectionColor

      public void setSelectionColor(Color aSelectionColor)
      Sets the color to paint a line in selected mode.
      Parameters:
      aSelectionColor - the color to paint a line in selected mode.
      See Also:
    • getLineWidth

      public double getLineWidth()
      Returns the width of the line expressed in the unit set.
      Returns:
      the width of the line expressed in the unit set.
      See Also:
    • setLineWidth

      public void setLineWidth(double aLineWidth)
      Sets the width of the line expressed in the unit set.
      Parameters:
      aLineWidth - the width of the line expressed in the unit set.
      See Also:
    • getSelectionLineWidth

      public double getSelectionLineWidth()
      Returns the width of the line when painted in selected mode, expressed in the unit set.
      Returns:
      the width of the line when painted in selected mode, expressed in the unit set.
      See Also:
    • setSelectionLineWidth

      public void setSelectionLineWidth(double aSelectionLineWidth)
      Sets the width of the line when painted in selected mode, expressed in the unit set.
      Parameters:
      aSelectionLineWidth - the width of the line when painted in selected mode, expressed in the unit set.
      See Also:
    • isAntiAliasing

      public boolean isAntiAliasing()
      Returns whether to use anti aliasing when painting the line.
      Returns:
      whether to use anti aliasing when painting the line.
      See Also:
    • setAntiAliasing

      public void setAntiAliasing(boolean aAntiAliasing)
      Sets whether to use anti aliasing when painting the line.
      Parameters:
      aAntiAliasing - true to use anti aliasing when painting the line.
      See Also:
    • getLineWidthUnit

      public TLcdDistanceUnit getLineWidthUnit()
      Returns the unit in which the line width is expressed.
      Returns:
      the unit in which the line width is expressed.
      See Also:
    • setLineWidthUnit

      public void setLineWidthUnit(TLcdDistanceUnit aLineWidthUnit)
      Sets the unit in which the line width is expressed.
      Parameters:
      aLineWidthUnit - the unit in which the line width is expressed.
      See Also:
    • 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: