jpicedt.graphic
Class PEScrollPane.CenterViewportAction
java.lang.Object
javax.swing.AbstractAction
jpicedt.graphic.toolkit.PEAction
jpicedt.graphic.PEScrollPane.CenterViewportAction
- All Implemented Interfaces:
- Action, ActionListener, Cloneable, EventListener, Serializable
- Enclosing class:
- PEScrollPane
- public static class PEScrollPane.CenterViewportAction
- extends PEAction
Move the view so that (0,0) is at the center of the viewport
- See Also:
- Serialized Form
Method Summary |
void |
actionPerformed(ActionEvent e)
This is a default implementation of the "actionPerformed" method suited for undoable actions :
we first call "beginUndoableUpdate" with "actionName" as the presentation name,
then delegate to "undoableActionPerformed", finally mark the undoable-update as ended. |
KEY
public static final String KEY
- See Also:
- Constant Field Values
PEScrollPane.CenterViewportAction
public PEScrollPane.CenterViewportAction(ActionDispatcher actionDispatcher,
ActionLocalizer localizer,
PEScrollPane scrollPane)
actionPerformed
public void actionPerformed(ActionEvent e)
- Description copied from class:
PEAction
- This is a default implementation of the "actionPerformed" method suited for undoable actions :
we first call "beginUndoableUpdate" with "actionName" as the presentation name,
then delegate to "undoableActionPerformed", finally mark the undoable-update as ended.
Action that don't want to be undoable should simply override this method as usual.
- Specified by:
actionPerformed
in interface ActionListener
- Overrides:
actionPerformed
in class PEAction
Submit a bug : syd@jpicedt.org