public class TLcdDGNGXYLineStyle extends java.lang.Object implements ILcdGXYPainterStyle, ILcdCloneable
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.Constructor and Description |
---|
TLcdDGNGXYLineStyle() |
TLcdDGNGXYLineStyle(TLcdDGNColorTable aDGNColorTable) |
TLcdDGNGXYLineStyle(TLcdDGNColorTable aDGNColorTable,
TLcdDGNLevelSymbology aDGNLevelSymbology) |
TLcdDGNGXYLineStyle(TLcdDGNColorTable aDGNColorTable,
TLcdDGNLevelSymbology aDGNLevelSymbology,
java.awt.Color aSelectionColor) |
TLcdDGNGXYLineStyle(TLcdDGNColorTable aDGNColorTable,
TLcdDGNLevelSymbology aDGNLevelSymbology,
java.awt.Color aSelectionColor,
boolean aUseAntiAliasing) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Makes
Object.clone() public. |
TLcdDGNColorTable |
getDGNColorTable() |
static ILcdDGNGXYStrokeFactory |
getDGNGXYStrokeFactory() |
TLcdDGNLevelSymbology |
getDGNLevelSymbology() |
java.awt.Color |
getSelectionColor() |
java.awt.Color |
retrieveColor(ILcdDGNShape aDGNShape)
Finds the correct DGN color index and returns the corresponding color from
the DGN color table.
|
int |
retrieveColorIndex(ILcdDGNShape aDGNShape)
Deprecated.
this method does not take extended colors into account, use
retrieveColor(com.luciad.format.dgn.ILcdDGNShape) instead |
int |
retrieveStyle(ILcdDGNShape aDGNShape) |
int |
retrieveWeight(ILcdDGNShape aDGNShape) |
void |
setDGNColorTable(TLcdDGNColorTable aDGNColorTable) |
static void |
setDGNGXYStrokeFactory(ILcdDGNGXYStrokeFactory aStrokeFactory) |
void |
setDGNLevelSymbology(TLcdDGNLevelSymbology aDGNLevelSymbology) |
void |
setSelectionColor(java.awt.Color aSelectionColor) |
void |
setupGraphics(java.awt.Graphics aGraphics,
java.lang.Object aObject,
int aMode,
ILcdGXYContext aGXYContext)
Set up
aGraphics before painting aObject. |
public TLcdDGNGXYLineStyle()
public TLcdDGNGXYLineStyle(TLcdDGNColorTable aDGNColorTable)
public TLcdDGNGXYLineStyle(TLcdDGNColorTable aDGNColorTable, TLcdDGNLevelSymbology aDGNLevelSymbology)
public TLcdDGNGXYLineStyle(TLcdDGNColorTable aDGNColorTable, TLcdDGNLevelSymbology aDGNLevelSymbology, java.awt.Color aSelectionColor)
public TLcdDGNGXYLineStyle(TLcdDGNColorTable aDGNColorTable, TLcdDGNLevelSymbology aDGNLevelSymbology, java.awt.Color aSelectionColor, boolean aUseAntiAliasing)
public void setDGNColorTable(TLcdDGNColorTable aDGNColorTable)
public TLcdDGNColorTable getDGNColorTable()
public void setDGNLevelSymbology(TLcdDGNLevelSymbology aDGNLevelSymbology)
public TLcdDGNLevelSymbology getDGNLevelSymbology()
public void setSelectionColor(java.awt.Color aSelectionColor)
public java.awt.Color getSelectionColor()
public static void setDGNGXYStrokeFactory(ILcdDGNGXYStrokeFactory aStrokeFactory)
public static ILcdDGNGXYStrokeFactory getDGNGXYStrokeFactory()
public void setupGraphics(java.awt.Graphics aGraphics, java.lang.Object aObject, int aMode, ILcdGXYContext aGXYContext)
ILcdGXYPainterStyle
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.setupGraphics
in interface ILcdGXYPainterStyle
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.ILcdGXYPainter
public int retrieveStyle(ILcdDGNShape aDGNShape)
public int retrieveWeight(ILcdDGNShape aDGNShape)
public java.awt.Color retrieveColor(ILcdDGNShape aDGNShape)
retrieveColorIndex(ILcdDGNShape)
public int retrieveColorIndex(ILcdDGNShape aDGNShape)
retrieveColor(com.luciad.format.dgn.ILcdDGNShape)
insteadpublic java.lang.Object clone()
ILcdCloneable
Makes Object.clone()
public.
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 );
}
}
clone
in interface ILcdCloneable
clone
in class java.lang.Object
Object.clone()