org.apache.batik.gvt.font
public class AWTGlyphGeometryCache extends Object
Nested Class Summary | |
---|---|
protected class | AWTGlyphGeometryCache.Entry
To manage collisions |
static class | AWTGlyphGeometryCache.Value
The object that holds glyph geometry. |
Field Summary | |
---|---|
protected int | count
The number of entries |
protected static int | INITIAL_CAPACITY
The initial capacity |
protected ReferenceQueue | referenceQueue
The reference queue. |
protected AWTGlyphGeometryCache.Entry[] | table
The underlying array |
Constructor Summary | |
---|---|
AWTGlyphGeometryCache()
Creates a new AWTGlyphGeometryCache. | |
AWTGlyphGeometryCache(int c)
Creates a new AWTGlyphGeometryCache. |
Method Summary | |
---|---|
void | clear()
Clears the table. |
AWTGlyphGeometryCache.Value | get(char c)
Gets the value of a variable |
protected int | hashCode(char c)
Computes a hash code corresponding to the given objects. |
AWTGlyphGeometryCache.Value | put(char c, AWTGlyphGeometryCache.Value value)
Sets a new value for the given variable |
protected void | rehash()
Rehash the table |
protected void | removeClearedEntries()
Removes the cleared entries. |
int | size()
Returns the size of this table. |
Parameters: c The inital capacity.
Returns: the value or null
Returns: the old value or null