|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--drawables.DrawableObjects
|
+--drawables.DrawableObjectsWithSearchTree
Container class for drawable objects.
| Field Summary |
| Fields inherited from class drawables.DrawableObjects |
hashtable, lastInLayer, layer, maxId, mode, numOfLayers, numOfModes, searchObject, selectedObject, STDMODE, visibleDrawable |
| Constructor Summary | |
DrawableObjectsWithSearchTree(int numOfLayers,
SpatialSearchTree tree)
Constructor. |
|
| Method Summary | |
void |
addDrawable(Drawable prim)
Add a drawable into the container. |
void |
drawAllObjectsOfLayer(int l,
java.awt.Graphics g,
java.awt.Rectangle r,
int scale)
Zeichnet alle Drawable-Objekte im angegebenen Graphic Context, vorausgesetzt der aktuelle Maßstab wird vom Drawable-Objekt überschritten und es liegt im übergebenen Rechteck. |
Drawable |
findNearestDrawable(int x,
int y,
Drawable prim,
SpatialSearchTreeObject typeObject)
Finds the nearest drawable to a given position. |
java.awt.Rectangle |
getDataspace()
Returns the data space of all objects. |
Drawable |
getNextDrawable(Drawable prevPrim)
Returns the next drawable primitive. |
DrawableObject |
getNextVisibleIntersectingObject(int px,
int py,
int scale,
boolean selectable)
Gibt das nächste benannte, sichtbare und ggf. selektierbare Drawable-Objekt zurück, welches sich an der angegebenen Position befindet und den Maßstab einhält. |
int |
getNumberOfObjects()
Returns the number of all objects. |
void |
remove(DrawableObject obj)
Löscht das Drawable-Objekt aus dem Container und löst die Beziehung zum Grafik-Primitiv auf. |
void |
removeAll()
Removes all objects from the container. |
void |
removeAllObjectsOfLayer(int l)
Removes all objects of a given layer from the container. |
| Methods inherited from class drawables.DrawableObjects |
deselect, drawAllObjects, elements, findNearestDrawable, getMode, getNextFreeId, getNumberOfModes, getObjectById, getSelectedObject, getVisibleObjectById, newDrawableObject, newDrawableObject, newDrawableObject, readDrawableObject, readDrawableObject, readDrawableObject, select, setMode, setNumberOfModes |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DrawableObjectsWithSearchTree(int numOfLayers,
SpatialSearchTree tree)
numOfLayers - number of layerstree - spatial searchtree used (may be null)| Method Detail |
public void addDrawable(Drawable prim)
addDrawable in class DrawableObjectsprim - the drawable
public void drawAllObjectsOfLayer(int l,
java.awt.Graphics g,
java.awt.Rectangle r,
int scale)
drawAllObjectsOfLayer in class DrawableObjectsl - Layerg - aktueller Graphic Contextr - Clipping-Rechteckscale - aktueller Maßstab
public Drawable findNearestDrawable(int x,
int y,
Drawable prim,
SpatialSearchTreeObject typeObject)
x - x-coordinate of the positiony - y-coordinate of the positionprim - the excluded drawable (may be null)typeObject - an object specifying the type that is searched (may be null)
public java.awt.Rectangle getDataspace()
getDataspace in class DrawableObjectspublic Drawable getNextDrawable(Drawable prevPrim)
getNextDrawable in class DrawableObjectsprevPrim - previous drawable; null => look for first drawable
public DrawableObject getNextVisibleIntersectingObject(int px,
int py,
int scale,
boolean selectable)
getNextVisibleIntersectingObject in class DrawableObjectspx - x-Koordinate der gesuchten Position (in Basis-Koordinaten)py - y-Koordinate der gesuchten Position (in Basis-Koordinaten)selectable - muß das Objekt selektierbar sein?
public int getNumberOfObjects()
getNumberOfObjects in class DrawableObjectspublic void remove(DrawableObject obj)
remove in class DrawableObjectsobj - zu löschendes Drawable-Objektpublic void removeAll()
removeAll in class DrawableObjectspublic void removeAllObjectsOfLayer(int l)
removeAllObjectsOfLayer in class DrawableObjectsl - the layer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||