Package org.apache.poi.hemf.usermodel
Class HemfPicture
java.lang.Object
org.apache.poi.hemf.usermodel.HemfPicture
- All Implemented Interfaces:
Iterable<HemfRecord>,GenericRecord
Read-only EMF extractor. Lots remain
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(Graphics2D ctx, Rectangle2D graphicsBounds) voidforEach(Consumer<? super HemfRecord> action) Returns the bounding box in device-independent units - usually this is in .01 millimeter unitsReturn the image bounds in pointsList<? extends GenericRecord> voidgetInnerBounds(Rectangle2D window, Rectangle2D viewport, Rectangle2D bounds) getSize()Return the image size in pointsiterator()voidsetDefaultCharset(Charset defaultCharset) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.poi.common.usermodel.GenericRecord
getGenericRecordType
-
Constructor Details
-
HemfPicture
-
HemfPicture
-
-
Method Details
-
getHeader
-
getRecords
-
iterator
- Specified by:
iteratorin interfaceIterable<HemfRecord>
-
spliterator
- Specified by:
spliteratorin interfaceIterable<HemfRecord>
-
forEach
- Specified by:
forEachin interfaceIterable<HemfRecord>
-
getBounds
Returns the bounding box in device-independent units - usually this is in .01 millimeter units- Returns:
- the bounding box in device-independent units
-
getInnerBounds
-
getBoundsInPoints
Return the image bounds in points- Returns:
- the image bounds in points
-
getSize
Return the image size in points- Returns:
- the image size in points
-
draw
- Parameters:
ctx- The Graphics-context to draw ongraphicsBounds- A rectangle which describes the bounds for drawing- Throws:
IllegalStateException- if the draw fails
-
getEmbeddings
-
getGenericChildren
- Specified by:
getGenericChildrenin interfaceGenericRecord
-
getGenericProperties
- Specified by:
getGenericPropertiesin interfaceGenericRecord
-
setDefaultCharset
-
getDefaultCharset
-