|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A two dimension color display class.. 2 dimensional, colour pixel images. Raster is based on a Tk frame widget with our own code for fast display of images. You can draw coloured dots on a Raster, or generic Drawers. Raster widgets are double buffered - the pixels you draw are not actually put on the screen until drawSelf is called. In addition, Rasters handle mouse clicks.
Method Summary | |
void |
draw$X$Y(Drawer drawer,
int x,
int y)
Draw an object at a given position. |
void |
drawPointX$Y$Color(int x,
int y,
byte c)
Draw a point at the given coordinates with the given color. |
void |
drawSelf()
Draw the raster to the display. |
void |
ellipseX0$Y0$X1$Y1$Width$Color(int x0,
int y0,
int x1,
int y1,
int penWidth,
byte c)
Draw an ellipse of given geometry, pen width, and color. |
void |
erase()
Erase the raster. |
void |
fillRectangleX0$Y0$X1$Y1$Color(int x0,
int y0,
int x1,
int y1,
byte color)
Fill a rectangle of given geometry and color. |
void |
lineX0$Y0$X1$Y1$Width$Color(int x0,
int y0,
int x1,
int y1,
int penWidth,
byte c)
Draw a line of given geometry, pen width, and color. |
void |
rectangleX0$Y0$X1$Y1$Width$Color(int x0,
int y0,
int x1,
int y1,
int penWidth,
byte c)
Draw a rectangle of given geometry, pen width, and color. |
void |
setButton$Client$Message(int n,
java.lang.Object c,
Selector sel)
Configure at mouse button to send a message to a given client object. |
java.lang.Object |
setColormap(Colormap c)
Set the palette for this raster. |
Methods inherited from interface swarm.gui.ArchivedGeometryWidget |
updateArchiver |
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,
setWidth$Height,
setWindowGeometry,
setWindowTitle,
setX$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 |
public java.lang.Object setColormap(Colormap c)
public void drawPointX$Y$Color(int x, int y, byte c)
public void drawSelf()
public void setButton$Client$Message(int n, java.lang.Object c, Selector sel)
public void fillRectangleX0$Y0$X1$Y1$Color(int x0, int y0, int x1, int y1, byte color)
public void ellipseX0$Y0$X1$Y1$Width$Color(int x0, int y0, int x1, int y1, int penWidth, byte c)
public void lineX0$Y0$X1$Y1$Width$Color(int x0, int y0, int x1, int y1, int penWidth, byte c)
public void rectangleX0$Y0$X1$Y1$Width$Color(int x0, int y0, int x1, int y1, int penWidth, byte c)
public void draw$X$Y(Drawer drawer, int x, int y)
public void erase()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |