JComponentPack 1.3.0

com.zfqjava.chart
Class LegendNode

java.lang.Object
  extended by com.zfqjava.chart.AbstractNode
      extended by com.zfqjava.chart.LegendNode
All Implemented Interfaces:
Node, Cloneable

public class LegendNode
extends AbstractNode

LegendNode provides a legend node.


Constructor Summary
LegendNode()
           
 
Method Summary
 void addLegend(String name)
           
 void addLegend(String name, int index)
           
protected  Node createIconNode()
           
protected  Shape createPaintShape()
          Creates the paint shape.
protected  TextNode createTextNode()
           
 void doLayout()
          Layout the children nodes.
 Node getIconNode(int index)
           
 int getLegendCount()
           
 Dimension getPreferredSize()
          Returns the preferred size of this node.
 TextNode getTextNode(int index)
           
 int indexOfLegend(String name)
           
 void removeLegend(int index)
           
 
Methods inherited from class com.zfqjava.chart.AbstractNode
addHandle, addHandle, addLink, addNode, addNode, addNode, addNode, clone, configureShape, configureShape, contains, contains, contains, createHandles, drawShape, 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, 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, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LegendNode

public LegendNode()
Method Detail

createPaintShape

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

Overrides:
createPaintShape in class AbstractNode
Returns:
the paint shape

addLegend

public void addLegend(String name)

addLegend

public void addLegend(String name,
                      int index)

createTextNode

protected TextNode createTextNode()

createIconNode

protected Node createIconNode()

removeLegend

public void removeLegend(int index)

indexOfLegend

public int indexOfLegend(String name)

getLegendCount

public int getLegendCount()

getTextNode

public TextNode getTextNode(int index)

getIconNode

public Node getIconNode(int index)

getPreferredSize

public Dimension getPreferredSize()
Description copied from interface: Node
Returns the preferred size of this node.

Specified by:
getPreferredSize in interface Node
Overrides:
getPreferredSize in class AbstractNode
Returns:
the node preferred size

doLayout

public void doLayout()
Description copied from interface: Node
Layout the children nodes.

Specified by:
doLayout in interface Node
Overrides:
doLayout in class AbstractNode

JComponentPack 1.3.0

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