swarm.gui
Interface ZoomRaster

All Known Implementing Classes:
ZoomRasterImpl

public abstract 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.


Method Summary
 Object decreaseZoom()
          Make the raster smaller.
 int getZoomFactor()
          Get the current zoom factor.
 Object handleConfigureWidth$Height(int newWidth, int newHeight)
          Reconfigures the ZoomRaster when the window is resized.
 Object increaseZoom()
          Make the raster bigger.
 Object setZoomFactor(int z)
          Set the zoom factor.
 
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
 

Method Detail

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.