Mercurial > hg > de.mpg.mpiwg.itgroup.digilib.core
view src/de/mpg/mpiwg/itgroup/digilib/digiImage/IDigiImage.java @ 20:2f47c136b8a6
added property view
author | dwinter |
---|---|
date | Tue, 04 Jan 2011 16:35:41 +0100 |
parents | e63a64652f4d |
children | ee955cf6c9c5 |
line wrap: on
line source
package de.mpg.mpiwg.itgroup.digilib.digiImage; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Label; import de.mpg.mpiwg.itgroup.digilib.manipulator.extensions.ZoomAreaRectangleListener; /** * Interface for an general scalable image object. * @author dwinter * */ public interface IDigiImage { /** * Gets the current set of parameters. * @return */ public DigiImageParameter getParameter(); /** Set the parameter, no other action, image is only recreated by calling @see {@link #redraw()}. * @param dp */ public void setParameter(DigiImageParameter dp); /** * Draws the image defined by the parameter set. * */ public void redraw(); /** * * @return the label @object which contains the image */ public Label getLabel(); /** * Sets a new label object, should normally not be externally called. Label should be set by @see {@link #redraw()}. * @param label */ public void setLabel(Label label); /** * Get the listener to a rectangle object used for marking a part of the image for zooming. * @return */ public ZoomAreaRectangleListener getRectangleListener(); /** * et the listener to a rectangle object used for marking a part of the image for zooming. * @param rectangleListener */ public void setRectangleListener(ZoomAreaRectangleListener rectangleListener); /** * @return Parent of the composite object of the label. */ public Composite getParent(); }