public class HwmfPicture extends java.lang.Object implements java.lang.Iterable<HwmfRecord>, GenericRecord
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_RECORD_LENGTH
Max.
|
static int |
MAX_RECORD_LENGTH |
Constructor and Description |
---|
HwmfPicture(java.io.InputStream inputStream) |
Modifier and Type | Method and Description |
---|---|
void |
draw(java.awt.Graphics2D ctx) |
void |
draw(java.awt.Graphics2D ctx,
java.awt.geom.Rectangle2D graphicsBounds) |
java.awt.geom.Rectangle2D |
getBounds()
Returns the bounding box in device-independent units.
|
java.awt.geom.Rectangle2D |
getBoundsInPoints()
Return the image bound in points
|
java.nio.charset.Charset |
getDefaultCharset() |
java.lang.Iterable<HwmfEmbedded> |
getEmbeddings() |
java.util.List<? extends GenericRecord> |
getGenericChildren() |
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
HwmfHeader |
getHeader() |
java.awt.geom.Rectangle2D |
getInnnerBounds()
Returns the bounding box in device-independent units taken from the WmfSetWindowOrg/Ext records
|
static int |
getMaxRecordLength() |
HwmfPlaceableHeader |
getPlaceableHeader() |
java.util.List<HwmfRecord> |
getRecords() |
java.awt.geom.Dimension2D |
getSize()
Return the image size in points
|
java.util.Iterator<HwmfRecord> |
iterator() |
void |
setDefaultCharset(java.nio.charset.Charset defaultCharset) |
static void |
setMaxRecordLength(int length) |
java.util.Spliterator<HwmfRecord> |
spliterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getGenericRecordType
public static final int DEFAULT_MAX_RECORD_LENGTH
public static int MAX_RECORD_LENGTH
public HwmfPicture(java.io.InputStream inputStream) throws java.io.IOException
inputStream
- The InputStream to read data fromjava.io.IOException
- If reading data from the file failsjava.lang.RuntimeException
- a number of runtime exceptions can be thrown, especially if there are problems with the
input formatpublic static void setMaxRecordLength(int length)
length
- the max record length allowed for HwmfPicturepublic static int getMaxRecordLength()
public java.util.List<HwmfRecord> getRecords()
public void draw(java.awt.Graphics2D ctx)
public void draw(java.awt.Graphics2D ctx, java.awt.geom.Rectangle2D graphicsBounds)
public java.awt.geom.Rectangle2D getBounds()
java.lang.RuntimeException
- if neither WmfSetWindowOrg/Ext nor the placeableHeader are setpublic java.awt.geom.Rectangle2D getInnnerBounds()
public HwmfPlaceableHeader getPlaceableHeader()
public HwmfHeader getHeader()
public java.awt.geom.Rectangle2D getBoundsInPoints()
public java.awt.geom.Dimension2D getSize()
public java.lang.Iterable<HwmfEmbedded> getEmbeddings()
public java.util.Iterator<HwmfRecord> iterator()
iterator
in interface java.lang.Iterable<HwmfRecord>
public java.util.Spliterator<HwmfRecord> spliterator()
spliterator
in interface java.lang.Iterable<HwmfRecord>
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
getGenericProperties
in interface GenericRecord
public java.util.List<? extends GenericRecord> getGenericChildren()
getGenericChildren
in interface GenericRecord
public void setDefaultCharset(java.nio.charset.Charset defaultCharset)
public java.nio.charset.Charset getDefaultCharset()
Copyright 2022 The Apache Software Foundation or its licensors, as applicable.