|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--Cross
A basic Cross with a two perpendicular lines.
| Field Summary | |
private java.util.Vector |
children
children |
java.awt.Graphics |
graphics
Graphics context for this Geometric object. |
private Line |
l1
First line of the cross. |
private Line |
l2
Modified l2 to be perpendicular to l1. |
private Line |
original_l2
Original l2. |
| Constructor Summary | |
(package private) |
Cross(Line l1,
Line l2)
The constructor. |
| Method Summary | |
double |
getAngle()
Returns the angle of the motor WRT the x axis in radians. |
java.util.Vector |
getChildren()
This method should return a vector containing the children of this object. |
Polygon[] |
getPolygonalBoundsArray()
This method should return the polygonal array bounds of this non-terminal object. |
Rectangle |
getRectangularBounds()
This method should return the Rectangular bounds of this non-terminal object. |
java.lang.String |
getType()
Implement Paintable |
void |
paint()
Draw the Cross. |
void |
paint(java.awt.Graphics g)
Draw the Cross |
void |
paintOriginal(java.awt.Graphics g)
This method is used to paint the original data points that forms this GeometricObject |
void |
setGraphicsContext(java.awt.Graphics g)
Set graphics context for this Cross object. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private Line original_l2
private Line l1
private Line l2
private java.util.Vector children
public java.awt.Graphics graphics
| Constructor Detail |
Cross(Line l1,
Line l2)
| Method Detail |
public double getAngle()
public void paint()
public void paint(java.awt.Graphics g)
public void setGraphicsContext(java.awt.Graphics g)
public java.lang.String getType()
public void paintOriginal(java.awt.Graphics g)
public Rectangle getRectangularBounds()
public Polygon[] getPolygonalBoundsArray()
public java.util.Vector getChildren()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||