org.jfree.report.layout
Class LayoutManagerCache

java.lang.Object
  extended byorg.jfree.report.layout.LayoutManagerCache

public class LayoutManagerCache
extends java.lang.Object

A cache for a band layout manager. This caches element bounds, not elements. todo: check how to improve performance or how to reuse the cached objects ...

Author:
Thomas Morgner

Constructor Summary
LayoutManagerCache()
          Default constructor.
 
Method Summary
 void flush()
          Flushes the cache.
 java.awt.geom.Dimension2D getMinSize(LayoutCacheKey e)
          Returns the minimum size of ???.
 java.awt.geom.Dimension2D getPrefSize(LayoutCacheKey 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(LayoutCacheKey key, Element element, java.awt.geom.Dimension2D d)
          Sets the minimum size of ???.
 void setPrefSize(LayoutCacheKey key, Element element, java.awt.geom.Dimension2D d)
          Sets the preferred size of ???.
 
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 java.awt.geom.Dimension2D getMinSize(LayoutCacheKey e)
Returns the minimum size of ???.

Parameters:
e - the layout cache key.
Returns:
The minimum size.

getPrefSize

public java.awt.geom.Dimension2D getPrefSize(LayoutCacheKey e)
Returns the preferred size of ???.

Parameters:
e - the layout cache key.
Returns:
The preferred size.

setMinSize

public void setMinSize(LayoutCacheKey key,
                       Element element,
                       java.awt.geom.Dimension2D d)
Sets the minimum size of ???.

Parameters:
key - the key.
element - the element.
d - the minimum size.

setPrefSize

public void setPrefSize(LayoutCacheKey key,
                        Element element,
                        java.awt.geom.Dimension2D d)
Sets the preferred size of ???.

Parameters:
key - the key.
element - the element.
d - the minimum size.

isCachable

public boolean isCachable(Element e)
Returns true if the specified element is cachable, and false otherwise.

Parameters:
e - the element.
Returns:
A boolean.

flush

public void flush()
Flushes the cache.


printResults

public static void printResults()
Prints debugging information.