com.borland.primetime.editor
Class MasterStyleContext.FontKey

java.lang.Object
  |
  +--com.borland.primetime.editor.MasterStyleContext.FontKey
Enclosing class:
MasterStyleContext

public static class MasterStyleContext.FontKey
extends java.lang.Object

key for a font table

Note: This code was taken from javax.swing.text.StyleContext because it isn't accessible there.


Constructor Summary
MasterStyleContext.FontKey(java.lang.String family, int style, int size)
          Constructs a font key.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compares this object to the specifed object.
 int hashCode()
          Returns a hashcode for this font.
 void setValue(java.lang.String family, int style, int size)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MasterStyleContext.FontKey

public MasterStyleContext.FontKey(java.lang.String family,
                                  int style,
                                  int size)
Constructs a font key.
Method Detail

setValue

public void setValue(java.lang.String family,
                     int style,
                     int size)

hashCode

public int hashCode()
Returns a hashcode for this font.
Overrides:
hashCode in class java.lang.Object
Returns:
a hashcode value for this font.

equals

public boolean equals(java.lang.Object obj)
Compares this object to the specifed object. The result is true if and only if the argument is not null and is a Font object with the same name, style, and point size as this font.
Overrides:
equals in class java.lang.Object
Parameters:
obj - the object to compare this font with.
Returns:
true if the objects are equal; false otherwise.