public class TLcdFitGXYLayerInViewClipAction extends ALcdAction implements ILcdAction
ILcdAction
changes the
origin and scale of a given ILcdGXYView
to
either fit to the model bounds set or, in case the bounds set is null to fit to
the combined bounds of all the objects contained in the layer set.
It is similar to TLcdGXYViewFitAction.fitGXYLayer(ILcdGXYLayer, ILcdGXYView)
but allows
fitting on the given model bounds.TLcdGXYViewFitAction
,
Serialized FormchangeSupport
DEFAULT, LONG_DESCRIPTION, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SHOW_ACTION_NAME, SMALL_ICON, VISIBLE
Constructor and Description |
---|
TLcdFitGXYLayerInViewClipAction() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e)
Performs the
ILcdAction . |
static void |
doFit(ILcdGXYLayer aGXYLayer,
ILcdGXYView aGXYView,
ILcdBounds aBounds)
Changes the origin and scale of a given
ILcdGXYView to
either fit to the model bounds set or, in case the bounds set is null to fit to
the combined bounds of all the objects contained in the layer set. |
ILcdBounds |
getBounds()
Gets the model bounds to fit in.
|
ILcdGXYLayer |
getGXYLayer() |
ILcdGXYView |
getGXYView() |
void |
setBounds(ILcdBounds aBounds)
Sets the bounds to fit in.
|
void |
setGXYLayer(ILcdGXYLayer aGXYLayer) |
void |
setGXYView(ILcdGXYView aGXYView) |
addPropertyChangeListener, firePropertyChange, getDisplayName, getIcon, getLongDescription, getName, getShortDescription, getValue, isEnabled, isTraceOn, putValue, registerInstance, removePropertyChangeListener, setClassTraceOn, setDisplayName, setEnabled, setIcon, setLongDescription, setName, setShortDescription, setTraceOn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getValue, isEnabled, putValue, setEnabled
addPropertyChangeListener, removePropertyChangeListener
public void setGXYLayer(ILcdGXYLayer aGXYLayer)
public ILcdGXYLayer getGXYLayer()
public void setGXYView(ILcdGXYView aGXYView)
public ILcdGXYView getGXYView()
public void setBounds(ILcdBounds aBounds)
aBounds
will interpreted
as a 2D bounds (i.e. the depth will not be taken into account) expressed in the model reference
of the layer set to this action.aBounds
- the bounds to fit to, expressed in the model reference
of the layer set to this action..public ILcdBounds getBounds()
public void actionPerformed(ActionEvent e)
ILcdAction
. Calls the static method doFit with
its 3 properties.actionPerformed
in interface ActionListener
public static void doFit(ILcdGXYLayer aGXYLayer, ILcdGXYView aGXYView, ILcdBounds aBounds)
ILcdGXYView
to
either fit to the model bounds set or, in case the bounds set is null to fit to
the combined bounds of all the objects contained in the layer set.
aBounds
is interpreted as a 2D bounds
(i.e. the depth is not taken into account).aGXYLayer
- the layer to fit to, if the bounds passed are null.aGXYView
- the view to change the center point and scale of.aBounds
- the bounds to fit to, expressed in the reference of the layer passed.