org.jfree.report
Class DrawableContainer

java.lang.Object
  extended byorg.jfree.report.DrawableContainer

public class DrawableContainer
extends java.lang.Object

Wrapper for the drawable object, assigns content bounds and clipping bounds to the drawable.

The drawable dimensions define the size of the whole drawable object. These dimensions are logical anchors to define a logical coordinate space for the content bounds.

The clipping bounds define the clipping area of the drawable object.

Author:
Thomas Morgner

Constructor Summary
DrawableContainer(DrawableContainer container, java.awt.geom.Rectangle2D clippingBounds)
          Creates a new container.
DrawableContainer(org.jfree.ui.Drawable drawable, java.awt.geom.Dimension2D drawableSize, java.awt.geom.Rectangle2D clippingBounds)
          Creates a new container.
 
Method Summary
 java.awt.geom.Rectangle2D getClippingBounds()
          Returns the clipping bounds.
 org.jfree.ui.Drawable getDrawable()
          Returns the drawable object.
 java.awt.geom.Dimension2D getDrawableSize()
          Returns the drawable size.
 void setClippingBounds(java.awt.geom.Rectangle2D clippingBounds)
          Sets the clipping bounds.
 void setDrawableSize(java.awt.geom.Dimension2D drawableSize)
          Sets the drawable size.
 java.lang.String toString()
          Returns a string representation of this object (useful for debugging).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DrawableContainer

public DrawableContainer(DrawableContainer container,
                         java.awt.geom.Rectangle2D clippingBounds)
Creates a new container.

Parameters:
container - the container.
clippingBounds - the clipping bounds.

DrawableContainer

public DrawableContainer(org.jfree.ui.Drawable drawable,
                         java.awt.geom.Dimension2D drawableSize,
                         java.awt.geom.Rectangle2D clippingBounds)
Creates a new container.

Parameters:
drawable - the drawable object.
drawableSize - the size.
clippingBounds - the clipping region.
Method Detail

getDrawable

public org.jfree.ui.Drawable getDrawable()
Returns the drawable object.

Returns:
The drawable object.

getDrawableSize

public java.awt.geom.Dimension2D getDrawableSize()
Returns the drawable size.

Returns:
The size.

setDrawableSize

public void setDrawableSize(java.awt.geom.Dimension2D drawableSize)
Sets the drawable size.

Parameters:
drawableSize - the drawable size.

getClippingBounds

public java.awt.geom.Rectangle2D getClippingBounds()
Returns the clipping bounds.

Returns:
The clipping bounds.

setClippingBounds

public void setClippingBounds(java.awt.geom.Rectangle2D clippingBounds)
Sets the clipping bounds.

Parameters:
clippingBounds - the clipping bounds.

toString

public java.lang.String toString()
Returns a string representation of this object (useful for debugging).

Returns:
A string.