org.jfree.report.layout
Class LayoutManagerCache

java.lang.Object
  |
  +--org.jfree.report.layout.LayoutManagerCache

public class LayoutManagerCache
extends java.lang.Object

A cache for a band layout manager. This caches element bounds, not elements.

Author:
Thomas Morgner

Constructor Summary
LayoutManagerCache()
          Default constructor.
 
Method Summary
 void flush()
          Flushes the cache.
 void flushDynamicCache()
           
 StrictDimension getMinSize(java.lang.Object e)
          Returns the minimum size of ???.
 StrictDimension getPrefSize(java.lang.Object e)
          Returns the preferred size of ???.
 boolean isCachable(Element e)
          Returns true if the specified element is cachable, and false otherwise.
static void printResults()
          Prints debugging information.
 void setMinSize(Element element, StrictDimension d)
          Sets the minimum size of the element as computed by the layout manager.
 void setPrefSize(Element element, StrictDimension d)
          Sets the preferred size of the element as computed by the layout manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutManagerCache

public LayoutManagerCache()
Default constructor.
Method Detail

getMinSize

public StrictDimension getMinSize(java.lang.Object e)
Returns the minimum size of ???.
Parameters:
e - the layout cache key.
Returns:
The minimum size.

getPrefSize

public StrictDimension getPrefSize(java.lang.Object e)
Returns the preferred size of ???.
Parameters:
e - the layout cache key.
Returns:
The preferred size.

setMinSize

public void setMinSize(Element element,
                       StrictDimension d)
Sets the minimum size of the element as computed by the layout manager.
Parameters:
element - the element.
d - the minimum size.

setPrefSize

public void setPrefSize(Element element,
                        StrictDimension d)
Sets the preferred size of the element as computed by the layout manager.
Parameters:
element - the element.
d - the minimum size.

isCachable

public boolean isCachable(Element e)
Returns true if the specified element is cachable, and false otherwise. If the element itself is dynamic, the element is considered cachable. If the element is a band and contains a dynamic element as its child, it is considered uncachable.
Parameters:
e - the element.
Returns:
A boolean.

flush

public void flush()
Flushes the cache.

flushDynamicCache

public void flushDynamicCache()

printResults

public static void printResults()
Prints debugging information.