|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--drawables.DrawableSpatialSearchTreeObject
Wrapper class for drawable primitives.
| Field Summary | |
protected MBR |
mbr
Its minimum bounding rectangle. |
protected Drawable |
prim
The drawable primitive. |
| Constructor Summary | |
DrawableSpatialSearchTreeObject(Drawable prim)
DrawableSpatialSearchTreeObject constructor comment. |
|
| Method Summary | |
double |
computeDistanceTo(int[] point)
Computes the distance to a given point. |
boolean |
contains(MBR rect)
Tests whether the object contains a given rectangle or not. |
void |
draw(java.awt.Graphics g,
int scale)
Draws the object. |
boolean |
equals(java.lang.Object obj)
Test whether the wrapped primitives are equal or not. |
Drawable |
getDrawable()
Returns the drawable primitive. |
long |
getId()
Returns the identifier of the object. |
int |
getLayer()
Returns the layer of the object. |
MBR |
getMBR()
Returns the minimum bounding rectangle. |
int |
getNumOfDimensions()
Returns the number of dimensions. |
java.lang.Object |
getType()
Returns the type of the object. |
boolean |
interacts(int x,
int y,
int scale)
Tests whether an object is selected by a point or not. |
boolean |
intersects(MBR r)
Tests whether the object intersects a given rectangle. |
boolean |
intersects(java.lang.Object obj)
Tests whether the object intersects another object. |
boolean |
isContainedBy(MBR rect)
Tests whether the object is contained by a given rectangle or not. |
boolean |
isContainedBy(SpatialSearchTreeEntry entry)
Tests whether the object is contained by a given entry or not. |
boolean |
isOfSameType(SpatialSearchTreeObject obj)
Tests whether the object is of the same type as the given object or not. |
boolean |
isVisible(int scale)
Tests whether the object is visible at a given scale or not. |
void |
setMBR(MBR newMBR)
Sets the MBR of the object. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Drawable prim
protected MBR mbr
| Constructor Detail |
public DrawableSpatialSearchTreeObject(Drawable prim)
prim - the drawable primitive| Method Detail |
public double computeDistanceTo(int[] point)
computeDistanceTo in interface SpatialSearchTreeObjectpoint - coordinates of the point
public boolean contains(MBR rect)
contains in interface SpatialSearchTreeObjectrect - the rectangle
public void draw(java.awt.Graphics g,
int scale)
draw in interface SpatialSearchTreeObjectg - graphic contextscale - actual scalepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the other object
public Drawable getDrawable()
public long getId()
getId in interface SpatialSearchTreeObjectpublic int getLayer()
getLayer in interface LayerSpatialSearchTreeObjectpublic MBR getMBR()
getMBR in interface SpatialSearchTreeEntrypublic int getNumOfDimensions()
getNumOfDimensions in interface SpatialSearchTreeEntrypublic java.lang.Object getType()
public boolean interacts(int x,
int y,
int scale)
interacts in interface VisualizedSpatialSearchTreeObjectx - x-coordinate of the pointy - y-coordinate of the pointscale - scale
public boolean intersects(java.lang.Object obj)
intersects in interface SpatialSearchTreeObjectobj - the object
public boolean intersects(MBR r)
intersects in interface SpatialSearchTreeObjectr - the rectangle
public boolean isContainedBy(MBR rect)
isContainedBy in interface SpatialSearchTreeObjectrect - the rectangle
public boolean isContainedBy(SpatialSearchTreeEntry entry)
isContainedBy in interface SpatialSearchTreeObjectentry - the entry
public boolean isOfSameType(SpatialSearchTreeObject obj)
isOfSameType in interface SpatialSearchTreeObjectobj - the other object
public boolean isVisible(int scale)
isVisible in interface VisualizedSpatialSearchTreeObjectscale - scale
public void setMBR(MBR newMBR)
setMBR in interface MovingSpatialSearchTreeObjectnewMBR - the new MNR
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||