@Internal public class HemfPicture extends Object implements Iterable<HemfRecord>, GenericRecord
| Constructor and Description |
|---|
HemfPicture(InputStream is) |
HemfPicture(LittleEndianInputStream is) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(Graphics2D ctx,
Rectangle2D graphicsBounds) |
void |
forEach(Consumer<? super HemfRecord> action) |
Rectangle2D |
getBounds()
Returns the bounding box in device-independent units - usually this is in .01 millimeter units
|
Rectangle2D |
getBoundsInPoints()
Return the image bounds in points
|
Charset |
getDefaultCharset() |
Iterable<HwmfEmbedded> |
getEmbeddings() |
List<? extends GenericRecord> |
getGenericChildren() |
Map<String,Supplier<?>> |
getGenericProperties() |
HemfHeader |
getHeader() |
void |
getInnerBounds(Rectangle2D window,
Rectangle2D viewport,
Rectangle2D bounds) |
List<HemfRecord> |
getRecords() |
Dimension2D |
getSize()
Return the image size in points
|
Iterator<HemfRecord> |
iterator() |
void |
setDefaultCharset(Charset defaultCharset) |
Spliterator<HemfRecord> |
spliterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetGenericRecordTypepublic HemfPicture(InputStream is)
public HemfPicture(LittleEndianInputStream is)
public HemfHeader getHeader()
public List<HemfRecord> getRecords()
public Iterator<HemfRecord> iterator()
iterator in interface Iterable<HemfRecord>public Spliterator<HemfRecord> spliterator()
spliterator in interface Iterable<HemfRecord>public void forEach(Consumer<? super HemfRecord> action)
forEach in interface Iterable<HemfRecord>public Rectangle2D getBounds()
public void getInnerBounds(Rectangle2D window, Rectangle2D viewport, Rectangle2D bounds)
public Rectangle2D getBoundsInPoints()
public Dimension2D getSize()
public void draw(Graphics2D ctx, Rectangle2D graphicsBounds)
ctx - The Graphics-context to draw ongraphicsBounds - A rectangle which describes the bounds
for drawingIllegalStateException - if the draw failspublic Iterable<HwmfEmbedded> getEmbeddings()
public List<? extends GenericRecord> getGenericChildren()
getGenericChildren in interface GenericRecordpublic Map<String,Supplier<?>> getGenericProperties()
getGenericProperties in interface GenericRecordpublic void setDefaultCharset(Charset defaultCharset)
public Charset getDefaultCharset()