java.io.Serializable
, ImageData
public class AWTImageData extends java.lang.Object implements ImageData
Constructor | Description |
---|---|
AWTImageData(org.pentaho.reporting.libraries.resourceloader.Resource source,
java.awt.Image image) |
Modifier and Type | Method | Description |
---|---|---|
void |
draw(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D area) |
Draws the object.
|
long |
getHeight() |
Returns the height of the image in micro-dots.
|
java.awt.Dimension |
getPreferredSize() |
Returns the preferred size of the drawable.
|
org.pentaho.reporting.libraries.resourceloader.Resource |
getSource() |
Returns the resource definition that was used to load the image.
|
long |
getWidth() |
Returns the width of the image in micro-dots.
|
boolean |
isPreserveAspectRatio() |
Returns true, if this drawable will preserve an aspect ratio during the
drawing.
|
public AWTImageData(org.pentaho.reporting.libraries.resourceloader.Resource source, java.awt.Image image)
public org.pentaho.reporting.libraries.resourceloader.Resource getSource()
public long getWidth()
ImageData
public long getHeight()
ImageData
public java.awt.Dimension getPreferredSize()
public boolean isPreserveAspectRatio()