JComponentPack 1.3.0

com.zfqjava.chart
Class GridNode

java.lang.Object
  extended by com.zfqjava.chart.AbstractNode
      extended by com.zfqjava.chart.GridNode
All Implemented Interfaces:
Node, Cloneable
Direct Known Subclasses:
WallNode

public class GridNode
extends AbstractNode

GridNode provides a Grid ndoe. GridNode is immutable.


Constructor Summary
GridNode()
          Constructs a Grid node.
GridNode(GridMode gridMode)
          Constructs a Grid node.
 
Method Summary
protected  Shape createPaintShape()
          Creates the paint shape.
protected  void drawShape(Graphics2D g, Shape s)
           
 int getGridHeight()
          Returns the grid height.
 GridMode getGridMode()
          Returns the grid mode for this grid node.
 int getGridWidth()
          Returns the grid width.
 int getOriginX()
          Returns the origin x coordinate.
 int getOriginY()
          Returns the origin y coordinate.
 void setGridHeight(int gridHeight)
          Sets the grid height.
 void setGridMode(GridMode gridMode)
          Sets the grid mode for this grid node.
 void setGridSize(int gridWidth, int gridHeight)
          Sets the grid size for this grid node.
 void setGridWidth(int gridWidth)
          Sets the grid width.
 void setOriginLocation(int x, int y)
          Sets the origin coordinate.
 
Methods inherited from class com.zfqjava.chart.AbstractNode
addHandle, addHandle, addLink, addNode, addNode, addNode, addNode, clone, configureShape, configureShape, contains, contains, contains, createHandles, doLayout, 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, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GridNode

public GridNode()
Constructs a Grid node.


GridNode

public GridNode(GridMode gridMode)
Constructs a Grid node.

Method Detail

createPaintShape

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

Overrides:
createPaintShape in class AbstractNode
Returns:
the paint shape

setOriginLocation

public void setOriginLocation(int x,
                              int y)
Sets the origin coordinate.

Parameters:
x - the the origin x coordinate
y - the the origin y coordinate

getOriginX

public int getOriginX()
Returns the origin x coordinate.

Returns:
the origin x coordinate

getOriginY

public int getOriginY()
Returns the origin y coordinate.

Returns:
the origin y coordinate

setGridMode

public void setGridMode(GridMode gridMode)
Sets the grid mode for this grid node.

Parameters:
gridMode - the grid mode
See Also:
getGridMode()

getGridMode

public GridMode getGridMode()
Returns the grid mode for this grid node.

Returns:
the grid mode for this grid node
See Also:
setGridMode(com.zfqjava.chart.GridMode)

setGridSize

public void setGridSize(int gridWidth,
                        int gridHeight)
Sets the grid size for this grid node.

Parameters:
gridWidth - the grid width
gridHeight - the grid height

setGridWidth

public void setGridWidth(int gridWidth)
Sets the grid width.

Parameters:
gridWidth - the grid width
See Also:
getGridWidth()

getGridWidth

public int getGridWidth()
Returns the grid width.

Returns:
the grid width
See Also:
setGridWidth(int)

setGridHeight

public void setGridHeight(int gridHeight)
Sets the grid height.

Parameters:
gridHeight - the grid height
See Also:
getGridHeight()

getGridHeight

public int getGridHeight()
Returns the grid height.

Returns:
the grid height
See Also:
setGridHeight(int)

drawShape

protected void drawShape(Graphics2D g,
                         Shape s)
Overrides:
drawShape in class AbstractNode

JComponentPack 1.3.0

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