org.apache.batik.transcoder.wmf.tosvg
public class WMFHeaderProperties extends AbstractWMFReader
Field Summary | |
---|---|
static int | BRUSH |
static int | FONT |
static int | NULL_BRUSH |
static int | NULL_PEN |
static int | OBJ_BITMAP |
static int | OBJ_REGION |
static int | PALETTE |
static int | PEN |
protected DataInputStream | stream |
Constructor Summary | |
---|---|
WMFHeaderProperties(File wmffile) Creates a new WMFHeaderProperties, and sets the associated WMF File. | |
WMFHeaderProperties() Creates a new WMFHeaderProperties, with no associated file. |
Method Summary | |
---|---|
void | closeResource() |
int | getHeightBoundsPixels() |
int | getHeightBoundsUnits() |
DataInputStream | getStream() Get the associated stream. |
int | getWidthBoundsPixels() |
int | getWidthBoundsUnits() |
int | getXOffset() |
int | getYOffset() |
protected boolean | readRecords(DataInputStream is) |
void | reset()
Resets the internal storage and viewport coordinates. |
void | setFile(File wmffile) Creates the properties associated file. |
Parameters: wmffile the WMF Metafile
Returns: the height of the Rectangle bounding the figures enclosed in the Metafile, in pixels.
Returns: the height of the Rectangle bounding the figures enclosed in the Metafile in Metafile Units.
Returns: the width of the Rectangle bounding the figures enclosed in the Metafile, in pixels
Returns: the width of the Rectangle bounding the figures enclosed in the Metafile, in Metafile Units.
Returns: the X offset of the Rectangle bounding the figures enclosed in the Metafile.
Returns: the Y offset of the Rectangle bounding the figures enclosed in the Metafile.