public class HemfGraphics extends HwmfGraphics
HwmfGraphics.FillDrawStyle
graphicsCtx, initialAT, objectIndexes, objectTable, prop, propStack
Constructor and Description |
---|
HemfGraphics(java.awt.Graphics2D graphicsCtx,
java.awt.geom.Rectangle2D bbox) |
Modifier and Type | Method and Description |
---|---|
void |
addObjectTableEntry(HwmfObjectTableEntry entry,
int index)
Adds or sets an record of type
HwmfObjectTableEntry to the object table. |
void |
applyObjectTableEntry(int index)
Applies the object table entry
|
void |
draw(java.util.function.Consumer<java.awt.geom.Path2D> pathConsumer,
HwmfGraphics.FillDrawStyle fillDraw) |
void |
draw(HemfRecord r) |
HemfDrawProperties |
getProperties() |
protected HemfDrawProperties |
newProperties(HwmfDrawProperties oldProps) |
addObjectTableEntry, draw, drawImage, drawString, drawString, fill, getFill, getHatchedFill, getInitTransform, getPatternPaint, getSolidFill, getStroke, getTransform, restoreProperties, saveProperties, setClip, setTransform, unsetObjectTableEntry, updateWindowMapMode
public HemfGraphics(java.awt.Graphics2D graphicsCtx, java.awt.geom.Rectangle2D bbox)
public HemfDrawProperties getProperties()
getProperties
in class HwmfGraphics
protected HemfDrawProperties newProperties(HwmfDrawProperties oldProps)
newProperties
in class HwmfGraphics
public void draw(HemfRecord r)
@Internal public void draw(java.util.function.Consumer<java.awt.geom.Path2D> pathConsumer, HwmfGraphics.FillDrawStyle fillDraw)
public void addObjectTableEntry(HwmfObjectTableEntry entry, int index)
HwmfObjectTableEntry
to the object table.
If the index
is less than 1, the method acts the same as
HwmfGraphics.addObjectTableEntry(HwmfObjectTableEntry)
, otherwise the
index is used to access the object table.
As the table is filled successively, the index must be between 1 and size+1entry
- the record to be storedindex
- the index to be overwritten, regardless if its content was unset beforeHwmfGraphics.addObjectTableEntry(HwmfObjectTableEntry)
public void applyObjectTableEntry(int index)
HwmfGraphics
applyObjectTableEntry
in class HwmfGraphics
index
- the index of the object table entry (0-based)Copyright 2019 The Apache Software Foundation or its licensors, as applicable.