|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--Rectangle
|
+--Shade
This class represents a line described by its end-points p, q.
| Field Summary | |
java.util.Vector |
lines
Lines that formed this Shade. |
int |
shades
Number of shades to draw. |
| Fields inherited from class Rectangle |
angle,
graphics,
height,
height_x,
height_y,
points,
time_stamp,
width,
width_x,
width_y,
x,
y |
| Constructor Summary | |
(package private) |
Shade(java.util.Vector lines)
The constructor. |
| Method Summary | |
double |
getAngle()
Returns the angle of the object WRT the x axis in radians. |
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 the curve defining the object. |
void |
setTimeStamp(long time_stamp)
Sets the time stamp of the current Terminal |
java.lang.String |
toString()
Override toString |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public java.util.Vector lines
public int shades
| Constructor Detail |
Shade(java.util.Vector lines)
| Method Detail |
public java.lang.String getType()
public java.lang.String toString()
public void paint()
public void paint(java.awt.Graphics g)
public void paintOriginal(java.awt.Graphics g)
public boolean pointIsOn(Point point,
int radius)
public Rectangle getRectangularBounds()
public double getAngle()
public void setTimeStamp(long time_stamp)
public long getTimeStamp()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||