ilog.cpl.graph.action.toolbar
Class IlpGraphFitToContentsAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by ilog.cpl.graph.action.toolbar.IlpAbstractGraphAction
          extended by ilog.cpl.graph.action.toolbar.IlpGraphFitToContentsAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Direct Known Subclasses:
IlpEquipmentFitToContentsAction, IlpNetworkFitToContentsAction

public abstract class IlpGraphFitToContentsAction
extends IlpAbstractGraphAction

This action sets the zoom factor by executing a "fit to contents" action.

Since:
JTGO 4.0
See Also:
IlpGraphFitToContentsButton, Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
protected IlpGraphFitToContentsAction(IlpViewsView view, String bundle)
          Creates the action.
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 int getBottomMargin()
          Returns the bottom margin height to be used in the "fit to contents" action.
 int getLeftMargin()
          Returns the left margin width to be used in the "fit to contents" action.
 int getRightMargin()
          Returns the right margin width to be used in the "fit to contents" action.
 int getTopMargin()
          Returns the top margin height to be used in the "fit to contents" action.
 void setBottomMargin(int margin)
          Sets the bottom margin height to be used in the "fit to contents" action.
 void setLeftMargin(int margin)
          Sets the left margin width to be used in the "fit to contents" action.
 void setRightMargin(int margin)
          Sets the right margin width to be used in the "fit to contents" action.
 void setTopMargin(int margin)
          Sets the top margin height to be used in the "fit to contents" action.
 
Methods inherited from class ilog.cpl.graph.action.toolbar.IlpAbstractGraphAction
getContext, getView
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.Action
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 

Constructor Detail

IlpGraphFitToContentsAction

protected IlpGraphFitToContentsAction(IlpViewsView view,
                                      String bundle)
Creates the action.

Parameters:
view - The view on which to operate.
bundle - The resource bundle to be used.
Method Detail

getTopMargin

public int getTopMargin()
Returns the top margin height to be used in the "fit to contents" action.


setTopMargin

public void setTopMargin(int margin)
Sets the top margin height to be used in the "fit to contents" action.

Parameters:
margin - Margin height in pixels.

getLeftMargin

public int getLeftMargin()
Returns the left margin width to be used in the "fit to contents" action.


setLeftMargin

public void setLeftMargin(int margin)
Sets the left margin width to be used in the "fit to contents" action.

Parameters:
margin - Margin width in pixels.

getBottomMargin

public int getBottomMargin()
Returns the bottom margin height to be used in the "fit to contents" action.


setBottomMargin

public void setBottomMargin(int margin)
Sets the bottom margin height to be used in the "fit to contents" action.

Parameters:
margin - Margin height in pixels.

getRightMargin

public int getRightMargin()
Returns the right margin width to be used in the "fit to contents" action.


setRightMargin

public void setRightMargin(int margin)
Sets the right margin width to be used in the "fit to contents" action.

Parameters:
margin - Margin width in pixels.

actionPerformed

public void actionPerformed(ActionEvent e)


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.