public class TLcdDGNGXYPainterProvider extends Object implements ILcdGXYPainterProvider, ILcdDeepCloneable
ILcdGXYPainterProvider
for DGN objects.Constructor and Description |
---|
TLcdDGNGXYPainterProvider(TLcdDGNColorTable aDGNColorTable,
TLcdDGNLevelSymbology aDGNLevelSymbology,
boolean aUsePaintCache)
Creates a new TLcdDGNGXYPainterProvider with the given level symbology
and color table.
|
TLcdDGNGXYPainterProvider(TLcdDGNColorTable aDGNColorTable,
TLcdDGNLevelSymbology aDGNLevelSymbology,
boolean aUsePaintCache,
boolean aUseAntiAliasing)
Creates a new TLcdDGNGXYPainterProvider with the given level symbology
and color table.
|
TLcdDGNGXYPainterProvider(TLcdDGNColorTable aDGNColorTable,
TLcdDGNLevelSymbology aDGNLevelSymbology,
boolean aUsePaintCache,
ILcdDGNGXYFillMode aFillMode,
ILcdGXYPainterStyle aLineStyle,
ILcdGXYPainterStyle aFillStyle,
ILcdGXYPainterStyle aFontStyle)
Creates a new TLcdDGNGXYPainterProvider with the given level symbology
and color table, and a set of painter styles to specify the drawing style
of the ILcdDGNShape objects.
|
TLcdDGNGXYPainterProvider(TLcdDGNColorTable aDGNColorTable,
TLcdDGNLevelSymbology aDGNLevelSymbology,
boolean aUsePaintCache,
ILcdDGNGXYFillMode aFillMode,
ILcdGXYPainterStyle aLineStyle,
ILcdGXYPainterStyle aFillStyle,
ILcdGXYPainterStyle aFontStyle,
boolean aHandleHoles,
boolean aHandleUnfilledHoles)
Creates a new TLcdDGNGXYPainterProvider with the given level symbology
and color table, and a set of painter styles to specify the drawing style
of the ILcdDGNShape objects.
|
TLcdDGNGXYPainterProvider(TLcdDGNModelDescriptor aDGNModelDescriptor,
boolean aUsePaintCache)
Creates a new TLcdDGNGXYPainterProvider based on the given
TLcdDGNModelDescriptor.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Redefines
Object.clone to make it public. |
Object |
clone(Map aObjectDictionary)
Returns a deep clone of this Object.
|
ILcdGXYPainter |
getGXYPainter(Object aObject)
Finds an
ILcdGXYPainter that can be used to paint or locate the object passed. |
public TLcdDGNGXYPainterProvider(TLcdDGNModelDescriptor aDGNModelDescriptor, boolean aUsePaintCache)
aDGNModelDescriptor
- the TLcdDGNModelDescriptor that contains information
like color table and level symbology to be used
by the painters.aUsePaintCache
- specifies whether the painters should cache transformed
coordinates.public TLcdDGNGXYPainterProvider(TLcdDGNColorTable aDGNColorTable, TLcdDGNLevelSymbology aDGNLevelSymbology, boolean aUsePaintCache)
aDGNColorTable
- the TLcdDGNColorTable that the painters will use for
painting.aDGNLevelSymbology
- the TLcdDGNLevelSymbology that the painters will
use for painting. If it is null
, no
level symbology will be used.aUsePaintCache
- specifies whether the painters should cache transformed
coordinates.public TLcdDGNGXYPainterProvider(TLcdDGNColorTable aDGNColorTable, TLcdDGNLevelSymbology aDGNLevelSymbology, boolean aUsePaintCache, boolean aUseAntiAliasing)
aDGNColorTable
- the TLcdDGNColorTable that the painters will use for
painting.aDGNLevelSymbology
- the TLcdDGNLevelSymbology that the painters will
use for painting. If it is null
, no
level symbology will be used.aUsePaintCache
- specifies whether the painters should cache transformedaUseAntiAliasing
- specifies whether to enable anti-aliasingpublic TLcdDGNGXYPainterProvider(TLcdDGNColorTable aDGNColorTable, TLcdDGNLevelSymbology aDGNLevelSymbology, boolean aUsePaintCache, ILcdDGNGXYFillMode aFillMode, ILcdGXYPainterStyle aLineStyle, ILcdGXYPainterStyle aFillStyle, ILcdGXYPainterStyle aFontStyle)
aDGNColorTable
- the TLcdDGNColorTable that the painters will use for
painting.aDGNLevelSymbology
- the TLcdDGNLevelSymbology that the painters will
use for painting. If it is null
, no
level symbology will be used.aUsePaintCache
- specifies whether the painters should cache transformed
coordinates.aLineStyle
- the ILcdGXYPainterStyle that the painters will use
for painting lines.aFillStyle
- the ILcdGXYPainterStyle that the painters will use
for filling areas.aFontStyle
- the ILcdGXYPainterStyle that the painters will use
for painting text.public TLcdDGNGXYPainterProvider(TLcdDGNColorTable aDGNColorTable, TLcdDGNLevelSymbology aDGNLevelSymbology, boolean aUsePaintCache, ILcdDGNGXYFillMode aFillMode, ILcdGXYPainterStyle aLineStyle, ILcdGXYPainterStyle aFillStyle, ILcdGXYPainterStyle aFontStyle, boolean aHandleHoles, boolean aHandleUnfilledHoles)
aDGNColorTable
- the TLcdDGNColorTable that the painters will use for
painting.aDGNLevelSymbology
- the TLcdDGNLevelSymbology that the painters will
use for painting. If it is null
, no
level symbology will be used.aUsePaintCache
- specifies whether the painters should cache transformed
coordinates.aLineStyle
- the ILcdGXYPainterStyle that the painters will use
for painting lines.aFillStyle
- the ILcdGXYPainterStyle that the painters will use
for filling areas.aFontStyle
- the ILcdGXYPainterStyle that the painters will use
for painting text.aHandleHoles
- specifies whether holes should be painted.aHandleUnfilledHoles
- specifies whether holes should be painted,
even if they are not marked as filled. This may be
useful in combination with custom painter styles.TLcdDGNCellGXYPainter
public ILcdGXYPainter getGXYPainter(Object aObject)
ILcdGXYPainterProvider
ILcdGXYPainter
that can be used to paint or locate the object passed.
The painter provider is responsible for setting the object to the painter before returning the painter. An implementation should therefore have the following structure:
public ILcdGXYPainter getGXYPainter(Object aObject) {
ILcdGXYPainter painter = ... // find the painter for the object
if (painter != null) {
painter.setObject(aObject);
}
return painter;
}
getGXYPainter
in interface ILcdGXYPainterProvider
aObject
- the object to find a painter forpublic Object clone()
ILcdGXYPainterProvider
Object.clone
to make it public.clone
in interface ILcdCloneable
clone
in interface ILcdGXYPainterProvider
clone
in class Object
Object.clone()
public Object clone(Map aObjectDictionary)
ILcdDeepCloneable
java.util.Map
, using reference-equality instead of object-equality when
comparing keys (such as the java.util.IdentityHashMap
). It contains as keys the objects in the original
object graph that have already been cloned, and as values their corresponding clone.
The Object returned by this method should fulfill the following conditions, as specified in
the general Object.clone()
contract:
this.clone(aObjectDictionary) != this
this.clone(aObjectDictionary).getClass() == this.getClass()
this.clone(aObjectDictionary).equals(this)
clone
method is called,
this method shall return that clone:
aObjectDictionary.get(this) == null || aObjectDictionary.get(this) == this.clone(aObjectDictionary)
clone method has completed:
this.clone(aObjectDictionary) == aObjectDictionary.get(this)
clone
in interface ILcdDeepCloneable
aObjectDictionary
- the Object dictionary that keeps track of the objects for which a clone has already been made,
and their corresponding clone Object.