|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--xmltool.datastructure.LinePoints
LinePoints keeps track of the lines to be drawn for each link (AND or OR) condition.
| Field Summary | |
java.awt.geom.Line2D.Float[] |
linePointsArray
|
| Constructor Summary | |
LinePoints()
|
|
| Method Summary | |
boolean |
contains(double x,
double y)
Verify if the point (x,y) where the mouse is clicked is on or nearby this link |
int |
getNumLinePoints()
Get the number of lines drawn in this link |
double |
getX1(int i)
Get the start x coordinate of the ith line drawn in that link |
double |
getX2(int i)
Get the end x coordinate of the ith line drawn in that link |
double |
getY1(int i)
Get the start y coordinate of the ith line drawn in that link |
double |
getY2(int i)
Get the end y coordinate of the ith line drawn in that link |
void |
insert(float x1,
float y1,
float x2,
float y2)
Add a line to be drawn as part of a join condition |
void |
LinePoints()
Default Constructor |
void |
reset()
Delete this link |
void |
setNumLinePoints(int c)
Set the number of lines drawn in this link |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public java.awt.geom.Line2D.Float[] linePointsArray
| Constructor Detail |
public LinePoints()
| Method Detail |
public void LinePoints()
public void insert(float x1,
float y1,
float x2,
float y2)
x1 - x coordinate of start point of liney1 - y coordinate of start point of linex2 - x coordinate of end point of liney2 - y coordinate of end point of linepublic double getX1(int i)
i - Line numberpublic double getY1(int i)
i - Line numberpublic double getX2(int i)
i - Line numberpublic double getY2(int i)
i - Line numberpublic int getNumLinePoints()
public void setNumLinePoints(int c)
c - Number of lines
public boolean contains(double x,
double y)
x - x coordinate of pointy - y coordinate of pointpublic void reset()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||