Class TLspKML22ViewFitAction
java.lang.Object
com.luciad.gui.ALcdAction
com.luciad.format.kml22.view.ALcdKML22ViewFitAction
com.luciad.format.kml22.view.lightspeed.TLspKML22ViewFitAction
- All Implemented Interfaces:
ILcdAction
,ILcdPropertyChangeSource
,ActionListener
,Serializable
,EventListener
A view fit action for KML features in a ILspView
.
This action allows you to fit an ILspView view onto
a KML element. The action takes into consideration the TLcdKML22AbstractView element
of the given object. If the object does not have such an element (or if the ILspView
is 2D), it will fit onto the
bounds of the feature.
- Since:
- 2013.0
- See Also:
-
Field Summary
Fields inherited from class com.luciad.gui.ALcdAction
changeSupport
Fields inherited from interface com.luciad.gui.ILcdAction
DEFAULT, LONG_DESCRIPTION, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SHOW_ACTION_NAME, SMALL_ICON, VISIBLE
-
Constructor Summary
ConstructorDescriptionCreates a camera change action without a view attached.TLspKML22ViewFitAction
(ILspView aView) Creates a camera change action for a given view. -
Method Summary
Modifier and TypeMethodDescriptionvoid
actionPerformed
(ActionEvent aActionEvent) Performs the view-fit action on the object set by ALcdKML22ViewFitAction.setObjectToFit(Object)boolean
canPerformFit
(Object aObject, ILcdView aView) Checks whether this view fit action can perform a fit.void
performFit
(Object aObject, ILcdView aView) Performs the fit actionMethods inherited from class com.luciad.format.kml22.view.ALcdKML22ViewFitAction
getObjectToFit, getView, setObjectToFit, setView
Methods inherited from class com.luciad.gui.ALcdAction
addPropertyChangeListener, firePropertyChange, getDisplayName, getIcon, getLongDescription, getName, getShortDescription, getValue, isEnabled, isTraceOn, putValue, registerInstance, removePropertyChangeListener, setClassTraceOn, setDisplayName, setEnabled, setIcon, setLongDescription, setName, setShortDescription, setTraceOn
-
Constructor Details
-
TLspKML22ViewFitAction
public TLspKML22ViewFitAction()Creates a camera change action without a view attached. To use this action later, a view must be set.- See Also:
-
TLspKML22ViewFitAction
Creates a camera change action for a given view.
By default, the height provider from the view is used.
- Parameters:
aView
- The view for which this camera change action must function.
-
-
Method Details
-
canPerformFit
Description copied from class:ALcdKML22ViewFitAction
Checks whether this view fit action can perform a fit.- Specified by:
canPerformFit
in classALcdKML22ViewFitAction
- Parameters:
aObject
- AnObject
to fit on.aView
- An ILcdView to fit on aObject;- Returns:
- true if a fit action can be performed; false otherwise
-
performFit
Description copied from class:ALcdKML22ViewFitAction
Performs the fit action- Specified by:
performFit
in classALcdKML22ViewFitAction
- Parameters:
aObject
- AnObject
to fit on.aView
- An ILcdView to fit on aObject;
-
actionPerformed
Performs the view-fit action on the object set by ALcdKML22ViewFitAction.setObjectToFit(Object)- Specified by:
actionPerformed
in interfaceActionListener
- Specified by:
actionPerformed
in classALcdKML22ViewFitAction
- Parameters:
aActionEvent
- The action event associated with this action. Can be null.
-