org.pentaho.reporting.libraries.resourceloader.modules.factory.svg
Class SVGDrawable

java.lang.Object
  extended by org.pentaho.reporting.libraries.resourceloader.modules.factory.svg.SVGDrawable

public class SVGDrawable
extends Object

Creation-Date: 21.12.2005, 20:25:29

Author:
Thomas Morgner

Constructor Summary
SVGDrawable(GraphicsNode rootNode)
           
 
Method Summary
 void draw(Graphics2D g, Rectangle2D area)
          Draws the object.
 Dimension getPreferredSize()
          Returns the preferred size of the drawable.
 boolean isPreserveAspectRatio()
          Returns true, if this drawable will preserve an aspect ratio during the drawing.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SVGDrawable

public SVGDrawable(GraphicsNode rootNode)
Method Detail

getPreferredSize

public Dimension getPreferredSize()
Returns the preferred size of the drawable. If the drawable is aspect ratio aware, these bounds should be used to compute the preferred aspect ratio for this drawable.

Returns:
the preferred size.

isPreserveAspectRatio

public boolean isPreserveAspectRatio()
Returns true, if this drawable will preserve an aspect ratio during the drawing.

Returns:
true, if an aspect ratio is preserved, false otherwise.

draw

public void draw(Graphics2D g,
                 Rectangle2D area)
Draws the object.

Parameters:
g - the graphics device.
area - the area inside which the object should be drawn.