JComponentPack 1.5.0

com.zfqjava.chart
Class XYChart

java.lang.Object
  extended by com.zfqjava.chart.AbstractNode
      extended by com.zfqjava.chart.Chart
          extended by com.zfqjava.chart.BasicChart
              extended by com.zfqjava.chart.XYChart
All Implemented Interfaces:
Node, BasicChartModelListener, Cloneable, EventListener
Direct Known Subclasses:
BarChart, LineChart

public abstract class XYChart
extends BasicChart

XYChart provides a XY chart.


Field Summary
static int HORIZONTAL
          Horizontal orientation.
static int VERTICAL
          Vertical orientation.
 
Fields inherited from class com.zfqjava.chart.Chart
listenerList
 
Constructor Summary
XYChart()
           
XYChart(BasicChartModel model)
           
XYChart(BasicChartModel model, int orientation)
           
 
Method Summary
 void chartChanged(BasicChartModelEvent e)
          Invoked after the category has been changed.
protected  GridNode createGridNode()
          Creates the grid node.
protected  AxisNode createXAxisNode()
          Creates the x axis node.
protected  TextNode createXLabelNode()
          Creates the x label node.
protected  AxisNode createYAxisNode()
          Creates the y axis node.
protected  TextNode createYLabelNode()
          Creates the y label node.
 GridNode getGridNode()
          Returns the grid node.
 int getOrientation()
          Returns the orientation.
 AxisNode getXAxisNode()
          Returns the x axis node.
 String getXLabel()
          Returns the x axis label.
 TextNode getXLabelNode()
          Returns the x label node.
 AxisNode getYAxisNode()
          Returns the y axis node.
 String getYLabel()
          Returns the y axis label.
 TextNode getYLabelNode()
          Returns the y label node.
 void setOrientation(int orientation)
          Sets the orientation.
 void setXLabel(String xlabel)
          Sets the x axis label.
 void setYLabel(String ylabel)
          Sets the y axis label.
 
Methods inherited from class com.zfqjava.chart.BasicChart
addCategory, addCategory, addSeries, addSeries, create, create, createLegendNode, createTitleNode, drawShape, getCategoryCount, getCategoryName, getLegendNode, getModel, getSeriesCount, getSeriesName, getTitle, getTitleNode, getValue, indexOfCategoryName, indexOfSeriesName, removeCategory, removeSeries, setCategoryName, setModel, setSeriesName, setTitle, setValue
 
Methods inherited from class com.zfqjava.chart.Chart
addChartListener, addGroupListener, addLinkListener, addSelection, addSelection, addSelectionListener, cancelEditing, clearSelection, createEditor, createPaintShape, createRenderer, doLayout, findNodeAt, fireNodeAdded, fireNodeGrouped, fireNodeLinked, fireNodeMoved, fireNodeRemoved, fireNodeResized, fireNodeRotated, fireNodeSelected, fireNodeUngrouped, fireNodeUnlinked, fireNodeUnselected, getChartListeners, getContainer, getEditingNode, getEditor, getEditorComponent, getGridHeight, getGridMode, getGridWidth, getGroupList, getGroupListeners, getLinkListeners, getListeners, getPreferredSize, getRenderer, getRenderingHints, getSelectedNode, getSelectionCount, getSelectionList, getSelectionListeners, getTool, group, isEditing, isGridShown, isGridSnaped, isGrouped, isSelected, isSelectionEmpty, moveToBack, moveToFront, paint, paintNodes, paramString, removeChartListener, removeGroupListener, removeLinkListener, removeSelection, removeSelection, removeSelectionListener, repaint, select, selectAll, setContainer, setGridHeight, setGridMode, setGridShown, setGridSize, setGridSnaped, setGridWidth, setRenderingHints, setTool, startEditingAtNode, stopEditing, toBufferedImage, ungroup
 
Methods inherited from class com.zfqjava.chart.AbstractNode
addHandle, addHandle, addLink, addNode, addNode, addNode, addNode, clone, configureShape, configureShape, contains, contains, contains, createHandles, fillShape, 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, removeAllNode, removeHandle, removeHandle, removeLink, removeNode, removeNode, removeNode, 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
 

Field Detail

HORIZONTAL

public static final int HORIZONTAL
Horizontal orientation.

See Also:
Constant Field Values

VERTICAL

public static final int VERTICAL
Vertical orientation.

See Also:
Constant Field Values
Constructor Detail

XYChart

public XYChart()

XYChart

public XYChart(BasicChartModel model)

XYChart

public XYChart(BasicChartModel model,
               int orientation)
Method Detail

chartChanged

public void chartChanged(BasicChartModelEvent e)
Description copied from interface: BasicChartModelListener
Invoked after the category has been changed.

Specified by:
chartChanged in interface BasicChartModelListener
Overrides:
chartChanged in class BasicChart

createXAxisNode

protected AxisNode createXAxisNode()
Creates the x axis node.

Returns:
the x axis node

createYAxisNode

protected AxisNode createYAxisNode()
Creates the y axis node.

Returns:
the y axis node

createXLabelNode

protected TextNode createXLabelNode()
Creates the x label node.

Returns:
the x label node

createYLabelNode

protected TextNode createYLabelNode()
Creates the y label node.

Returns:
the y label node

createGridNode

protected GridNode createGridNode()
Creates the grid node.

Returns:
the grid node

getOrientation

public int getOrientation()
Returns the orientation.
One of 2 legal values:

Returns:
the orientation
See Also:
setOrientation(int)

setOrientation

public void setOrientation(int orientation)
Sets the orientation.
One of 2 legal values:

Parameters:
orientation - the orientation
See Also:
getOrientation()

setXLabel

public void setXLabel(String xlabel)
Sets the x axis label.

Parameters:
xlabel - the x axis label

getXLabel

public String getXLabel()
Returns the x axis label.

Returns:
the x axis label

setYLabel

public void setYLabel(String ylabel)
Sets the y axis label.

Parameters:
ylabel - the y axis label

getYLabel

public String getYLabel()
Returns the y axis label.

Returns:
the y axis label

getXAxisNode

public AxisNode getXAxisNode()
Returns the x axis node.

Returns:
the x axis node

getYAxisNode

public AxisNode getYAxisNode()
Returns the y axis node.

Returns:
the y axis node

getXLabelNode

public TextNode getXLabelNode()
Returns the x label node.

Returns:
the x label node

getYLabelNode

public TextNode getYLabelNode()
Returns the y label node.

Returns:
the y label node

getGridNode

public GridNode getGridNode()
Returns the grid node.

Returns:
the grid node

JComponentPack 1.5.0

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