org.jfree.chart.renderer
Class StrokeTable

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

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

A lookup table for Stroke objects.

Author:
David Gilbert
See Also:
Serialized Form

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

Constructor Detail

StrokeTable

public StrokeTable()
Creates a new stroke 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.

getStroke

public java.awt.Stroke getStroke(int row,
                                 int column)
Returns the stroke object from a particular cell in the table.

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

setStroke

public void setStroke(int row,
                      int column,
                      java.awt.Stroke stroke)
Sets the stroke for an item.

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

equals

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

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