Package com.luciad.ais.view.gxy.painter
Class TLcdGXYAISIconProviderPainter
java.lang.Object
com.luciad.view.gxy.ALcdGXYPainter
com.luciad.view.gxy.painter.TLcdGXYIconPainter
com.luciad.ais.view.gxy.painter.TLcdGXYAISIconProviderPainter
- All Implemented Interfaces:
ILcdCloneable
,ILcdPropertyChangeSource
,ILcdGXYEditor
,ILcdGXYEditorProvider
,ILcdGXYPainter
,ILcdGXYPainterProvider
,Serializable
,Cloneable
This extension of
TLcdGXYIconPainter
overrides the standard
approach of always using the same icon. Instead, this class uses three
ILcdObjectIconProvider
objects to retrieve respectively
normal icons, selection icons and snap icons.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.luciad.view.gxy.painter.TLcdGXYIconPainter
TLcdGXYIconPainter.ScalingMode
-
Field Summary
Fields inherited from class com.luciad.view.gxy.ALcdGXYPainter
defaultCreationFillStyle, defaultCreationLineStyle, defaultFillStyle, defaultLineStyle, fWorkBounds
Fields inherited from interface com.luciad.view.gxy.ILcdGXYEditor
CREATING, END_CREATION, RESHAPED, START_CREATION, TRANSLATED
Fields inherited from interface com.luciad.view.gxy.ILcdGXYPainter
BODY, CREATING, DEFAULT, HANDLES, RESHAPING, SELECTED, SNAPS, TRANSLATING
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns anILcdObjectIconProvider
object that should be used to retrieve normal icons.Returns anILcdObjectIconProvider
object that should be used to retrieve selection icons.Returns anILcdObjectIconProvider
object that should be used to retrieve snap icons.static boolean
Deprecated.This method has been deprecated.static void
setClassTraceOn
(boolean aClassTraceOn) Deprecated.This method has been deprecated.void
setIconProvider
(ILcdObjectIconProvider anIconProvider) Sets theILcdObjectIconProvider
for retrieving normal icons.void
Sets the object to be represented by this painter.void
setSelectionIconProvider
(ILcdObjectIconProvider aSelectionIconProvider) Sets theILcdObjectIconProvider
for retrieving selection icons.void
setSnapIconProvider
(ILcdObjectIconProvider aSnapIconProvider) Sets theILcdObjectIconProvider
for retrieving snap icons.Methods inherited from class com.luciad.view.gxy.painter.TLcdGXYIconPainter
acceptSnapTarget, anchorPointSFCT, boundsSFCT, clearImageCache, clearImageCache, clone, edit, firePropertyChangeEvent, getCreationClickCount, getCursor, getGXYEditor, getHaloAlgorithm, getHaloColor, getHaloThickness, getIcon, getIcon, getObject, getPaintCache, getScale, getScalingMode, getSelectionIcon, getSnapIcon, isHaloEnabled, isTouched, isUseImageCache, isUseOrientation, paint, paintSnap, setHaloAlgorithm, setHaloColor, setHaloEnabled, setHaloThickness, setIcon, setModelModelTransformationClass, setPaintCache, setScale, setScalingMode, setSelectionIcon, setSnapIcon, setUseImageCache, setUseOrientation, snapTarget, supportSnap
Methods inherited from class com.luciad.view.gxy.ALcdGXYPainter
addPropertyChangeListener, firePropertyChangeEvent, getDisplayName, getGXYPainter, isTraceOn, removePropertyChangeListener, setDisplayName, setTraceOn
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.view.gxy.ILcdGXYEditor
getDisplayName
Methods inherited from interface com.luciad.view.gxy.ILcdGXYPainter
getDisplayName
Methods inherited from interface com.luciad.util.ILcdPropertyChangeSource
addPropertyChangeListener, removePropertyChangeListener
-
Constructor Details
-
TLcdGXYAISIconProviderPainter
public TLcdGXYAISIconProviderPainter()Default constructor. For the threeILcdObjectIconProvider
objects that are used by this class to retrieve respectively normal icons, selection icons and snap icons, objects of the classTLcdICAODefaultSymbolProvider
will be used (each time with a different color: black for normal icons, red for selection icons and yellow for snap icons).
-
-
Method Details
-
isClassTraceOn
public static boolean isClassTraceOn()Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Returnstrue
if tracing is enabled for this class.- Returns:
- true if tracing is enabled for this class, false otherwise.
-
setClassTraceOn
public static void setClassTraceOn(boolean aClassTraceOn) Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Enables tracing for all instances of this class. If the argument istrue
then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.- Parameters:
aClassTraceOn
- if true then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.
-
setIconProvider
Sets theILcdObjectIconProvider
for retrieving normal icons.- Overrides:
setIconProvider
in classTLcdGXYIconPainter
- Parameters:
anIconProvider
- anILcdObjectIconProvider
- See Also:
-
setSelectionIconProvider
Sets theILcdObjectIconProvider
for retrieving selection icons.- Overrides:
setSelectionIconProvider
in classTLcdGXYIconPainter
- Parameters:
aSelectionIconProvider
- anILcdObjectIconProvider
- See Also:
-
setSnapIconProvider
Sets theILcdObjectIconProvider
for retrieving snap icons.- Parameters:
aSnapIconProvider
- anILcdObjectIconProvider
-
getIconProvider
Returns anILcdObjectIconProvider
object that should be used to retrieve normal icons.- Overrides:
getIconProvider
in classTLcdGXYIconPainter
- Returns:
- an
ILcdObjectIconProvider
object that should be used to retrieve normal icons. - See Also:
-
getSelectionIconProvider
Returns anILcdObjectIconProvider
object that should be used to retrieve selection icons.- Overrides:
getSelectionIconProvider
in classTLcdGXYIconPainter
- Returns:
- an
ILcdObjectIconProvider
object that should be used to retrieve selection icons. - See Also:
-
getSnapIconProvider
Returns anILcdObjectIconProvider
object that should be used to retrieve snap icons.- Returns:
- an
ILcdObjectIconProvider
object that should be used to retrieve snap icons.
-
setObject
Sets the object to be represented by this painter. This method will invoke the threeILcdObjectIconProvider
objects to retrieve respectively an icon, a selection icon and a snap icon, to be used with the object.- Specified by:
setObject
in interfaceILcdGXYEditor
- Specified by:
setObject
in interfaceILcdGXYPainter
- Overrides:
setObject
in classTLcdGXYIconPainter
- Parameters:
obj
- The object to paint and edit.- See Also:
-