|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectMyPolygon
MyTetragon
MyRectangle
public class MyRectangle
MyRectangle.java rappresenta un rettangolo.
| Constructor Summary | |
|---|---|
MyRectangle(MyPoint2D[] p)
costruttore |
|
MyRectangle(MyPoint2D p1,
MyPoint2D p2,
MyPoint2D p3,
MyPoint2D p4)
costruttore |
|
| Method Summary |
|---|
| Methods inherited from class MyTetragon |
|---|
area, isRectangle, isSquare |
| Methods inherited from class MyPolygon |
|---|
compareTo, getLines, getPoint, getPoints, perimeter, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MyRectangle(MyPoint2D[] p)
p - array contenente i vertici del rettangolo
public MyRectangle(MyPoint2D p1,
MyPoint2D p2,
MyPoint2D p3,
MyPoint2D p4)
p1 - primo vertice del rettangolop2 - secondo vertice del rettangolop3 - terzo vertice del rettangolop4 - quarto vertice del rettangolo
java.lang.IllegalArgumentException - se il quadrilatero non e' un rettangolo
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||