JComponentPack 1.5.0

com.zfqjava.chart
Interface Link

All Superinterfaces:
Node
All Known Implementing Classes:
AbstractLink, AxisNode, CurveLink, ElbowLink, LineLink, PathLink, PolygonLink, PolygonNode, PolylineLink, ShapeLink

public interface Link
extends Node

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.
 
Methods inherited from interface com.zfqjava.chart.Node
addHandle, addHandle, addLink, addNode, addNode, addNode, addNode, contains, contains, contains, doLayout, findNodeAt, getBounds, getCellBounds, getCenterX, getCenterY, getChart, getCursor, getDrawComposite, getDrawPaint, getFillComposite, getFillPaint, getFont, getHandleCount, getHandleList, getHeight, getLayout, getLinkCount, getLinkList, getLock, getMargin, getName, getNode, getNodeCount, getNodeList, getPaintBounds, getPreferredSize, getShadowComposite, getShadowPaint, getShadowTransform, getStroke, getToolTipText, getToolTipText, getTransform, getUserObject, getWidth, getX, getY, indexOfNode, intersects, intersects, isAdjustable, isCellable, isDrawable, isEditable, isEmpty, isFillable, isGroupable, isLinkable, isMovable, isPreferredSizeSet, isResizable, isRotatable, isSelectable, isShadowable, isVisible, paint, removeAllNode, removeHandle, removeHandle, removeLink, removeNode, removeNode, removeNode, repaint, repaint, repaint, revalidate, setAdjustable, setBounds, setBounds, setCellable, setCenterLocation, setChart, setCursor, setDrawable, setDrawComposite, setDrawPaint, setEditable, setFillable, setFillComposite, setFillPaint, setFont, setGroupable, setLayout, setLinkable, setLocation, setMargin, setMovable, setName, setPreferredSize, setResizable, setRotatable, setSelectable, setShadowable, setShadowComposite, setShadowPaint, setShadowTransform, setSize, setStroke, setToolTipText, setTransform, setUserObject, setVisible
 

Method Detail

addArrow

void addArrow(Arrow arrow)
Adds the arrow to this node.

Parameters:
arrow - the arrow to add
See Also:
removeArrow(com.zfqjava.chart.Arrow)

removeArrow

void removeArrow(Arrow arrow)
Removes the arrow from this node.

Parameters:
arrow - the arrow to remove
See Also:
addArrow(com.zfqjava.chart.Arrow)

getArrowCount

int getArrowCount()
Returns the number of the arrow added to this node.

Returns:
the number of the arrow

getArrowList

List getArrowList()
Returns a read-only arrow list.

Returns:
a read-only arrow list

setStartNode

void setStartNode(Node startNode)
Sets the start node for this link.

Parameters:
startNode - the start node
See Also:
getStartNode()

getStartNode

Node getStartNode()
Returns the start node for this link.

Returns:
the start node
See Also:
setStartNode(com.zfqjava.chart.Node)

setEndNode

void setEndNode(Node endNode)
Sets the end node for this link.

Parameters:
endNode - the end node
See Also:
getEndNode()

getEndNode

Node getEndNode()
Returns the end node for this link.

Returns:
the end node
See Also:
setEndNode(com.zfqjava.chart.Node)

setStartArrow

void setStartArrow(Arrow startArrow)
Sets the start arrow for this link.

Parameters:
startArrow - the start arrow
See Also:
getStartArrow()

getStartArrow

Arrow getStartArrow()
Returns the start arrow for this link.

Returns:
the start arrow
See Also:
setStartArrow(com.zfqjava.chart.Arrow)

setEndArrow

void setEndArrow(Arrow endArrow)
Sets the end arrow for this link.

Parameters:
endArrow - the end arrow
See Also:
getEndArrow()

getEndArrow

Arrow getEndArrow()
Returns the end arrow for this link.

Returns:
the end arrow
See Also:
setEndArrow(com.zfqjava.chart.Arrow)

setStartLocation

void setStartLocation(int x1,
                      int y1)
Sets the start location.

Parameters:
x1 - the start x location
y1 - the start y location

getStartX

int getStartX()
Returns the start x location.

Returns:
the start x location

getStartY

int getStartY()
Returns the start y location.

Returns:
the start y location

setEndLocation

void setEndLocation(int x2,
                    int y2)
Sets the end location.

Parameters:
x2 - the end x location
y2 - the end y location

getEndX

int getEndX()
Returns the end x location.

Returns:
the end x location

getEndY

int getEndY()
Returns the end y location.

Returns:
the end y location

setLocation

void setLocation(int x1,
                 int y1,
                 int x2,
                 int y2)
Sets the location for start coordinate and end coordinate.

Parameters:
x1 - the start x location
y1 - the start y location
x2 - the end x location
y2 - the end y location

reset

void reset()
Resets the link path.


addPoint

void addPoint(int x,
              int y)
Adds a point to this link.

Parameters:
x - the x coordinate of the point
y - the y coordinate of the point

removePoint

void removePoint(int x,
                 int y)
Removes the point from this link.

Parameters:
x - the x coordinate of the point
y - the y coordinate of the point

getPointX

int getPointX(int index)
Returns the poing x coordinate at the specified index.

Returns:
index the point index

getPointY

int getPointY(int index)
Returns the poing y coordinate at the specified index.

Returns:
index the point index

getPointCount

int getPointCount()
Returns the point count of this link.

Returns:
the point count of this link

getMinPointCount

int getMinPointCount()
Returns the minimum point count of this link.

Returns:
the minimum point count of this link

getMaxPointCount

int getMaxPointCount()
Returns the maximum point count of this link.

Returns:
the maximum point count of this link

JComponentPack 1.5.0

Send your Feedback
JComponentPack 1.5.0
Copyright © 2001-2007 Extreme Component, Inc. All rights reserved.