public static class HemfDraw.EmfPolygon extends HwmfDraw.WmfPolygon implements HemfRecord
HemfRecord.RenderBounds
poly
Constructor and Description |
---|
EmfPolygon() |
Modifier and Type | Method and Description |
---|---|
void |
calcBounds(HemfRecord.RenderBounds holder) |
void |
draw(HemfGraphics ctx)
Draws the record, the default redirects to the parent WMF record drawing
|
java.awt.geom.Rectangle2D |
getBounds() |
HemfRecordType |
getEmfRecordType() |
protected HwmfGraphics.FillDrawStyle |
getFillDrawStyle() |
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
HemfRecordType |
getGenericRecordType() |
protected boolean |
hasStartPoint() |
long |
init(LittleEndianInputStream leis,
long recordSize,
long recordId)
Init record from stream
|
protected long |
readPoint(LittleEndianInputStream leis,
java.awt.geom.Point2D point) |
addClose, draw, getPoly, getWmfRecordType, init, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setHeader
getGenericChildren
public HemfRecordType getEmfRecordType()
getEmfRecordType
in interface HemfRecord
protected long readPoint(LittleEndianInputStream leis, java.awt.geom.Point2D point)
public long init(LittleEndianInputStream leis, long recordSize, long recordId) throws java.io.IOException
HemfRecord
init
in interface HemfRecord
leis
- the little endian input streamrecordSize
- the size limit for this recordrecordId
- the id of the HemfRecordType
java.io.IOException
- when the inputstream is malformedprotected boolean hasStartPoint()
protected HwmfGraphics.FillDrawStyle getFillDrawStyle()
getFillDrawStyle
in class HwmfDraw.WmfPolygon
public void draw(HemfGraphics ctx)
HemfRecord
draw
in interface HemfRecord
ctx
- the drawing contextpublic java.awt.geom.Rectangle2D getBounds()
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
getGenericProperties
in interface GenericRecord
getGenericProperties
in class HwmfDraw.WmfPolygon
public HemfRecordType getGenericRecordType()
getGenericRecordType
in interface GenericRecord
getGenericRecordType
in interface HemfRecord
getGenericRecordType
in interface HwmfRecord
public void calcBounds(HemfRecord.RenderBounds holder)
calcBounds
in interface HemfRecord
Copyright 2022 The Apache Software Foundation or its licensors, as applicable.