public class TLcdDGNDisplayInfo extends Object implements Cloneable, Serializable
Modifier and Type | Field and Description |
---|---|
static int |
CLASS_CONSTRUCTION
Identifier for CONSTRUCTION element class.
|
static int |
CLASS_CONSTRUCTION_RULE
Identifier for CONSTRUCTION_RULE element class.
|
static int |
CLASS_DIMENSION
Identifier for DIMENSION element class.
|
static int |
CLASS_LINEAR_PATTERN
Identifier for LINEAR_PATTERN element class.
|
static int |
CLASS_PATTERN
Identifier for PATTERN element class.
|
static int |
CLASS_PRIMARY
Identifier for PRIMARY element class.
|
static int |
CLASS_PRIMARY_RULE
Identifier for PRIMARY_RULE element class.
|
static int |
STYLE_DASH_DOUBLE_DOT
Identifier for DASH_DOUBLE_DOT style.
|
static int |
STYLE_DOT
Identifier for DOT style.
|
static int |
STYLE_DOT_DASH
Identifier for DOT_DASH style.
|
static int |
STYLE_LONG_DASH
Identifier for LONG_DASH style.
|
static int |
STYLE_LONG_SHORT_DASH
Identifier for LONG_SHORT_DASH style.
|
static int |
STYLE_MEDIUM_DASH
Identifier for MEDIUM_DASH style.
|
static int |
STYLE_SHORT_DASH
Identifier for SHORT_DASH style.
|
static int |
STYLE_SOLID
Identifier for SOLID style.
|
Constructor and Description |
---|
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(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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object aObject) |
int |
getColor()
Deprecated.
Use
getColor(TLcdDGNColorTable) instead |
Color |
getColor(TLcdDGNColorTable aColorTable)
Returns the line color that should be used to draw this element.
|
ILcdDGNAttributes |
getDGNAttributes() |
int |
getElementClass() |
int |
getElementId()
Returns the element id of this element in the DGN file.
|
int |
getElementProperties()
Returns the properties of the element.
|
int |
getElementSymbology()
Returns the symbology code of the element.
|
int |
getFillColor()
Deprecated.
Use
getFillColor(TLcdDGNColorTable) instead. |
Color |
getFillColor(TLcdDGNColorTable aColorTable)
Returns the fill color that should be used to draw this element.
|
String |
getFont()
Returns the font used by elements using this display info
|
int |
getGroupNumber()
Returns the group number of the element.
|
int |
getLevel()
Returns the level number of the element.
|
int |
getLevelID()
Returns the level ID of the element.
|
int |
getLevelIndex()
Deprecated.
Use
getLevelID() or getLevel() . |
long |
getPriority()
Returns the priority, or relative ordering, of elements associated with this display info.
|
int |
getStyle() |
int |
getWeight() |
boolean |
hasAttributes() |
int |
hashCode() |
boolean |
isColorByLevel()
Returns true if the color of this element should be taken from the corresponding level.
|
boolean |
isDisjointLineString() |
boolean |
isFilled() |
boolean |
isHole() |
boolean |
isInfiniteLine() |
boolean |
isLocked() |
boolean |
isModified() |
boolean |
isNew() |
boolean |
isNonSnappable() |
boolean |
isOrphanCellHeader() |
boolean |
isOutlined() |
boolean |
isPlanar() |
boolean |
isStyleByLevel()
Returns true if the line style of this element should be taken from the corresponding level.
|
boolean |
isViewIndependent() |
boolean |
isWeightByLevel()
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 |
setFont(String aFont)
Sets the font to be used for elements with this display info
|
void |
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.
|
String |
toString() |
public static final int STYLE_SOLID
public static final int STYLE_DOT
public static final int STYLE_MEDIUM_DASH
public static final int STYLE_LONG_DASH
public static final int STYLE_DOT_DASH
public static final int STYLE_SHORT_DASH
public static final int STYLE_DASH_DOUBLE_DOT
public static final int STYLE_LONG_SHORT_DASH
public static final int CLASS_PRIMARY
public static final int CLASS_PATTERN
public static final int CLASS_CONSTRUCTION
public static final int CLASS_DIMENSION
public static final int CLASS_PRIMARY_RULE
public static final int CLASS_LINEAR_PATTERN
public static final int CLASS_CONSTRUCTION_RULE
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)
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)
public TLcdDGNDisplayInfo(int aLevelID, int aGroupNumber, int aElementProperties, int aElementSymbology)
public TLcdDGNDisplayInfo(int aLevelID, int aGroupNumber, int aElementProperties, int aElementSymbology, int aFillColor, ILcdDGNAttributes aDGNAttributes)
public long getPriority()
Lower numbers mean higher priority. Elements with high priority should be drawn above elements with lower priority.
public void setPriority(long aPriority)
aPriority
- the prioritypublic int getLevel()
getLevelID()
public int getLevelIndex()
getLevelID()
or getLevel()
.public int getLevelID()
public int getGroupNumber()
public int getElementProperties()
public int getElementSymbology()
public int getElementClass()
public boolean isLocked()
public boolean isNew()
public boolean isModified()
public boolean hasAttributes()
public boolean isViewIndependent()
public boolean isPlanar()
public boolean isNonSnappable()
public boolean isHole()
public boolean isOrphanCellHeader()
public boolean isInfiniteLine()
public boolean isDisjointLineString()
public int getElementId()
public int getColor()
getColor(TLcdDGNColorTable)
insteadpublic Color getColor(TLcdDGNColorTable aColorTable)
aColorTable
- The current color tablepublic int getWeight()
public int getStyle()
public boolean isColorByLevel()
public boolean isWeightByLevel()
public boolean isStyleByLevel()
public boolean isOutlined()
public boolean isFilled()
public int getFillColor()
getFillColor(TLcdDGNColorTable)
instead.public Color getFillColor(TLcdDGNColorTable aColorTable)
aColorTable
- The current color tablepublic void setFillColor(int aFillColor)
public String getFont()
public void setFont(String aFont)
aFont
- the fontpublic void setTrueColors(Color aLineColor, Color aFillColor)
aLineColor
- the line coloraFillColor
- the line colorpublic ILcdDGNAttributes getDGNAttributes()
public void setDGNAttributes(ILcdDGNAttributes aDGNAttributes)