Class AWTGlyphGeometryCache


  • public class AWTGlyphGeometryCache
    extends java.lang.Object
    This class represents a doubly indexed hash table, which holds soft references to the contained glyph geometry informations.
    Version:
    $Id: AWTGlyphGeometryCache.java 1733416 2016-03-03 07:07:13Z gadams $
    • Field Detail

      • INITIAL_CAPACITY

        protected static final int INITIAL_CAPACITY
        The initial capacity
        See Also:
        Constant Field Values
      • count

        protected int count
        The number of entries
      • referenceQueue

        protected java.lang.ref.ReferenceQueue referenceQueue
        The reference queue.
    • Constructor Detail

      • AWTGlyphGeometryCache

        public AWTGlyphGeometryCache()
        Creates a new AWTGlyphGeometryCache.
      • AWTGlyphGeometryCache

        public AWTGlyphGeometryCache​(int c)
        Creates a new AWTGlyphGeometryCache.
        Parameters:
        c - The inital capacity.
    • Method Detail

      • size

        public int size()
        Returns the size of this table.
      • clear

        public void clear()
        Clears the table.
      • rehash

        protected void rehash()
        Rehash the table
      • hashCode

        protected int hashCode​(char c)
        Computes a hash code corresponding to the given objects.
      • removeClearedEntries

        protected void removeClearedEntries()
        Removes the cleared entries.