org.jfree.report.layout
Class LayoutCacheKey

java.lang.Object
  extended byorg.jfree.report.layout.LayoutCacheKey
Direct Known Subclasses:
LayoutSearchKey

public class LayoutCacheKey
extends java.lang.Object

A layout cache key. Does not expect subclasses except the search key class. Dont try to subclass this class (or be doomed once again).

Author:
Thomas Morgner

Constructor Summary
protected LayoutCacheKey()
          Default constructor.
  LayoutCacheKey(Element e, java.awt.geom.Dimension2D parentDim)
          Creates a new key.
 
Method Summary
 boolean equals(java.lang.Object o)
          Tests this object for equality with another object.
 java.awt.geom.Dimension2D getParentDim()
          Returns the parent dimensions.
 int hashCode()
          Returns a hash code.
 boolean isSearchKey()
          Returns true if this is a search key, and false otherwise.
protected  void setElement(Element e)
          Sets the element.
protected  void setParentDim(java.awt.geom.Dimension2D parentDim)
          Sets the parent dimensions.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutCacheKey

protected LayoutCacheKey()
Default constructor.


LayoutCacheKey

public LayoutCacheKey(Element e,
                      java.awt.geom.Dimension2D parentDim)
Creates a new key.

Parameters:
e - the element.
parentDim - the parent dimensions.
Method Detail

isSearchKey

public boolean isSearchKey()
Returns true if this is a search key, and false otherwise.

Returns:
A boolean.

setElement

protected void setElement(Element e)
Sets the element.

Parameters:
e - the element.

setParentDim

protected void setParentDim(java.awt.geom.Dimension2D parentDim)
Sets the parent dimensions.

Parameters:
parentDim - the parent dimensions.

getParentDim

public java.awt.geom.Dimension2D getParentDim()
Returns the parent dimensions.

Returns:
The parent dimensions.

equals

public final boolean equals(java.lang.Object o)
Tests this object for equality with another object.

Parameters:
o - the other object.
Returns:
A boolean.

hashCode

public final int hashCode()
Returns a hash code.

Returns:
A hash code.