public class SVGDrawable extends Object
Constructor and Description |
---|
SVGDrawable(GraphicsNode rootNode) |
Modifier and Type | Method and Description |
---|---|
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.
|
public Dimension getPreferredSize()
public boolean isPreserveAspectRatio()
public void draw(Graphics2D g, Rectangle2D area)
g
- the graphics device.area
- the area inside which the object should be drawn.