return wmf.getSize().getDimensionMpt();
}
/** {@inheritDoc} */
public void paint(Graphics2D g2d, Rectangle2D area) {
WMFRecordStore wmfStore = wmf.getRecordStore();
double w = area.getWidth();
double h = area.getHeight();
//Fit in paint area
g2d.translate(area.getX(), area.getY());
double sx = w / wmfStore.getWidthPixels();
double sy = h / wmfStore.getHeightPixels();
if (sx != 1.0 || sy != 1.0) {
g2d.scale(sx, sy);
}
WMFPainter painter = new WMFPainter(wmfStore, 1.0f);