public class HwmfPicture extends java.lang.Object implements java.lang.Iterable<HwmfRecord>, GenericRecord
Modifier and Type | Field and Description |
---|---|
static int |
MAX_RECORD_LENGTH
Max.
(最大限度。)
|
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
(返回取自 WmfSetWindowOrg/Ext 记录的与设备无关的边界框)
|
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) |
java.util.Spliterator<HwmfRecord> |
spliterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getGenericRecordType
public static final int MAX_RECORD_LENGTH
public HwmfPicture(java.io.InputStream inputStream) throws java.io.IOException
java.io.IOException
(java.io.IOException)
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 set
(java.lang.RuntimeException - 如果 WmfSetWindowOrg/Ext 和 placeableHeader 均未设置)
public 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>
(接口 java.lang.Iterable 中的迭代器
public java.util.Spliterator<HwmfRecord> spliterator()
spliterator
in interface
java.lang.Iterable<HwmfRecord>
(接口 java.lang.Iterable 中的拆分器
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
getGenericProperties
in interface
GenericRecord
(接口 GenericRecord 中的 getGenericProperties)
public java.util.List<? extends GenericRecord> getGenericChildren()
getGenericChildren
in interface
GenericRecord
(接口 GenericRecord 中的 getGenericChildren)
public void setDefaultCharset(java.nio.charset.Charset defaultCharset)
public java.nio.charset.Charset getDefaultCharset()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.