Inheritance diagram for LayeredCanvas::
Public Methods | |
void | clear () |
Clear the canvas, i.e. More... | |
int | getNrOfLayers () |
void | enableLayer (int layer) |
void | disableLayer (int layer) |
boolean | isEnabled (int layer) |
int | addObject (CanvasObject obj) |
int | addObject (CanvasObject obj, int index, int objID) |
This is the only function that really adds objects. More... | |
CanvasObject | getObject (int objID) |
CanvasObject | getObject (int layer, int index) |
CanvasObject | getObjectCopy (int objID, boolean ics) |
CanvasObject | getObjectCopy (int layer, int index, boolean ics) |
void | removeObject (int objID) |
void | removeObject (int layer, int index) |
void | removeAllObjects () |
int | getObjectID (CanvasObject obj) |
String[] | whichClassesAt (int layer) |
Static Public Attributes | |
final int | MIN_LAYERS = 1 |
final String | STD_CLASS = "HxJava.CanvasObject.CanvasObject" |
Protected Methods | |
boolean | declareClassAt (String className, int layer) |
int | findLayer (CanvasObject obj) |
Protected Attributes | |
int | nrOfLayers |
ObjectRepository | _repository |
Vector[] | classes |
Class | stdClass |
boolean[] | enableFlags |
|
Clear the canvas, i.e. remove all objects from the canvas and draw the background color on the entire canvas. Reimplemented in ScribbleCanvas. |
|
|
|
|
|
|
|
|
|
|
|
This is the only function that really adds objects. If index or objID are -1 a suited value will be determined. NOTE TO PROGRAMMERS: take care that supplying an object ID can cause multiple objects to have the same identifier! In normal situations the repository should supply the ID. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|