|
JComponentPack 1.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Link
Link act as a link between node.
| Method Summary | |
|---|---|
void |
addArrow(Arrow arrow)
Adds the arrow to this node. |
void |
addPoint(int x,
int y)
Adds a point to this link. |
int |
getArrowCount()
Returns the number of the arrow added to this node. |
List |
getArrowList()
Returns a read-only arrow list. |
Arrow |
getEndArrow()
Returns the end arrow for this link. |
Node |
getEndNode()
Returns the end node for this link. |
int |
getEndX()
Returns the end x location. |
int |
getEndY()
Returns the end y location. |
int |
getMaxPointCount()
Returns the maximum point count of this link. |
int |
getMinPointCount()
Returns the minimum point count of this link. |
int |
getPointCount()
Returns the point count of this link. |
int |
getPointX(int index)
Returns the poing x coordinate at the specified index. |
int |
getPointY(int index)
Returns the poing y coordinate at the specified index. |
Arrow |
getStartArrow()
Returns the start arrow for this link. |
Node |
getStartNode()
Returns the start node for this link. |
int |
getStartX()
Returns the start x location. |
int |
getStartY()
Returns the start y location. |
void |
removeArrow(Arrow arrow)
Removes the arrow from this node. |
void |
removePoint(int x,
int y)
Removes the point from this link. |
void |
reset()
Resets the link path. |
void |
setEndArrow(Arrow endArrow)
Sets the end arrow for this link. |
void |
setEndLocation(int x2,
int y2)
Sets the end location. |
void |
setEndNode(Node endNode)
Sets the end node for this link. |
void |
setLocation(int x1,
int y1,
int x2,
int y2)
Sets the location for start coordinate and end coordinate. |
void |
setStartArrow(Arrow startArrow)
Sets the start arrow for this link. |
void |
setStartLocation(int x1,
int y1)
Sets the start location. |
void |
setStartNode(Node startNode)
Sets the start node for this link. |
| Method Detail |
|---|
void addArrow(Arrow arrow)
arrow - the arrow to addremoveArrow(com.zfqjava.chart.Arrow)void removeArrow(Arrow arrow)
arrow - the arrow to removeaddArrow(com.zfqjava.chart.Arrow)int getArrowCount()
List getArrowList()
void setStartNode(Node startNode)
startNode - the start nodegetStartNode()Node getStartNode()
setStartNode(com.zfqjava.chart.Node)void setEndNode(Node endNode)
endNode - the end nodegetEndNode()Node getEndNode()
setEndNode(com.zfqjava.chart.Node)void setStartArrow(Arrow startArrow)
startArrow - the start arrowgetStartArrow()Arrow getStartArrow()
setStartArrow(com.zfqjava.chart.Arrow)void setEndArrow(Arrow endArrow)
endArrow - the end arrowgetEndArrow()Arrow getEndArrow()
setEndArrow(com.zfqjava.chart.Arrow)
void setStartLocation(int x1,
int y1)
x1 - the start x locationy1 - the start y locationint getStartX()
int getStartY()
void setEndLocation(int x2,
int y2)
x2 - the end x locationy2 - the end y locationint getEndX()
int getEndY()
void setLocation(int x1,
int y1,
int x2,
int y2)
x1 - the start x locationy1 - the start y locationx2 - the end x locationy2 - the end y locationvoid reset()
void addPoint(int x,
int y)
x - the x coordinate of the pointy - the y coordinate of the point
void removePoint(int x,
int y)
x - the x coordinate of the pointy - the y coordinate of the pointint getPointX(int index)
int getPointY(int index)
int getPointCount()
int getMinPointCount()
int getMaxPointCount()
|
JComponentPack 1.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||