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
changeSupportFields inherited from interface com.luciad.gui.ILcdAction
DEFAULT, LONG_DESCRIPTION, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SHOW_ACTION_NAME, SMALL_ICON, VISIBLE -
Constructor Summary
ConstructorsConstructorDescriptionCreates a camera change action without a view attached.Creates a camera change action for a given view. -
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerformed(ActionEvent aActionEvent) Performs the view-fit action on the object set by ALcdKML22ViewFitAction.setObjectToFit(Object)booleancanPerformFit(Object aObject, ILcdView aView) Checks whether this view fit action can perform a fit.voidperformFit(Object aObject, ILcdView aView) Performs the fit actionMethods inherited from class com.luciad.format.kml22.view.ALcdKML22ViewFitAction
getObjectToFit, getView, setObjectToFit, setViewMethods 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:ALcdKML22ViewFitActionChecks whether this view fit action can perform a fit.- Specified by:
canPerformFitin classALcdKML22ViewFitAction- Parameters:
aObject- AnObjectto 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:ALcdKML22ViewFitActionPerforms the fit action- Specified by:
performFitin classALcdKML22ViewFitAction- Parameters:
aObject- AnObjectto 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:
actionPerformedin interfaceActionListener- Specified by:
actionPerformedin classALcdKML22ViewFitAction- Parameters:
aActionEvent- The action event associated with this action. Can be null.
-