public class SVGDrawable
extends java.lang.Object
Constructor and Description |
---|
SVGDrawable(GraphicsNode rootNode) |
Modifier and Type | Method and Description |
---|---|
void |
draw(java.awt.Graphics2D g,
java.awt.geom.Rectangle2D area)
Draws the object.
|
java.awt.Dimension |
getPreferredSize()
Returns the preferred size of the drawable.
|
boolean |
isPreserveAspectRatio()
Returns true, if this drawable will preserve an aspect ratio during the
drawing.
|
public java.awt.Dimension getPreferredSize()
public boolean isPreserveAspectRatio()
public void draw(java.awt.Graphics2D g, java.awt.geom.Rectangle2D area)
g
- the graphics device.area
- the area inside which the object should be drawn.