swarm.gui
Interface Pixmap

All Known Implementing Classes:
PixmapImpl

public interface Pixmap
extends Drawer, DrawerS, Create, CreateS, Drop, DropS

A class for drawing color bitmaps on a Raster.. A class for drawing color bitmaps on a Raster. The bitmaps are stored in the Portable Network Graphics format.


Method Summary
 int getHeight()
          Get the height of the bitmap in pixels.
 int getWidth()
          Get the width of the bitmap in pixels.
 void save(java.lang.String filename)
          Save the pixmap to a file.
 void setRaster(Raster raster)
          Set the raster that the pixmap will be shown on.
 
Methods inherited from interface swarm.gui.Drawer
drawX$Y
 
Methods inherited from interface swarm.defobj.Drop
drop
 
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
 
Methods inherited from interface swarm.defobj.GetName
getName
 

Method Detail

setRaster

public void setRaster(Raster raster)
Set the raster that the pixmap will be shown on. It's used to augment raster the color palette as necessary.

getWidth

public int getWidth()
Get the width of the bitmap in pixels.

getHeight

public int getHeight()
Get the height of the bitmap in pixels.

save

public void save(java.lang.String filename)
Save the pixmap to a file.