org.jfree.chart.renderer
Class PaintTable

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

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

A lookup table for Paint objects.

Author:
David Gilbert
See Also:
Serialized Form

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

Constructor Detail

PaintTable

public PaintTable()
Creates a new paint 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.

getPaint

public java.awt.Paint getPaint(int row,
                               int column)
Returns the paint object from a particular cell in the table.

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

setPaint

public void setPaint(int row,
                     int column,
                     java.awt.Paint paint)
Sets the paint for a cell in the table. The table is expanded if necessary.

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

equals

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

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