public class TLcdKML22GXYViewFitAction extends ALcdKML22ViewFitAction
An implementation of ALcdKML22ViewFitAction
.
This class can perform view-fit actions on given KML features. (such as placemarks, groundoverlays, folders, etc...).
changeSupport
DEFAULT, LONG_DESCRIPTION, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SHOW_ACTION_NAME, SMALL_ICON, VISIBLE
Constructor and Description |
---|
TLcdKML22GXYViewFitAction()
Creates a camera change action without a view attached.
|
TLcdKML22GXYViewFitAction(ILcdGXYView aView)
Creates a camera change action for a given view.
|
Modifier and Type | Method and Description |
---|---|
void |
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 action
|
getObjectToFit, getView, setObjectToFit, setView
addPropertyChangeListener, firePropertyChange, getDisplayName, getIcon, getLongDescription, getName, getShortDescription, getValue, isEnabled, isTraceOn, putValue, registerInstance, removePropertyChangeListener, setClassTraceOn, setDisplayName, setEnabled, setIcon, setLongDescription, setName, setShortDescription, setTraceOn
public TLcdKML22GXYViewFitAction()
public TLcdKML22GXYViewFitAction(ILcdGXYView aView)
aView
- The view for which this camera change action must function.public boolean canPerformFit(Object aObject, ILcdView aView)
ALcdKML22ViewFitAction
canPerformFit
in class ALcdKML22ViewFitAction
aObject
- An Object
to fit on.aView
- An ILcdView to fit on aObject;public void performFit(Object aObject, ILcdView aView)
ALcdKML22ViewFitAction
performFit
in class ALcdKML22ViewFitAction
aObject
- An Object
to fit on.aView
- An ILcdView to fit on aObject;public void actionPerformed(ActionEvent aActionEvent)
actionPerformed
in interface ActionListener
actionPerformed
in class ALcdKML22ViewFitAction
aActionEvent
- The action event associated with this action. Can be null.