JComponentPack 1.5.0

com.zfqjava.chart.geom
Class PolygonNode

java.lang.Object
  extended by com.zfqjava.chart.AbstractNode
      extended by com.zfqjava.chart.AbstractLink
          extended by com.zfqjava.chart.geom.PolygonNode
All Implemented Interfaces:
Link, Node, Cloneable

public class PolygonNode
extends AbstractLink

PolygonNode provides a rectangle node.


Constructor Summary
PolygonNode()
           
 
Method Summary
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  Shape createPaintShape()
          Creates the paint shape.
 int getMaxPointCount()
          Returns the maximum point count of this link.
 
Methods inherited from class com.zfqjava.chart.AbstractLink
addArrow, addPoint, configureLinkShape, configureLinkShape, createHandles, doLayout, drawShape, getArrowCount, getArrowList, getEndArrow, getEndNode, getEndX, getEndY, getMinPointCount, getPointCount, getPointX, getPointY, getStartArrow, getStartNode, getStartX, getStartY, removeArrow, removePoint, reset, setEndArrow, setEndLocation, setEndNode, setLocation, setStartArrow, setStartLocation, setStartNode, toString
 
Methods inherited from class com.zfqjava.chart.AbstractNode
addHandle, addHandle, addLink, addNode, addNode, addNode, addNode, clone, configureShape, configureShape, contains, contains, contains, fillShape, 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, getPaintShape, 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, paintNodes, paramString, 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, setPaintShape, setPreferredSize, setResizable, setRotatable, setSelectable, setShadowable, setShadowComposite, setShadowPaint, setShadowTransform, setSize, setStroke, setToolTipText, setTransform, setUserObject, setVisible
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.zfqjava.chart.Node
addHandle, addHandle, addLink, addNode, addNode, addNode, addNode, contains, contains, contains, 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
 

Constructor Detail

PolygonNode

public PolygonNode()
Method Detail

createPaintShape

protected Shape createPaintShape()
Description copied from class: AbstractNode
Creates the paint shape.

Overrides:
createPaintShape in class AbstractNode
Returns:
the paint shape

configureLinkShape

protected void configureLinkShape(Shape s,
                                  int x1,
                                  int y1,
                                  int x2,
                                  int y2)
Description copied from class: AbstractLink
Configure the shape when the link's location has been changed.

Overrides:
configureLinkShape in class AbstractLink
Parameters:
s - the paint shape of this link.
x1 - the start x location
y1 - the start y location
x2 - the end x location
y2 - the end y location

getMaxPointCount

public int getMaxPointCount()
Description copied from interface: Link
Returns the maximum point count of this link.

Specified by:
getMaxPointCount in interface Link
Overrides:
getMaxPointCount in class AbstractLink
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.