Package com.luciad.format.dgn
Class TLcdDGNDisplayInfo
java.lang.Object
com.luciad.format.dgn.TLcdDGNDisplayInfo
- All Implemented Interfaces:
Serializable
,Cloneable
This class represents the display information of the elements present in
DGN files.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier for CONSTRUCTION element class.static final int
Identifier for CONSTRUCTION_RULE element class.static final int
Identifier for DIMENSION element class.static final int
Identifier for LINEAR_PATTERN element class.static final int
Identifier for PATTERN element class.static final int
Identifier for PRIMARY element class.static final int
Identifier for PRIMARY_RULE element class.static final int
Identifier for DASH_DOUBLE_DOT style.static final int
Identifier for DOT style.static final int
Identifier for DOT_DASH style.static final int
Identifier for LONG_DASH style.static final int
Identifier for LONG_SHORT_DASH style.static final int
Identifier for MEDIUM_DASH style.static final int
Identifier for SHORT_DASH style.static final int
Identifier for SOLID style. -
Constructor Summary
ConstructorDescriptionTLcdDGNDisplayInfo
(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
(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
(int aLevelID, int aGroupNumber, int aElementProperties, int aElementSymbology) Creates a new TLcdDGNDisplayInfo with the given properties.TLcdDGNDisplayInfo
(int aLevelID, int aGroupNumber, int aElementProperties, int aElementSymbology, int aFillColor, ILcdDGNAttributes aDGNAttributes) Creates a new TLcdDGNDisplayInfo with the given properties. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
getColor()
Deprecated.getColor
(TLcdDGNColorTable aColorTable) Returns the line color that should be used to draw this element.int
int
Returns the element id of this element in the DGN file.int
Returns the properties of the element.int
Returns the symbology code of the element.int
Deprecated.UsegetFillColor(TLcdDGNColorTable)
instead.getFillColor
(TLcdDGNColorTable aColorTable) Returns the fill color that should be used to draw this element.getFont()
Returns the font used by elements using this display infoint
Returns the group number of the element.int
getLevel()
Returns the level number of the element.int
Returns the level ID of the element.int
Deprecated.UsegetLevelID()
orgetLevel()
.long
Returns the priority, or relative ordering, of elements associated with this display info.int
getStyle()
int
boolean
int
hashCode()
boolean
Returns true if the color of this element should be taken from the corresponding level.boolean
boolean
isFilled()
boolean
isHole()
boolean
boolean
isLocked()
boolean
boolean
isNew()
boolean
boolean
boolean
boolean
isPlanar()
boolean
Returns true if the line style of this element should be taken from the corresponding level.boolean
boolean
Returns true if the line weight of this element should be taken from the corresponding level.void
setDGNAttributes
(ILcdDGNAttributes aDGNAttributes) void
setFillColor
(int aFillColor) void
Sets the font to be used for elements with this display infovoid
setPriority
(long aPriority) Sets the priority of elements using this display info.void
setTrueColors
(Color aLineColor, Color aFillColor) Indicates that the given true colors should be used instead of the color table indices.toString()
-
Field Details
-
STYLE_SOLID
public static final int STYLE_SOLIDIdentifier for SOLID style.- See Also:
-
STYLE_DOT
public static final int STYLE_DOTIdentifier for DOT style.- See Also:
-
STYLE_MEDIUM_DASH
public static final int STYLE_MEDIUM_DASHIdentifier for MEDIUM_DASH style.- See Also:
-
STYLE_LONG_DASH
public static final int STYLE_LONG_DASHIdentifier for LONG_DASH style.- See Also:
-
STYLE_DOT_DASH
public static final int STYLE_DOT_DASHIdentifier for DOT_DASH style.- See Also:
-
STYLE_SHORT_DASH
public static final int STYLE_SHORT_DASHIdentifier for SHORT_DASH style.- See Also:
-
STYLE_DASH_DOUBLE_DOT
public static final int STYLE_DASH_DOUBLE_DOTIdentifier for DASH_DOUBLE_DOT style.- See Also:
-
STYLE_LONG_SHORT_DASH
public static final int STYLE_LONG_SHORT_DASHIdentifier for LONG_SHORT_DASH style.- See Also:
-
CLASS_PRIMARY
public static final int CLASS_PRIMARYIdentifier for PRIMARY element class.- See Also:
-
CLASS_PATTERN
public static final int CLASS_PATTERNIdentifier for PATTERN element class.- See Also:
-
CLASS_CONSTRUCTION
public static final int CLASS_CONSTRUCTIONIdentifier for CONSTRUCTION element class.- See Also:
-
CLASS_DIMENSION
public static final int CLASS_DIMENSIONIdentifier for DIMENSION element class.- See Also:
-
CLASS_PRIMARY_RULE
public static final int CLASS_PRIMARY_RULEIdentifier for PRIMARY_RULE element class.- See Also:
-
CLASS_LINEAR_PATTERN
public static final int CLASS_LINEAR_PATTERNIdentifier for LINEAR_PATTERN element class.- See Also:
-
CLASS_CONSTRUCTION_RULE
public static final int CLASS_CONSTRUCTION_RULEIdentifier 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.UsegetLevelID()
orgetLevel()
.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.UsegetColor(TLcdDGNColorTable)
insteadReturns the color index that should be used to draw this element.- Returns:
- The color index that should be used
-
getColor
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.UsegetFillColor(TLcdDGNColorTable)
instead.Returns the fill color index that should be used to draw this element.- Returns:
- The color index that should be used.
-
getFillColor
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
Returns the font used by elements using this display info- Returns:
- the font, or null if undefined
-
setFont
Sets the font to be used for elements with this display info- Parameters:
aFont
- the font
-
setTrueColors
Indicates that the given true colors should be used instead of the color table indices.- Parameters:
aLineColor
- the line coloraFillColor
- the line color
-
getDGNAttributes
-
setDGNAttributes
-
equals
-
hashCode
public int hashCode() -
toString
-
getColor(TLcdDGNColorTable)
instead