Class ALcyCameraLinker
- All Implemented Interfaces:
ILcdPropertyChangeSource
- Direct Known Subclasses:
ALcyLspCameraLinker2D,ALcyLspCameraLinker3D
Implementations of this class should do all that is necessary to set the tracking camera on the view, and/or enable a specialized controller, and be able to revert back to the state before the tracking was enabled. Implementations will typically need to know a list of objects, their models, and a map component.
For workspace support, a ALcyWorkspaceObjectCodec for each ALcyCameraLinker implementation should be created.
An ALcyCameraLinker is created by a ALcyCameraLinkerFactory
- Since:
- 9.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPropertyChangeListener(PropertyChangeListener aListener) Registers the givenPropertyChangeListenerto be notified when this object's properties change.voidaddPropertyChangeListener(String aProperty, PropertyChangeListener aListener) Adds the given listener to the list of listeners, so that it will receive notifications about changes inaProperty.protected voidfirePropertyChange(String aProperty, Object aOldValue, Object aNewValue) Fires the given event to the associated listeners.abstract booleanisLinked()Check if the camera is linked.voidDe-registers the givenPropertyChangeListenerfrom receiving property change events for this object.voidremovePropertyChangeListener(String aProperty, PropertyChangeListener aListener) Removes the given listener for the given property, so that it no longer receives those change events.abstract voidsetLinked(boolean aLinked) Link or unlink the camera.
-
Constructor Details
-
ALcyCameraLinker
public ALcyCameraLinker()Creates a newALcyCameraLinker
-
-
Method Details
-
setLinked
public abstract void setLinked(boolean aLinked) Link or unlink the camera.- Parameters:
aLinked- Whether or not to link the camera.
-
isLinked
public abstract boolean isLinked()Check if the camera is linked.- Returns:
- Whether or not the camera is linked.
-
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:
aListener- The listener to be notified- See Also:
-
addPropertyChangeListener
Adds the given listener to the list of listeners, so that it will receive notifications about changes inaProperty.- Parameters:
aProperty- The property to watch for changes.aListener- The listener to add.
-
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:
aListener- the listener that should no longer be notified of changes of this object's properties- See Also:
-
removePropertyChangeListener
Removes the given listener for the given property, so that it no longer receives those change events.- Parameters:
aProperty- The property to stop listening to.aListener- The listener to remove.
-
firePropertyChange
Fires the given event to the associated listeners.- Parameters:
aProperty- The property that was changed.aOldValue- The old value.aNewValue- The new value.
-