swarm.gui
Interface ZoomRaster
- All Known Implementing Classes:
- ZoomRasterImpl
- public interface ZoomRaster
- extends RasterS, Raster
A zoomable Raster..
ZoomRaster is a subclass of Raster that implements a zoomable image. It handles translation between logical coordinates and screen coordinates.
Methods inherited from interface swarm.gui.Raster |
draw$X$Y,
drawPointX$Y$Color,
drawSelf,
ellipseX0$Y0$X1$Y1$Width$Color,
erase,
fillRectangleX0$Y0$X1$Y1$Color,
lineX0$Y0$X1$Y1$Width$Color,
rectangleX0$Y0$X1$Y1$Width$Color,
setButton$Client$Message,
setColormap,
setWidth$Height |
Methods inherited from interface swarm.gui.Widget |
disableDestroyNotification,
enableDestroyNotification$notificationMethod,
getDestroyedFlag,
getHeight,
getParent,
getTopLevel,
getWidgetName,
getWidth,
getWindowGeometry,
getX,
getY,
pack,
packBeforeAndFillLeft$expand,
packFill,
packFillLeft,
packForgetAndExpand,
packToRight,
setActiveFlag,
setHeight,
setWidth,
setWindowGeometry,
setWindowTitle,
setX$Y |
Methods inherited from interface swarm.defobj.DefinedObject |
compare,
describe,
describeID,
getDisplayName,
getTypeName,
getZone,
perform,
perform$with,
perform$with$with,
perform$with$with$with,
respondsTo,
setDisplayName,
xfprint,
xfprintid,
xprint,
xprintid |
increaseZoom
public Object increaseZoom()
- Make the raster bigger.
decreaseZoom
public Object decreaseZoom()
- Make the raster smaller.
getZoomFactor
public int getZoomFactor()
- Get the current zoom factor.
setZoomFactor
public Object setZoomFactor(int z)
- Set the zoom factor.
handleConfigureWidth$Height
public Object handleConfigureWidth$Height(int newWidth,
int newHeight)
- Reconfigures the ZoomRaster when the window is resized.