Class TLcdDGNGXYLineStyle

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

public class TLcdDGNGXYLineStyle extends Object implements ILcdGXYPainterStyle, ILcdCloneable
This class implements an ILcdGXYPainterStyle for DGN objects. It sets a selectionColor before painting an Object in ILcdGXYPainter.SELECTED mode, or the color specified by the DGN object otherwise.
See Also:
  • Constructor Details

  • Method Details

    • setDGNColorTable

      public void setDGNColorTable(TLcdDGNColorTable aDGNColorTable)
    • getDGNColorTable

      public TLcdDGNColorTable getDGNColorTable()
    • setDGNLevelSymbology

      public void setDGNLevelSymbology(TLcdDGNLevelSymbology aDGNLevelSymbology)
    • getDGNLevelSymbology

      public TLcdDGNLevelSymbology getDGNLevelSymbology()
    • setSelectionColor

      public void setSelectionColor(Color aSelectionColor)
    • getSelectionColor

      public Color getSelectionColor()
    • setDGNGXYStrokeFactory

      public static void setDGNGXYStrokeFactory(ILcdDGNGXYStrokeFactory aStrokeFactory)
    • getDGNGXYStrokeFactory

      public static ILcdDGNGXYStrokeFactory getDGNGXYStrokeFactory()
    • 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:
    • retrieveStyle

      public int retrieveStyle(ILcdDGNShape aDGNShape)
      Returns:
      the DGN style to be used for drawing the given DGN element.
    • retrieveWeight

      public int retrieveWeight(ILcdDGNShape aDGNShape)
      Returns:
      the DGN weight to be used for drawing the given DGN element.
    • retrieveColor

      public Color retrieveColor(ILcdDGNShape aDGNShape)
      Finds the correct DGN color index and returns the corresponding color from the DGN color table. Implementations may override this method to get a different behavior.
      Returns:
      the Color to be used for filling the given DGN element.
      See Also:
    • retrieveColorIndex

      public int retrieveColorIndex(ILcdDGNShape aDGNShape)
      Deprecated.
      this method does not take extended colors into account, use retrieveColor(com.luciad.format.dgn.ILcdDGNShape) instead
      Returns:
      the DGN color index to be used for drawing the given DGN element.
    • 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: