Class TLcdDGNDisplayInfo

java.lang.Object
com.luciad.format.dgn.TLcdDGNDisplayInfo
All Implemented Interfaces:
Serializable, Cloneable

public class TLcdDGNDisplayInfo extends Object implements Cloneable, Serializable
This class represents the display information of the elements present in DGN files.
See Also:
  • Field Details

    • STYLE_SOLID

      public static final int STYLE_SOLID
      Identifier for SOLID style.
      See Also:
    • STYLE_DOT

      public static final int STYLE_DOT
      Identifier for DOT style.
      See Also:
    • STYLE_MEDIUM_DASH

      public static final int STYLE_MEDIUM_DASH
      Identifier for MEDIUM_DASH style.
      See Also:
    • STYLE_LONG_DASH

      public static final int STYLE_LONG_DASH
      Identifier for LONG_DASH style.
      See Also:
    • STYLE_DOT_DASH

      public static final int STYLE_DOT_DASH
      Identifier for DOT_DASH style.
      See Also:
    • STYLE_SHORT_DASH

      public static final int STYLE_SHORT_DASH
      Identifier for SHORT_DASH style.
      See Also:
    • STYLE_DASH_DOUBLE_DOT

      public static final int STYLE_DASH_DOUBLE_DOT
      Identifier for DASH_DOUBLE_DOT style.
      See Also:
    • STYLE_LONG_SHORT_DASH

      public static final int STYLE_LONG_SHORT_DASH
      Identifier for LONG_SHORT_DASH style.
      See Also:
    • CLASS_PRIMARY

      public static final int CLASS_PRIMARY
      Identifier for PRIMARY element class.
      See Also:
    • CLASS_PATTERN

      public static final int CLASS_PATTERN
      Identifier for PATTERN element class.
      See Also:
    • CLASS_CONSTRUCTION

      public static final int CLASS_CONSTRUCTION
      Identifier for CONSTRUCTION element class.
      See Also:
    • CLASS_DIMENSION

      public static final int CLASS_DIMENSION
      Identifier for DIMENSION element class.
      See Also:
    • CLASS_PRIMARY_RULE

      public static final int CLASS_PRIMARY_RULE
      Identifier for PRIMARY_RULE element class.
      See Also:
    • CLASS_LINEAR_PATTERN

      public static final int CLASS_LINEAR_PATTERN
      Identifier for LINEAR_PATTERN element class.
      See Also:
    • CLASS_CONSTRUCTION_RULE

      public static final int CLASS_CONSTRUCTION_RULE
      Identifier for CONSTRUCTION_RULE element class.
      See Also:
  • Constructor Details

    • TLcdDGNDisplayInfo

      public TLcdDGNDisplayInfo(int aLevelID, int aGroupNumber, int aElementClass, boolean aLocked, boolean aNew, boolean aModified, boolean aAttributes, boolean aViewIndependent, boolean aPlanar, boolean aNonSnappable, boolean aHole, int aColor, int aFillColor, int aWeight, int aStyle, ILcdDGNAttributes aDGNAttributes)
      Creates a new TLcdDGNDisplayInfo with the given properties.
    • TLcdDGNDisplayInfo

      public TLcdDGNDisplayInfo(int aLevelID, int aGroupNumber, int aElementClass, boolean aLocked, boolean aNew, boolean aModified, boolean aAttributes, boolean aViewIndependent, boolean aPlanar, boolean aNonSnappable, boolean aHole, int aColor, int aWeight, int aStyle)
      Creates a new TLcdDGNDisplayInfo with the given properties.
    • TLcdDGNDisplayInfo

      public TLcdDGNDisplayInfo(int aLevelID, int aGroupNumber, int aElementProperties, int aElementSymbology)
      Creates a new TLcdDGNDisplayInfo with the given properties.
    • TLcdDGNDisplayInfo

      public TLcdDGNDisplayInfo(int aLevelID, int aGroupNumber, int aElementProperties, int aElementSymbology, int aFillColor, ILcdDGNAttributes aDGNAttributes)
      Creates a new TLcdDGNDisplayInfo with the given properties.
  • Method Details

    • getPriority

      public long getPriority()
      Returns the priority, or relative ordering, of elements associated with this display info.

      Lower numbers mean higher priority. Elements with high priority should be drawn above elements with lower priority.

      Returns:
      the priority
    • setPriority

      public void setPriority(long aPriority)
      Sets the priority of elements using this display info.
      Parameters:
      aPriority - the priority
    • getLevel

      public int getLevel()
      Returns the level number of the element.
      See Also:
    • getLevelIndex

      public int getLevelIndex()
      Deprecated.
      Returns the level number of the element.
    • getLevelID

      public int getLevelID()
      Returns the level ID of the element. For DGN V7 files, the level ID is always equal to the level number.
    • getGroupNumber

      public int getGroupNumber()
      Returns the group number of the element.
    • getElementProperties

      public int getElementProperties()
      Returns the properties of the element.
    • getElementSymbology

      public int getElementSymbology()
      Returns the symbology code of the element.
    • getElementClass

      public int getElementClass()
    • isLocked

      public boolean isLocked()
    • isNew

      public boolean isNew()
    • isModified

      public boolean isModified()
    • hasAttributes

      public boolean hasAttributes()
    • isViewIndependent

      public boolean isViewIndependent()
    • isPlanar

      public boolean isPlanar()
    • isNonSnappable

      public boolean isNonSnappable()
    • isHole

      public boolean isHole()
    • isOrphanCellHeader

      public boolean isOrphanCellHeader()
    • isInfiniteLine

      public boolean isInfiniteLine()
    • isDisjointLineString

      public boolean isDisjointLineString()
    • getElementId

      public int getElementId()
      Returns the element id of this element in the DGN file.
      Returns:
      The element id
    • getColor

      public int getColor()
      Deprecated.
      Returns the color index that should be used to draw this element.
      Returns:
      The color index that should be used
    • getColor

      public Color getColor(TLcdDGNColorTable aColorTable)
      Returns the line color that should be used to draw this element. This call takes into account RGB colors, if specified.
      Parameters:
      aColorTable - The current color table
      Returns:
      The (line) color that should be used.
    • getWeight

      public int getWeight()
    • getStyle

      public int getStyle()
    • isColorByLevel

      public boolean isColorByLevel()
      Returns true if the color of this element should be taken from the corresponding level.
      Returns:
      true if the color of this element is given by the level symbology, false otherwise.
    • isWeightByLevel

      public boolean isWeightByLevel()
      Returns true if the line weight of this element should be taken from the corresponding level.
      Returns:
      true if the line weight of the element is given by the level symbology, false otherwise
    • isStyleByLevel

      public boolean isStyleByLevel()
      Returns true if the line style of this element should be taken from the corresponding level.
      Returns:
      true if the line style of this element is given by the level symbology, false otherwise
    • isOutlined

      public boolean isOutlined()
    • isFilled

      public boolean isFilled()
    • getFillColor

      public int getFillColor()
      Deprecated.
      Returns the fill color index that should be used to draw this element.
      Returns:
      The color index that should be used.
    • getFillColor

      public Color getFillColor(TLcdDGNColorTable aColorTable)
      Returns the fill color that should be used to draw this element. This call takes into account RGB colors, if specified.
      Parameters:
      aColorTable - The current color table
      Returns:
      The (fill) color that should be used.
    • setFillColor

      public void setFillColor(int aFillColor)
    • getFont

      public String getFont()
      Returns the font used by elements using this display info
      Returns:
      the font, or null if undefined
    • setFont

      public void setFont(String aFont)
      Sets the font to be used for elements with this display info
      Parameters:
      aFont - the font
    • setTrueColors

      public void setTrueColors(Color aLineColor, Color aFillColor)
      Indicates that the given true colors should be used instead of the color table indices.
      Parameters:
      aLineColor - the line color
      aFillColor - the line color
    • getDGNAttributes

      public ILcdDGNAttributes getDGNAttributes()
    • setDGNAttributes

      public void setDGNAttributes(ILcdDGNAttributes aDGNAttributes)
    • equals

      public boolean equals(Object aObject)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object