uk.ac.kcl.cch.jb.pliny.commands
Class ChangeImageZoomValueCommand

java.lang.Object
  extended byorg.eclipse.gef.commands.Command
      extended byuk.ac.kcl.cch.jb.pliny.commands.ChangeImageZoomValueCommand

public class ChangeImageZoomValueCommand
extends org.eclipse.gef.commands.Command

Changes the Zoom value (which controls the visual display size of an image) for resources of type IZoomableImageResource. Generally, changing the Zoom value for a zoomable resource can only be done while the image is on the screen, so the visual result of this is therefore to also change the size of it on the screen.

Author:
John Bradley
See Also:
ZoomControlContributionItem

Constructor Summary
ChangeImageZoomValueCommand(IZoomableImageResource myResource, int newZoomValue)
           
 
Method Summary
 void execute()
           
 void undo()
           
 
Methods inherited from class org.eclipse.gef.commands.Command
canExecute, canUndo, chain, dispose, getDebugLabel, getLabel, redo, setDebugLabel, setLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangeImageZoomValueCommand

public ChangeImageZoomValueCommand(IZoomableImageResource myResource,
                                   int newZoomValue)
Method Detail

execute

public void execute()

undo

public void undo()