public class HemfGraphics extends HwmfGraphics
Modifier and Type | Class and Description |
---|---|
static class |
HemfGraphics.EmfRenderState |
HwmfGraphics.FillDrawStyle
graphicsCtx, objectIndexes, objectTable, prop
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.
(向对象表添加或设置 HwmfObjectTableEntry 类型的记录。)
|
void |
addPlusObjectTableEntry(HwmfObjectTableEntry entry, int index)
Adds or sets an record of type
HwmfObjectTableEntry to the plus object table.
(将 HwmfObjectTableEntry 类型的记录添加或设置到 plus 对象表。)
|
void |
applyObjectTableEntry(int index)
Applies the object table entry
(应用对象表条目)
|
void |
applyPlusObjectTableEntry(int index) |
void |
draw(java.util.function.Consumer<java.awt.geom.Path2D> pathConsumer, HwmfGraphics.FillDrawStyle fillDraw) |
void |
draw(HemfPlusRecord r) |
void |
draw(HemfRecord r) |
void |
fill(java.awt.Shape shape) |
protected java.awt.Paint |
getHatchedFill() |
protected java.awt.Paint |
getLinearGradient() |
HwmfObjectTableEntry |
getObjectTableEntry(int index)
Gets a record which was registered earlier
(获取之前注册的记录)
|
HwmfObjectTableEntry |
getPlusObjectTableEntry(int index) |
HemfDrawProperties |
getProperties() |
HemfGraphics.EmfRenderState |
getRenderState() |
protected HemfDrawProperties |
newProperties(HwmfDrawProperties oldProps) |
void |
restorePlusProperties(int index)
Restores the properties from the plus stack
(从加堆栈恢复属性)
|
void |
savePlusProperties(int index)
Saves the current properties to the plus stack
(将当前属性保存到加堆栈)
|
void |
setRenderState(HemfGraphics.EmfRenderState renderState) |
void |
updateWindowMapMode()
After setting various window and viewport related properties, the underlying graphics context needs to be adapted.
(设置好各种窗口和视口相关属性后,需要对底层图形上下文进行适配。)
|
addObjectTableEntry, draw, drawImage, drawImage, drawString, drawString, getFill, getImageRenderer, getInitTransform, getPatternFromLong, getPatternPaint, getSolidFill, getStroke, getTransform, restoreProperties, saveProperties, setCharsetProvider, setClip, setTransform, unsetObjectTableEntry
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 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. The index must be > 0
(向对象表添加或设置 HwmfObjectTableEntry 类型的记录。索引必须 > 0)
entry
- the record to be stored
(entry - 要存储的记录)
index
- the index to be overwritten, regardless if its content was unset before
(index - 要覆盖的索引,无论其内容之前是否未设置)
HwmfGraphics.addObjectTableEntry(HwmfObjectTableEntry)
public void addPlusObjectTableEntry(HwmfObjectTableEntry entry, int index)
HwmfObjectTableEntry
to the plus object table. The index must be in the range [0..63]
(将 HwmfObjectTableEntry 类型的记录添加或设置到 plus 对象表。索引必须在 [0..63] 范围内)
entry
- the record to be stored
(entry - 要存储的记录)
index
- the index to be overwritten, regardless if its content was unset before
(index - 要覆盖的索引,无论其内容之前是否未设置)
HwmfGraphics.addObjectTableEntry(HwmfObjectTableEntry)
public HwmfObjectTableEntry getObjectTableEntry(int index)
index
- the record index
(index - 记录索引)
null
if it doesn't exist
(记录或 null 如果它不存在)
public HwmfObjectTableEntry getPlusObjectTableEntry(int index)
public void applyObjectTableEntry(int index)
HwmfGraphics
applyObjectTableEntry
in class
HwmfGraphics
index
- the index of the object table entry (0-based)
(index - 对象表条目的索引(从 0 开始))
public void applyPlusObjectTableEntry(int index)
protected java.awt.Paint getHatchedFill()
getHatchedFill
in class
HwmfGraphics
public void updateWindowMapMode()
HwmfGraphics
updateWindowMapMode
in class
HwmfGraphics
public void fill(java.awt.Shape shape)
fill
in class
HwmfGraphics
protected java.awt.Paint getLinearGradient()
getLinearGradient
in class
HwmfGraphics
public void savePlusProperties(int index)
public void restorePlusProperties(int index)
index
- the index of the previously saved properties
(index - 先前保存的属性的索引)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.