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 Link icon

    • STYLE_SOLID Link icon

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    • TLcdDGNDisplayInfo Link icon

      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 Link icon

      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 Link icon

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

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

    • getPriority Link icon

      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 Link icon

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

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

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

      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 Link icon

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

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

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

      public int getElementClass()
    • isLocked Link icon

      public boolean isLocked()
    • isNew Link icon

      public boolean isNew()
    • isModified Link icon

      public boolean isModified()
    • hasAttributes Link icon

      public boolean hasAttributes()
    • isViewIndependent Link icon

      public boolean isViewIndependent()
    • isPlanar Link icon

      public boolean isPlanar()
    • isNonSnappable Link icon

      public boolean isNonSnappable()
    • isHole Link icon

      public boolean isHole()
    • isOrphanCellHeader Link icon

      public boolean isOrphanCellHeader()
    • isInfiniteLine Link icon

      public boolean isInfiniteLine()
    • isDisjointLineString Link icon

      public boolean isDisjointLineString()
    • getElementId Link icon

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

      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 Link icon

      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 Link icon

      public int getWeight()
    • getStyle Link icon

      public int getStyle()
    • isColorByLevel Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      public boolean isOutlined()
    • isFilled Link icon

      public boolean isFilled()
    • getFillColor Link icon

      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 Link icon

      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 Link icon

      public void setFillColor(int aFillColor)
    • getFont Link icon

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

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

      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 Link icon

      public ILcdDGNAttributes getDGNAttributes()
    • setDGNAttributes Link icon

      public void setDGNAttributes(ILcdDGNAttributes aDGNAttributes)
    • equals Link icon

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

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

      public String toString()
      Overrides:
      toString in class Object