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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPropertyChangeListener(PropertyChangeListener aPropertyChangeListener) Registers the givenPropertyChangeListenerto be notified when this object's properties change.clone()MakesObject.clone()public.protected voidfirePropertyChangeEvent(PropertyChangeEvent aPropertyChangeEvent) Notifies all property change listeners that a property has changed.Returns a textual representation of this editor.voidremovePropertyChangeListener(PropertyChangeListener aPropertyChangeListener) De-registers the givenPropertyChangeListenerfrom receiving property change events for this object.voidsetDisplayName(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, waitMethods 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:ILcdCloneableMakes
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:
clonein interfaceILcdCloneable- Overrides:
clonein classObject- See Also:
-
addPropertyChangeListener
Description copied from interface:ILcdPropertyChangeSourceRegisters the given
PropertyChangeListenerto 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
ALcdWeakPropertyChangeListenerinstance as property change listener.- Specified by:
addPropertyChangeListenerin interfaceILcdPropertyChangeSource- Parameters:
aPropertyChangeListener- The listener to be notified- See Also:
-
removePropertyChangeListener
Description copied from interface:ILcdPropertyChangeSourceDe-registers the given
PropertyChangeListenerfrom 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:
removePropertyChangeListenerin 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:ILcdGXYEditorReturns 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:
getDisplayNamein interfaceILcdGXYEditor- Returns:
- a textual representation of this editor.
-