public class TLcdVPFPointPainter extends TLcdGXYIconPainter
TLcdGXYIconPainter
and adds functionality for painting VPF domain objects
using GeoSym symbology.
It can paint all ILcdPoint
objects implementing ILcdVPFFACCFeature
using GeoSym. All other point
objects will be painted using a default icon.TLcdGXYIconPainter.ScalingMode
defaultCreationFillStyle, defaultCreationLineStyle, defaultFillStyle, defaultLineStyle, fWorkBounds
BODY, CREATING, DEFAULT, HANDLES, RESHAPING, SELECTED, SNAPS, TRANSLATING
CREATING, END_CREATION, RESHAPED, START_CREATION, TRANSLATED
Constructor and Description |
---|
TLcdVPFPointPainter(String aGeoSymProductId)
Constructs a new
TLcdVPFPointPainter for the given GeoSym product id. |
TLcdVPFPointPainter(TLcdVPFGeoSymProvider aGeoSymProvider)
Constructs a new
TLcdVPFPointPainter , initialized with the given GeoSym provider. |
Modifier and Type | Method and Description |
---|---|
void |
setObject(Object aObject)
Sets the object to paint and edit.
|
acceptSnapTarget, anchorPointSFCT, boundsSFCT, clearImageCache, clearImageCache, clone, edit, firePropertyChangeEvent, getCreationClickCount, getCursor, getGXYEditor, getHaloAlgorithm, getHaloColor, getHaloThickness, getIcon, getIcon, getIconProvider, getObject, getPaintCache, getScale, getScalingMode, getSelectionIcon, getSelectionIconProvider, getSnapIcon, isHaloEnabled, isTouched, isUseImageCache, isUseOrientation, paint, paintSnap, setHaloAlgorithm, setHaloColor, setHaloEnabled, setHaloThickness, setIcon, setIconProvider, setModelModelTransformationClass, setPaintCache, setScale, setScalingMode, setSelectionIcon, setSelectionIconProvider, setSnapIcon, setUseImageCache, setUseOrientation, snapTarget, supportSnap
addPropertyChangeListener, firePropertyChangeEvent, getDisplayName, getGXYPainter, isTraceOn, removePropertyChangeListener, setClassTraceOn, setDisplayName, setTraceOn
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDisplayName
getDisplayName
addPropertyChangeListener, removePropertyChangeListener
public TLcdVPFPointPainter(TLcdVPFGeoSymProvider aGeoSymProvider)
TLcdVPFPointPainter
, initialized with the given GeoSym provider.
The GeoSym provider is used to retrieve point icons from.aGeoSymProvider
- the GeoSym provider to be used for retrieving point icons.public TLcdVPFPointPainter(String aGeoSymProductId)
TLcdVPFPointPainter
for the given GeoSym product id. The corresponding
TLcdVPFGeoSymProvider
will be created and initialized automatically.aGeoSymProductId
- the GeoSym product id for which to create this painter.public void setObject(Object aObject)
TLcdGXYIconPainter
Sets the object to paint and edit. The object should be an instance of or refer to
an instance of ILcdShape
for painting and ILcd2DEditableShape
for editing.
This painter/editor can be used to paint the object without using the edit functionality. This
method shall therefore only check if the object implements ILcdShape
and shall throw
a ClassCastException
if it does not.
When this painter is used as editor with an object that does not implement the interface ILcd2DEditableShape
, the edit
method shall throw the necessary exception.
setObject
in interface ILcdGXYEditor
setObject
in interface ILcdGXYPainter
setObject
in class TLcdGXYIconPainter
aObject
- The object to paint and edit.TLcdGXYIconPainter.getObject()