|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractAction
ilog.cpl.graph.action.toolbar.IlpAbstractGraphAction
ilog.cpl.graph.action.toolbar.IlpGraphFitToContentsAction
public abstract class IlpGraphFitToContentsAction
This action sets the zoom factor by executing a "fit to contents" action.
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 |
|---|
protected IlpGraphFitToContentsAction(IlpViewsView view,
String bundle)
view - The view on which to operate.bundle - The resource bundle to be used.| Method Detail |
|---|
public int getTopMargin()
public void setTopMargin(int margin)
margin - Margin height in pixels.public int getLeftMargin()
public void setLeftMargin(int margin)
margin - Margin width in pixels.public int getBottomMargin()
public void setBottomMargin(int margin)
margin - Margin height in pixels.public int getRightMargin()
public void setRightMargin(int margin)
margin - Margin width in pixels.public void actionPerformed(ActionEvent e)
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||