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) static intgetSize()Return the image size in pointsiterator()static voidsafelyAllocateCheck(long length) voidsetDefaultCharset(Charset defaultCharset) static voidsetMaxRecordLength(int length) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.poi.common.usermodel.GenericRecord
getGenericRecordType
-
Constructor Details
-
HemfPicture
-
HemfPicture
-
-
Method Details
-
setMaxRecordLength
public static void setMaxRecordLength(int length) - Parameters:
length- the max record length allowed for HemfPicture- Since:
- 2.0.0
-
getMaxRecordLength
public static int getMaxRecordLength()- Returns:
- the max record length allowed for HemfPicture
- Since:
- 2.0.0
-
safelyAllocateCheck
public static void safelyAllocateCheck(long length) -
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
-