NASA World Wind

gov.nasa.worldwind.util.tree
Class BasicTreeLayout.TextCacheKey

java.lang.Object
  extended by gov.nasa.worldwind.util.tree.BasicTreeLayout.TextCacheKey
Enclosing class:
BasicTreeLayout

protected static class BasicTreeLayout.TextCacheKey
extends Object

Cache key for cache text bound cache.


Field Summary
protected  Font font
          Font used to compute bounds.
protected  int hash
          Hash code.
protected  String text
          Text string.
 
Constructor Summary
BasicTreeLayout.TextCacheKey(String text, Font font)
          Create a cache key for a string rendered in a font.
 
Method Summary
 boolean equals(Object o)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

font

protected Font font
Font used to compute bounds.


hash

protected int hash
Hash code.


text

protected String text
Text string.

Constructor Detail

BasicTreeLayout.TextCacheKey

public BasicTreeLayout.TextCacheKey(String text,
                                    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(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

NASA World Wind