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, fWorkBoundsFields inherited from interface com.luciad.view.gxy.ILcdGXYEditor
CREATING, END_CREATION, RESHAPED, START_CREATION, TRANSLATEDFields inherited from interface com.luciad.view.gxy.ILcdGXYPainter
BODY, CREATING, DEFAULT, HANDLES, RESHAPING, SELECTED, SNAPS, TRANSLATING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns anILcdObjectIconProviderobject that should be used to retrieve normal icons.Returns anILcdObjectIconProviderobject that should be used to retrieve selection icons.Returns anILcdObjectIconProviderobject that should be used to retrieve snap icons.static booleanDeprecated.This method has been deprecated.static voidsetClassTraceOn(boolean aClassTraceOn) Deprecated.This method has been deprecated.voidsetIconProvider(ILcdObjectIconProvider anIconProvider) Sets theILcdObjectIconProviderfor retrieving normal icons.voidSets the object to be represented by this painter.voidsetSelectionIconProvider(ILcdObjectIconProvider aSelectionIconProvider) Sets theILcdObjectIconProviderfor retrieving selection icons.voidsetSnapIconProvider(ILcdObjectIconProvider aSnapIconProvider) Sets theILcdObjectIconProviderfor 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, supportSnapMethods inherited from class com.luciad.view.gxy.ALcdGXYPainter
addPropertyChangeListener, firePropertyChangeEvent, getDisplayName, getGXYPainter, isTraceOn, removePropertyChangeListener, setDisplayName, setTraceOnMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.luciad.view.gxy.ILcdGXYEditor
getDisplayNameMethods inherited from interface com.luciad.view.gxy.ILcdGXYPainter
getDisplayNameMethods inherited from interface com.luciad.util.ILcdPropertyChangeSource
addPropertyChangeListener, removePropertyChangeListener
-
Constructor Details
-
TLcdGXYAISIconProviderPainter
public TLcdGXYAISIconProviderPainter()Default constructor. For the threeILcdObjectIconProviderobjects that are used by this class to retrieve respectively normal icons, selection icons and snap icons, objects of the classTLcdICAODefaultSymbolProviderwill 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.Returnstrueif 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 istruethen 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 theILcdObjectIconProviderfor retrieving normal icons.- Overrides:
setIconProviderin classTLcdGXYIconPainter- Parameters:
anIconProvider- anILcdObjectIconProvider- See Also:
-
setSelectionIconProvider
Sets theILcdObjectIconProviderfor retrieving selection icons.- Overrides:
setSelectionIconProviderin classTLcdGXYIconPainter- Parameters:
aSelectionIconProvider- anILcdObjectIconProvider- See Also:
-
setSnapIconProvider
Sets theILcdObjectIconProviderfor retrieving snap icons.- Parameters:
aSnapIconProvider- anILcdObjectIconProvider
-
getIconProvider
Returns anILcdObjectIconProviderobject that should be used to retrieve normal icons.- Overrides:
getIconProviderin classTLcdGXYIconPainter- Returns:
- an
ILcdObjectIconProviderobject that should be used to retrieve normal icons. - See Also:
-
getSelectionIconProvider
Returns anILcdObjectIconProviderobject that should be used to retrieve selection icons.- Overrides:
getSelectionIconProviderin classTLcdGXYIconPainter- Returns:
- an
ILcdObjectIconProviderobject that should be used to retrieve selection icons. - See Also:
-
getSnapIconProvider
Returns anILcdObjectIconProviderobject that should be used to retrieve snap icons.- Returns:
- an
ILcdObjectIconProviderobject that should be used to retrieve snap icons.
-
setObject
Sets the object to be represented by this painter. This method will invoke the threeILcdObjectIconProviderobjects to retrieve respectively an icon, a selection icon and a snap icon, to be used with the object.- Specified by:
setObjectin interfaceILcdGXYEditor- Specified by:
setObjectin interfaceILcdGXYPainter- Overrides:
setObjectin classTLcdGXYIconPainter- Parameters:
obj- The object to paint and edit.- See Also:
-