Package com.luciad.view.gxy
Class TLcdGXYPainterProvider
java.lang.Object
com.luciad.view.gxy.TLcdGXYPainterProvider
- All Implemented Interfaces:
ILcdCloneable,ILcdDeepCloneable,ILcdGXYPainterProvider,Serializable,Cloneable
public class TLcdGXYPainterProvider
extends Object
implements ILcdGXYPainterProvider, ILcdDeepCloneable
A painter provider that allows
By default, the provider is empty. For a default painter (provider) that handles all supported shapes, see
registering painters for specific types of shapes.By default, the provider is empty. For a default painter (provider) that handles all supported shapes, see
TLcdGXYShapePainter.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPropertyChangeListener(PropertyChangeListener aPropertyChangeListener) clone()Returns a deep clone: the painters which are registered are cloned.Returns a deep clone of this Object.Deprecated.use the clone methodvoidRemoves all registeredILcdGXYPainters.getGXYPainter(Object aObject) Returns the first foundILcdGXYPainterwhich has been registered with a Class that satisfyClass.isInstance(aObject).booleanDeprecated.This method has been deprecated.voidregisterGXYPainterForClass(Class aDataClass, ILcdGXYPainter aGXYPainter) Registers anILcdGXYPainterto associate to a given Class ofObject.voidregisterGXYPainterForClassName(String aDataClassName, ILcdGXYPainter aGXYPainter) Registers anILcdGXYPainterto associate to a given Class name ofObject.voidremovePropertyChangeListener(PropertyChangeListener aPropertyChangeListener) static voidsetClassTraceOn(boolean aClassTraceOn) Deprecated.This method has been deprecated.voidsetTraceOn(boolean aTraceOn) Deprecated.This method has been deprecated.
-
Constructor Details
-
TLcdGXYPainterProvider
public TLcdGXYPainterProvider()
-
-
Method Details
-
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.
-
setTraceOn
public void setTraceOn(boolean aTraceOn) Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Enables tracing for this class instance. Calling this method with eithertrueorfalseas argument automatically turns off tracing for all other class instances for whichsetTraceOnhas not been called. If the argument isfalsethen only the informative, warning and error log messages are recorded.- Parameters:
aTraceOn- if true then all log messages are recorded for this instance. If false, then only the informative, warning and error log messages are recorded.
-
isTraceOn
public boolean isTraceOn()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.
-
addPropertyChangeListener
-
removePropertyChangeListener
-
getGXYPainters
- Returns:
- all the Registered
ILcdGXYEditors.
-
registerGXYPainterForClass
Registers anILcdGXYPainterto associate to a given Class ofObject. -
registerGXYPainterForClassName
Registers anILcdGXYPainterto associate to a given Class name ofObject. -
deregisterAllGXYPainters
public void deregisterAllGXYPainters()Removes all registeredILcdGXYPainters. -
getGXYPainter
Returns the first foundILcdGXYPainterwhich has been registered with a Class that satisfyClass.isInstance(aObject). If no painter satisfies this condition, null is returned.- Specified by:
getGXYPainterin interfaceILcdGXYPainterProvider- Parameters:
aObject- the object to find a painter for- Returns:
- the first found
ILcdGXYPainterwhich has been registered with a Class that satisfyClass.isInstance(aObject).
-
clone
Returns a deep clone: the painters which are registered are cloned.- Specified by:
clonein interfaceILcdCloneable- Specified by:
clonein interfaceILcdGXYPainterProvider- Overrides:
clonein classObject- Returns:
- a deep clone (the registered
ILcdGXYPainters are cloned). - See Also:
-
deepClone
Deprecated.use the clone method- Returns:
- a deep clone (the registered
ILcdGXYPainters are cloned).
-
clone
Description copied from interface:ILcdDeepCloneableReturns a deep clone of this Object. An object dictionary is used to keep track of all objects of the original Object graph, for which a clone has already been created. The dictionary should be ajava.util.Map, using reference-equality instead of object-equality when comparing keys (such as thejava.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 generalObject.clone()contract:this.clone(aObjectDictionary) != thisthis.clone(aObjectDictionary).getClass() == this.getClass()this.clone(aObjectDictionary).equals(this)
- If a clone of this Object already exists in the object dictionary before this
clonemethod is called, this method shall return that clone:aObjectDictionary.get(this) == null || aObjectDictionary.get(this) == this.clone(aObjectDictionary) - The object dictionary shall contain the resulting clone, after this
clone method has completed:this.clone(aObjectDictionary) == aObjectDictionary.get(this)
- Specified by:
clonein interfaceILcdDeepCloneable- Parameters:
aObjectDictionary- the Object dictionary that keeps track of the objects for which a clone has already been made, and their corresponding clone Object.- Returns:
- a deep clone of this Object that fulfills the conditions described above.
-