public class TLcdGXYPainterProvider extends Object implements ILcdGXYPainterProvider, ILcdDeepCloneable
registering
painters for specific types of shapes.TLcdGXYShapePainter
.TLcdGXYShapePainter
,
Serialized FormConstructor and Description |
---|
TLcdGXYPainterProvider() |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener aPropertyChangeListener) |
Object |
clone()
Returns a deep clone: the painters which are registered are cloned.
|
Object |
clone(Map aObjectDictionary)
Returns a deep clone of this Object.
|
TLcdGXYPainterProvider |
deepClone()
Deprecated.
use the clone method
|
void |
deregisterAllGXYPainters()
Removes all registered
ILcdGXYPainters . |
ILcdGXYPainter |
getGXYPainter(Object aObject)
Returns the first found
ILcdGXYPainter which has been
registered with a Class that satisfy Class.isInstance(aObject) . |
ILcdGXYPainter[] |
getGXYPainters() |
boolean |
isTraceOn()
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
void |
registerGXYPainterForClass(Class aDataClass,
ILcdGXYPainter aGXYPainter)
Registers an
ILcdGXYPainter to associate to a given Class of Object . |
void |
registerGXYPainterForClassName(String aDataClassName,
ILcdGXYPainter aGXYPainter)
Registers an
ILcdGXYPainter to associate to a given Class name of Object . |
void |
removePropertyChangeListener(PropertyChangeListener aPropertyChangeListener) |
static void |
setClassTraceOn(boolean aClassTraceOn)
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
void |
setTraceOn(boolean aTraceOn)
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
public static void setClassTraceOn(boolean aClassTraceOn)
true
then all log messages are recorded, otherwise only
the informative, warning and error messages are recorded.aClassTraceOn
- if true then all log messages are recorded,
otherwise only the informative, warning and error messages are recorded.public void setTraceOn(boolean aTraceOn)
true
or false
as argument automatically turns
off tracing for all other class instances for which
setTraceOn
has not been called.
If the argument is false
then only the informative, warning
and error log messages are recorded.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.public boolean isTraceOn()
true
if tracing is enabled for this class.public void addPropertyChangeListener(PropertyChangeListener aPropertyChangeListener)
public void removePropertyChangeListener(PropertyChangeListener aPropertyChangeListener)
public ILcdGXYPainter[] getGXYPainters()
ILcdGXYEditor
s.public void registerGXYPainterForClass(Class aDataClass, ILcdGXYPainter aGXYPainter)
ILcdGXYPainter
to associate to a given Class of Object
.public void registerGXYPainterForClassName(String aDataClassName, ILcdGXYPainter aGXYPainter)
ILcdGXYPainter
to associate to a given Class name of Object
.public void deregisterAllGXYPainters()
ILcdGXYPainters
.public ILcdGXYPainter getGXYPainter(Object aObject)
ILcdGXYPainter
which has been
registered with a Class that satisfy Class.isInstance(aObject)
.
If no painter satisfies this condition, null is returned.getGXYPainter
in interface ILcdGXYPainterProvider
aObject
- the object to find a painter forILcdGXYPainter
which has been
registered with a Class that satisfy Class.isInstance(aObject)
.public Object clone()
clone
in interface ILcdCloneable
clone
in interface ILcdGXYPainterProvider
clone
in class Object
ILcdGXYPainter
s are
cloned).Object.clone()
public TLcdGXYPainterProvider deepClone()
ILcdGXYPainter
s are
cloned).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.