|
JComponentPack 1.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.zfqjava.chart.AbstractNode
com.zfqjava.chart.AbstractLink
public abstract class AbstractLink
AbstractLink provides a basic link implements.
| Constructor Summary | |
|---|---|
protected |
AbstractLink()
|
| Method Summary | |
|---|---|
void |
addArrow(Arrow arrow)
Adds the arrow to this node. |
void |
addPoint(int x,
int y)
Adds a point to this link. |
protected void |
configureLinkShape()
Configure the shape when the link's location has been changed. |
protected void |
configureLinkShape(Shape s)
Configure the shape when the link's location has been changed. |
protected void |
configureLinkShape(Shape s,
int x1,
int y1,
int x2,
int y2)
Configure the shape when the link's location has been changed. |
protected List |
createHandles()
Creates the handles for this node. |
void |
doLayout()
Layout the children nodes. |
protected void |
drawShape(Graphics2D g,
Shape s)
|
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. |
String |
toString()
Returns a string representation of this link. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractLink()
| Method Detail |
|---|
protected List createHandles()
AbstractNode
createHandles in class AbstractNode
protected void drawShape(Graphics2D g,
Shape s)
drawShape in class AbstractNodeprotected void configureLinkShape()
protected void configureLinkShape(Shape s)
s - the paint shape of this link.
protected void configureLinkShape(Shape s,
int x1,
int y1,
int x2,
int y2)
s - the paint shape of this link.x1 - the start x locationy1 - the start y locationx2 - the end x locationy2 - the end y locationpublic void doLayout()
Node
doLayout in interface NodedoLayout in class AbstractNodepublic void addArrow(Arrow arrow)
Link
addArrow in interface Linkarrow - the arrow to addLink.removeArrow(com.zfqjava.chart.Arrow)public void removeArrow(Arrow arrow)
Link
removeArrow in interface Linkarrow - the arrow to removeLink.addArrow(com.zfqjava.chart.Arrow)public int getArrowCount()
Link
getArrowCount in interface Linkpublic List getArrowList()
Link
getArrowList in interface Linkpublic void setStartNode(Node startNode)
Link
setStartNode in interface LinkstartNode - the start nodeLink.getStartNode()public Node getStartNode()
Link
getStartNode in interface LinkLink.setStartNode(com.zfqjava.chart.Node)public void setEndNode(Node endNode)
Link
setEndNode in interface LinkendNode - the end nodeLink.getEndNode()public Node getEndNode()
Link
getEndNode in interface LinkLink.setEndNode(com.zfqjava.chart.Node)public void setStartArrow(Arrow startArrow)
Link
setStartArrow in interface LinkstartArrow - the start arrowLink.getStartArrow()public Arrow getStartArrow()
Link
getStartArrow in interface LinkLink.setStartArrow(com.zfqjava.chart.Arrow)public void setEndArrow(Arrow endArrow)
Link
setEndArrow in interface LinkendArrow - the end arrowLink.getEndArrow()public Arrow getEndArrow()
Link
getEndArrow in interface LinkLink.setEndArrow(com.zfqjava.chart.Arrow)
public void setStartLocation(int x1,
int y1)
Link
setStartLocation in interface Linkx1 - the start x locationy1 - the start y locationpublic int getStartX()
Link
getStartX in interface Linkpublic int getStartY()
Link
getStartY in interface Link
public void setEndLocation(int x2,
int y2)
Link
setEndLocation in interface Linkx2 - the end x locationy2 - the end y locationpublic int getEndX()
Link
getEndX in interface Linkpublic int getEndY()
Link
getEndY in interface Link
public void setLocation(int x1,
int y1,
int x2,
int y2)
Link
setLocation in interface Linkx1 - the start x locationy1 - the start y locationx2 - the end x locationy2 - the end y locationpublic void reset()
Link
reset in interface Link
public void addPoint(int x,
int y)
Link
addPoint in interface Linkx - the x coordinate of the pointy - the y coordinate of the point
public void removePoint(int x,
int y)
Link
removePoint in interface Linkx - the x coordinate of the pointy - the y coordinate of the pointpublic int getPointX(int index)
Link
getPointX in interface Linkpublic int getPointY(int index)
Link
getPointY in interface Linkpublic int getPointCount()
Link
getPointCount in interface Linkpublic int getMinPointCount()
Link
getMinPointCount in interface Linkpublic int getMaxPointCount()
Link
getMaxPointCount in interface Linkpublic String toString()
toString in class AbstractNode
|
JComponentPack 1.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||