Class MoveAction

    • Constructor Detail

      • MoveAction

        public MoveAction(Viewer viewer,
                          String name,
                          String description,
                          String filename,
                          int dx,
                          int dy)
        Create an action for moving the viewport of the viewer.
        Parameters:
        viewer - the viewer to work with.
        name - the name of the action.
        description - the description of the action.
        filename - the file of the icon.
        dx - the amount to move in the direction of the x-axis.
        dy - the amount to move in the direction of the y-axis.
    • Method Detail

      • actionPerformed

        public void actionPerformed(ActionEvent e)