|
|||||||||
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 | |
Object |
draw$X$Y(Object drawer,
int x,
int y)
Draw an object at a given position. |
Object |
drawPointX$Y$Color(int x,
int y,
byte c)
Draw a point at the given coordinates with the given color. |
Object |
drawSelf()
Draw the raster to the display. |
Object |
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. |
Object |
erase()
Erase the raster. |
Object |
fillRectangleX0$Y0$X1$Y1$Color(int x0,
int y0,
int x1,
int y1,
byte color)
Fill a rectangle of given geometry and color. |
Object |
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. |
Object |
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. |
Object |
setButton$Client$Message(int n,
Object c,
Selector sel)
Configure at mouse button to send a message to a given client object. |
Object |
setColormap(ColormapImpl c)
Set the palette for this raster. |
Object |
setWidth$Height(int newWidth,
int newHeight)
Set the size of the raster. |
Method Detail |
public Object setColormap(ColormapImpl c)
public Object drawPointX$Y$Color(int x, int y, byte c)
public Object drawSelf()
public Object setWidth$Height(int newWidth, int newHeight)
public Object setButton$Client$Message(int n, Object c, Selector sel)
public Object fillRectangleX0$Y0$X1$Y1$Color(int x0, int y0, int x1, int y1, byte color)
public Object ellipseX0$Y0$X1$Y1$Width$Color(int x0, int y0, int x1, int y1, int penWidth, byte c)
public Object lineX0$Y0$X1$Y1$Width$Color(int x0, int y0, int x1, int y1, int penWidth, byte c)
public Object rectangleX0$Y0$X1$Y1$Width$Color(int x0, int y0, int x1, int y1, int penWidth, byte c)
public Object draw$X$Y(Object drawer, int x, int y)
public Object erase()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |