public class HemfGraphics extends HwmfGraphics
| Modifier and Type | Class and Description |
|---|---|
static class |
HemfGraphics.EmfRenderState |
HwmfGraphics.FillDrawStylegraphicsCtx, 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(HemfPlusRecord r) |
void |
draw(HemfRecord r) |
protected java.awt.Paint |
getHatchedFill() |
HwmfObjectTableEntry |
getObjectTableEntry(int index)
Gets a record which was registered earliser
|
HemfDrawProperties |
getProperties() |
HemfGraphics.EmfRenderState |
getRenderState() |
protected HemfDrawProperties |
newProperties(HwmfDrawProperties oldProps) |
void |
setRenderState(HemfGraphics.EmfRenderState renderState) |
addObjectTableEntry, draw, drawImage, drawString, drawString, fill, getFill, getInitTransform, getPatternPaint, getSolidFill, getStroke, getTransform, restoreProperties, saveProperties, setClip, setTransform, unsetObjectTableEntry, updateWindowMapModepublic HemfGraphics(java.awt.Graphics2D graphicsCtx,
java.awt.geom.Rectangle2D bbox)
public HemfDrawProperties getProperties()
getProperties in class HwmfGraphicsprotected HemfDrawProperties newProperties(HwmfDrawProperties oldProps)
newProperties in class HwmfGraphicspublic HemfGraphics.EmfRenderState getRenderState()
public void setRenderState(HemfGraphics.EmfRenderState renderState)
public void draw(HemfRecord r)
public void draw(HemfPlusRecord 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 HwmfObjectTableEntry getObjectTableEntry(int index)
index - the record indexnull if it doesn't existpublic void applyObjectTableEntry(int index)
HwmfGraphicsapplyObjectTableEntry in class HwmfGraphicsindex - the index of the object table entry (0-based)protected java.awt.Paint getHatchedFill()
getHatchedFill in class HwmfGraphics