Package com.luciad.view.gxy
Class ALcdGXYEditor
java.lang.Object
com.luciad.view.gxy.ALcdGXYEditor
- All Implemented Interfaces:
ILcdCloneable
,ILcdPropertyChangeSource
,ILcdGXYEditor
,Serializable
,Cloneable
ALcdGXYEditor
is an abstract class that can be used
for implementing the ILcdGXYEditor
interface.- See Also:
-
Field Summary
Fields inherited from interface com.luciad.view.gxy.ILcdGXYEditor
CREATING, END_CREATION, RESHAPED, START_CREATION, TRANSLATED
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPropertyChangeListener
(PropertyChangeListener aPropertyChangeListener) Registers the givenPropertyChangeListener
to be notified when this object's properties change.clone()
MakesObject.clone()
public.protected void
firePropertyChangeEvent
(PropertyChangeEvent aPropertyChangeEvent) Notifies all property change listeners that a property has changed.Returns a textual representation of this editor.void
removePropertyChangeListener
(PropertyChangeListener aPropertyChangeListener) De-registers the givenPropertyChangeListener
from receiving property change events for this object.void
setDisplayName
(String aDisplayName) Sets the display name for this editor.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
acceptSnapTarget, edit, getCreationClickCount, getObject, setObject
-
Constructor Details
-
ALcdGXYEditor
public ALcdGXYEditor()
-
-
Method Details
-
clone
Description copied from interface:ILcdCloneable
Makes
When for example extending fromObject.clone()
public.java.lang.Object
, it can be implemented like this:public Object clone() { try { return super.clone(); } catch ( CloneNotSupportedException e ) { // Cannot happen: extends from Object and implements Cloneable (see also Object.clone) throw new RuntimeException( e ); } }
- Specified by:
clone
in interfaceILcdCloneable
- Overrides:
clone
in classObject
- See Also:
-
addPropertyChangeListener
Description copied from interface:ILcdPropertyChangeSource
Registers the given
PropertyChangeListener
to be notified when this object's properties change.In case you need to register a listener which keeps a reference to an object with a shorter life-time than this change source, you can use a
ALcdWeakPropertyChangeListener
instance as property change listener.- Specified by:
addPropertyChangeListener
in interfaceILcdPropertyChangeSource
- Parameters:
aPropertyChangeListener
- The listener to be notified- See Also:
-
removePropertyChangeListener
Description copied from interface:ILcdPropertyChangeSource
De-registers the given
PropertyChangeListener
from receiving property change events for this object.If the listener was added more than once, it will be notified one less time after being removed. If the listener is
null
, or was never added, no exception is thrown and no action is taken.- Specified by:
removePropertyChangeListener
in interfaceILcdPropertyChangeSource
- Parameters:
aPropertyChangeListener
- the listener that should no longer be notified of changes of this object's properties- See Also:
-
firePropertyChangeEvent
Notifies all property change listeners that a property has changed.- Parameters:
aPropertyChangeEvent
- the event containing the details of the property change.
-
setDisplayName
Sets the display name for this editor.- Parameters:
aDisplayName
- the name to be used as a display for this editor.
-
getDisplayName
Description copied from interface:ILcdGXYEditor
Returns a textual representation of this editor. This can be useful when different editor implementations are available for an object. For example, to edit different parts of an object. Having a textual representation may facilitate choosing between different editor implementations.- Specified by:
getDisplayName
in interfaceILcdGXYEditor
- Returns:
- a textual representation of this editor.
-