org.jfree.chart.renderer
Class ShapeTable

java.lang.Object
  |
  +--org.jfree.chart.renderer.ShapeTable
All Implemented Interfaces:
java.io.Serializable

public class ShapeTable
extends java.lang.Object
implements java.io.Serializable

A lookup table for Shape objects.

Author:
David Gilbert
See Also:
Serialized Form

Constructor Summary
ShapeTable()
          Creates a new shape table.
 
Method Summary
 boolean equals(java.lang.Object o)
          Tests this shape table for equality with another object (typically also a shape table).
 int getColumnCount()
          Returns the number of columns in the table.
 int getRowCount()
          Returns the number of rows in the table.
 java.awt.Shape getShape(int row, int column)
          Returns the shape object from a particular cell in the table.
 void setShape(int row, int column, java.awt.Shape shape)
          Sets the shape for an item.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShapeTable

public ShapeTable()
Creates a new shape table.

Method Detail

getRowCount

public int getRowCount()
Returns the number of rows in the table.

Returns:
The row count.

getColumnCount

public int getColumnCount()
Returns the number of columns in the table.

Returns:
The column count.

getShape

public java.awt.Shape getShape(int row,
                               int column)
Returns the shape object from a particular cell in the table.

Parameters:
row - the row index (zero-based).
column - the column index (zero-based).
Returns:
The shape.

setShape

public void setShape(int row,
                     int column,
                     java.awt.Shape shape)
Sets the shape for an item.

Parameters:
row - the row index (zero-based).
column - the column index (zero-based).
shape - the shape.

equals

public boolean equals(java.lang.Object o)
Tests this shape table for equality with another object (typically also a shape table).

Overrides:
equals in class java.lang.Object
Parameters:
o - the other object.
Returns:
A boolean.