uk.ac.kcl.cch.jb.pliny.controls
Interface IZoomableImageEditor

All Known Implementing Classes:
ImageEditor

public interface IZoomableImageEditor

Editors who wish to make use of the ZoomControlContributionItem to provide a user control to set the zoomable size of their base images should implement this interface.

Author:
John Bradley

Method Summary
 org.eclipse.gef.commands.CommandStack getCommandStack()
          changes in the zoom size are meant to be undoable, so they are managed in the GEF manner by a CommandStack owned by the editor, and must be made accessible to the control.
 IZoomableImageResource getMyImageResource()
          return the Pliny Resource that this editor is currently working with.
 

Method Detail

getMyImageResource

public IZoomableImageResource getMyImageResource()
return the Pliny Resource that this editor is currently working with. The resource must implement the IZoomableImageResource interace

Returns:
IZoomableImageResource the editor's current resource.

getCommandStack

public org.eclipse.gef.commands.CommandStack getCommandStack()
changes in the zoom size are meant to be undoable, so they are managed in the GEF manner by a CommandStack owned by the editor, and must be made accessible to the control.

Returns:
CommandStack owned by the editor.