Package com.luciad.format.kml22.view.gxy
Class TLcdKML22GXYViewFitAction
java.lang.Object
com.luciad.gui.ALcdAction
com.luciad.format.kml22.view.ALcdKML22ViewFitAction
com.luciad.format.kml22.view.gxy.TLcdKML22GXYViewFitAction
- All Implemented Interfaces:
ILcdAction
,ILcdPropertyChangeSource
,ActionListener
,Serializable
,EventListener
An implementation of ALcdKML22ViewFitAction
.
This class can perform view-fit actions on given KML features. (such as placemarks, groundoverlays, folders, etc...).
- Since:
- 10.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.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
-
TLcdKML22GXYViewFitAction
public TLcdKML22GXYViewFitAction()Creates a camera change action without a view attached. To use this action later, a view must be set. -
TLcdKML22GXYViewFitAction
Creates a camera change action for a given view.- 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.
-