|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--java.awt.geom.Point2D
|
+--java.awt.Point
|
+--Point
This class represents a Point described by a java.awt.geom.Line2D.Double
| Inner classes inherited from class java.awt.geom.Point2D |
java.awt.geom.Point2D.Double,
java.awt.geom.Point2D.Float |
| Field Summary | |
java.awt.Graphics |
graphics
Graphics context for this Geometric object. |
private Polygon |
points
The original data points |
long |
time_stamp
Time stamp of this object. |
| Fields inherited from class java.awt.Point |
serialVersionUID,
x,
y |
| Fields inherited from interface GeometricObject |
CIRCLE,
ELLIPSE,
LINE,
POINT,
POLYGON,
RECTANGLE,
SQUARE |
| Constructor Summary | |
(package private) |
Point()
The constructor. |
(package private) |
Point(int x,
int y)
The constructor. |
(package private) |
Point(java.awt.Point point)
The constructor. |
| Method Summary | |
boolean |
containsGeometricObject(GeometricObject object)
Returns false if the argument is not completely inside this object. |
boolean |
containsGeometricObjects(GeometricObject[] objects)
Returns false if the objects in the input array are completely inside this object. |
Polygon |
getDataPoints()
This method is used to get the original data points that forms this GeometricObject |
Polygon |
getPolygonalBounds()
This method should return a polygon that corresponds to this object. |
Rectangle |
getRectangularBounds()
Supplied for completeness. |
long |
getTimeStamp()
Returns the time stamp of the current Terminal |
java.lang.String |
getType()
Implement GeometricObject |
void |
paint()
Draw the object |
void |
paint(java.awt.Graphics g)
Draw the object |
void |
paintOriginal(java.awt.Graphics g)
This method is used to paint the original data points that forms this GeometricObject |
boolean |
pointIsOn(Point point,
int radius)
Returns true if the point is within +-radius distance from this point. |
boolean |
pointIsOnOriginal(Point p,
int radius)
Returns true if the point is within +-radius distance from the original curve defining the object. |
void |
setDataPoints(Polygon points)
This method is used to set the original data points that forms this GeometricObject |
void |
setGraphicsContext(java.awt.Graphics g)
Set graphics context for this Geometric object. |
void |
setTimeStamp(long time_stamp)
Sets the time stamp of the current Terminal |
int |
spatialRelation(GeometricObject object)
This method should return the spatial relation of the input parameter with respect to this object. |
java.lang.String |
toString()
Override toString |
boolean |
touches(GeometricObject object)
This method should return true if the input objects touch. |
| Methods inherited from class java.awt.Point |
equals,
getLocation,
getX,
getY,
move,
setLocation,
setLocation,
setLocation,
translate |
| Methods inherited from class java.awt.geom.Point2D |
clone,
distance,
distance,
distance,
distanceSq,
distanceSq,
distanceSq,
hashCode,
setLocation |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private Polygon points
public long time_stamp
public java.awt.Graphics graphics
| Constructor Detail |
Point()
Point(java.awt.Point point)
Point(int x,
int y)
| Method Detail |
public java.lang.String getType()
public java.lang.String toString()
public void paint()
public void paintOriginal(java.awt.Graphics g)
public void paint(java.awt.Graphics g)
public boolean pointIsOn(Point point,
int radius)
public boolean pointIsOnOriginal(Point p,
int radius)
public void setGraphicsContext(java.awt.Graphics g)
public boolean touches(GeometricObject object)
public boolean containsGeometricObject(GeometricObject object)
public Rectangle getRectangularBounds()
public Polygon getPolygonalBounds()
public int spatialRelation(GeometricObject object)
public void setTimeStamp(long time_stamp)
public long getTimeStamp()
public void setDataPoints(Polygon points)
public Polygon getDataPoints()
public boolean containsGeometricObjects(GeometricObject[] objects)
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||