|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.mud.bsx.BSXObject | +--de.mud.bsx.BSXScene
Scene object for BSX Scenes.
Field Summary | |
protected java.util.Vector[] |
layers
the eight BSX depth layers |
protected java.util.Vector[] |
positions
positions of the contained objects |
Fields inherited from class de.mud.bsx.BSXObject |
bsxColors, data, poly |
Constructor Summary | |
BSXScene(java.lang.String id,
int[][] data)
Constructor for BSXScene |
Method Summary | |
void |
addObject(java.lang.String id,
int x,
int y)
adds an object to this scene |
void |
clean()
removes all objects from all layers |
boolean |
containsObject(java.lang.String id)
checks if specified object is within this scene |
void |
fill(java.awt.Graphics g)
draws the scene on a graphics object |
int |
layerOfObject(java.lang.String id)
query the layer of the specified object |
java.awt.Point |
locateObject(java.lang.String id)
querys the location of an object |
java.util.Enumeration |
objects(int layer)
querys objects on a specific layer in this scene |
void |
removeObject(java.lang.String id)
removes the specified object from the scene |
void |
removeObject(java.lang.String id,
int layer)
removes the specified object from the scene |
Methods inherited from class de.mud.bsx.BSXObject |
draw, equals, flush, hashCode, setData |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected final java.util.Vector[] layers
protected final java.util.Vector[] positions
Constructor Detail |
public BSXScene(java.lang.String id, int[][] data)
id
- Identifier of this sceneimg
- offscreenimage to render the data ondata
- description of this sceneMethod Detail |
public boolean containsObject(java.lang.String id)
id
- object to be checkedpublic void addObject(java.lang.String id, int x, int y)
id
- object to be addedx
- x-position of object in sceney
- y-position of object in scenepublic int layerOfObject(java.lang.String id)
id
- object in this scenepublic void removeObject(java.lang.String id, int layer)
id
- object to be removedlayer
- number of the layer the object is supposed to bepublic void removeObject(java.lang.String id)
id
- object to be removedpublic java.awt.Point locateObject(java.lang.String id)
id
- object to be foundpublic void clean()
public java.util.Enumeration objects(int layer)
layer
- layer to look onpublic void fill(java.awt.Graphics g)
g
- graphics object to draw onio
- ImageObserver to be notified
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |