|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--es05.Line
Questa classe rappresenta l'astrazione di un segmento caratterizzato da 4 coordinate (i due punti estremi) e da un colore.
Constructor Summary | |
Line(int x1,
int y1,
int x2,
int y2,
java.awt.Color colore)
Costruttore |
Method Summary | |
java.awt.Color |
getColor()
Ritorna il colore del segmento |
int |
getX1()
Ritorna l'ascissa del primo estremo |
int |
getX2()
Ritorna l'ascissa del secondo estremo |
int |
getY1()
Ritorna lordinata del primo estremo |
int |
getY2()
Ritorna l'ordinata del secondo estremo |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Line(int x1, int y1, int x2, int y2, java.awt.Color colore)
x1
- ascissa del primo estremo.y1
- ordinata del primo estremo.x2
- ascissa del secondo estremo.y2
- ordinata del secondo estremo.colore
- colore del segmentoMethod Detail |
public int getX1()
public int getY1()
public int getX2()
public int getY2()
public java.awt.Color getColor()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |