irc
Class SmileyTable

java.lang.Object
  |
  +--irc.SmileyTable

public class SmileyTable
extends java.lang.Object

Smiley table.


Constructor Summary
SmileyTable()
          Create a new, empty, smiley table.
 
Method Summary
 void addSmiley(java.lang.String match, java.awt.Image img)
          Add a smiley in the table.
 java.awt.Image getImage(int index)
          Get the i'th image in the smiley table.
 java.lang.String getMatch(int index)
          Get the i'th match in the smiley table.
 int getSize()
          Get the smileys count.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmileyTable

public SmileyTable()
Create a new, empty, smiley table.

Method Detail

addSmiley

public void addSmiley(java.lang.String match,
                      java.awt.Image img)
Add a smiley in the table.

Parameters:
match - the macthing text.
img - image of the smiley.

getSize

public int getSize()
Get the smileys count.

Returns:
the amount of smileys in the table.

getMatch

public java.lang.String getMatch(int index)
Get the i'th match in the smiley table.

Parameters:
index - table index.
Returns:
i'th smiley match.

getImage

public java.awt.Image getImage(int index)
Get the i'th image in the smiley table.

Parameters:
index - table index.
Returns:
i'th image.