Class BasicTreeLayout.TextCacheKey

  • Enclosing class:
    BasicTreeLayout

    protected static class BasicTreeLayout.TextCacheKey
    extends java.lang.Object
    Cache key for cache text bound cache.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.awt.Font font
      Font used to compute bounds.
      protected int hash
      Hash code.
      protected java.lang.String text
      Text string.
    • Constructor Summary

      Constructors 
      Constructor Description
      TextCacheKey​(java.lang.String text, java.awt.Font font)
      Create a cache key for a string rendered in a font.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • text

        protected java.lang.String text
        Text string.
      • font

        protected java.awt.Font font
        Font used to compute bounds.
      • hash

        protected int hash
        Hash code.
    • Constructor Detail

      • TextCacheKey

        public TextCacheKey​(java.lang.String text,
                            java.awt.Font font)
        Create a cache key for a string rendered in a font.
        Parameters:
        text - String for which to cache bounds.
        font - Font of the rendered string.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object