public class HwmfPicture extends Object implements 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(InputStream inputStream) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(Graphics2D ctx) |
void |
draw(Graphics2D ctx,
Rectangle2D graphicsBounds) |
Rectangle2D |
getBounds()
Returns the bounding box in device-independent units.
|
Rectangle2D |
getBoundsInPoints()
Return the image bound in points
|
Charset |
getDefaultCharset() |
Iterable<HwmfEmbedded> |
getEmbeddings() |
List<? extends GenericRecord> |
getGenericChildren() |
Map<String,Supplier<?>> |
getGenericProperties() |
HwmfHeader |
getHeader() |
Rectangle2D |
getInnnerBounds()
Returns the bounding box in device-independent units taken from the WmfSetWindowOrg/Ext records
|
static int |
getMaxRecordLength() |
HwmfPlaceableHeader |
getPlaceableHeader() |
List<HwmfRecord> |
getRecords() |
Dimension2D |
getSize()
Return the image size in points
|
Iterator<HwmfRecord> |
iterator() |
void |
setDefaultCharset(Charset defaultCharset) |
static void |
setMaxRecordLength(int length) |
Spliterator<HwmfRecord> |
spliterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetGenericRecordTypepublic static final int DEFAULT_MAX_RECORD_LENGTH
public static int MAX_RECORD_LENGTH
public HwmfPicture(InputStream inputStream) throws IOException
inputStream - The InputStream to read data fromIOException - If reading data from the file failsIllegalStateException - 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 List<HwmfRecord> getRecords()
public void draw(Graphics2D ctx)
public void draw(Graphics2D ctx, Rectangle2D graphicsBounds)
public Rectangle2D getBounds()
IllegalStateException - if neither WmfSetWindowOrg/Ext nor the placeableHeader are setpublic Rectangle2D getInnnerBounds()
public HwmfPlaceableHeader getPlaceableHeader()
public HwmfHeader getHeader()
public Rectangle2D getBoundsInPoints()
public Dimension2D getSize()
public Iterable<HwmfEmbedded> getEmbeddings()
public Iterator<HwmfRecord> iterator()
iterator in interface Iterable<HwmfRecord>public Spliterator<HwmfRecord> spliterator()
spliterator in interface Iterable<HwmfRecord>public Map<String,Supplier<?>> getGenericProperties()
getGenericProperties in interface GenericRecordpublic List<? extends GenericRecord> getGenericChildren()
getGenericChildren in interface GenericRecordpublic void setDefaultCharset(Charset defaultCharset)
public Charset getDefaultCharset()