|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfr.ove.openmath.jome.ctrlview.bidim.Line
A line.
| Field Summary | |
static byte |
CENTER
The thickness of the line is distributed in equitably on both sides of the line |
static byte |
LEFT
The thickness of the line is distributed to the left of the line |
static byte |
RIGHT
The thickness of the line is distributed to the right of the line |
| Constructor Summary | |
Line()
The constructor. |
|
Line(java.awt.Point p1,
java.awt.Point p2,
int thickness,
byte alignment)
The constructor. |
|
| Method Summary | |
void |
draw(java.awt.Graphics g)
Draws the line. |
int |
getAlignment()
Returns the alignement of the line. |
java.awt.Polygon |
getLine()
Returns the Polygon which represents the line. |
java.awt.Point |
getP1()
Returns the starting point of the line. |
java.awt.Point |
getP2()
Returns the ending point of the line. |
int |
getThickness()
Returns the thickness of the line. |
void |
setAlignment(byte alignment)
Sets a new alingment. |
void |
setP1(java.awt.Point p1)
Sets a new starting point. |
void |
setP2(java.awt.Point p2)
Sets a new ending point. |
void |
setThickness(int thickness)
Sets the thickness of the line. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final byte LEFT
public static final byte CENTER
public static final byte RIGHT
| Constructor Detail |
public Line()
public Line(java.awt.Point p1,
java.awt.Point p2,
int thickness,
byte alignment)
p1 - the starting point of the linep2 - the ending point of the linethickness - the thickness of the linealignment - the alignment of the line| Method Detail |
public void setP1(java.awt.Point p1)
p1 - the starting point of the linepublic java.awt.Point getP1()
public void setP2(java.awt.Point p2)
p2 - the ending point of the linepublic java.awt.Point getP2()
public void setAlignment(byte alignment)
alignment - the alignment of the linepublic int getAlignment()
public void setThickness(int thickness)
thickness - the thickness of the linepublic int getThickness()
public void draw(java.awt.Graphics g)
g - the graphics in which the line has to be drawn.public java.awt.Polygon getLine()
Polygon which represents the line.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||