org.jfree.util
Class FontTable

java.lang.Object
  extended by org.jfree.util.ObjectTable
      extended by org.jfree.util.FontTable
All Implemented Interfaces:
java.io.Serializable

public class FontTable
extends ObjectTable
implements java.io.Serializable

A table of Font objects.

See Also:
Serialized Form

Constructor Summary
FontTable()
          Creates a new font table.
 
Method Summary
 boolean equals(java.lang.Object o)
          Tests this font table for equality with another object (typically also a font table).
 java.awt.Font getFont(int row, int column)
          Returns the Font object from a particular cell in the table.
 void setFont(int row, int column, java.awt.Font font)
          Sets the font for a cell in the table.
 
Methods inherited from class org.jfree.util.ObjectTable
clear, ensureCapacity, ensureRowCapacity, getColumnCount, getColumnIncrement, getObject, getRowCount, getRowIncrement, hashCode, readSerializedData, setObject, writeSerializedData
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FontTable

public FontTable()
Creates a new font table.

Method Detail

getFont

public java.awt.Font getFont(int row,
                             int column)
Returns the Font object from a particular cell in the table.

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

setFont

public void setFont(int row,
                    int column,
                    java.awt.Font font)
Sets the font 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).
font - the font.

equals

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

Overrides:
equals in class ObjectTable
Parameters:
o - the other object.
Returns:
A font.