@TopNS(prefix={"xdr","a","r"}, value="wsDr", uri={"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","http://schemas.openxmlformats.org/drawingml/2006/main","http://schemas.openxmlformats.org/officeDocument/2006/relationships"}) public class XMLDrawingsWriter extends Object implements IDrawingsWriter
| 限定符和类型 | 字段和说明 |
|---|---|
protected long[] |
bits
Mark complete status
0: free or complete
1: wait
|
protected ExtBufferedWriter |
bw |
protected int |
countDown |
protected Path |
path |
protected Picture[] |
pictures
Store async pictures
|
protected RelManager |
relManager |
protected int |
size |
| 构造器和说明 |
|---|
XMLDrawingsWriter(Path path) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
asyncDrawing(Picture picture)
异步添加图片
|
protected void |
attachFill(Fill fill) |
protected void |
attachGlow(Glow glow) |
protected void |
attachOutline(Outline ln) |
protected void |
attachReflection(Reflection reflection) |
protected void |
attachScene3d(Scene3D scene) |
protected void |
attachShadow(Shadow shadow,
String tag) |
protected void |
attachShape3D(Shape3D shape) |
protected void |
attachSoftEdges(double softEdges) |
protected int |
checkComplete() |
void |
close() |
void |
complete(Picture picture)
|
void |
drawing(Picture picture)
添加图片
|
static void |
freeIndex(long[] bits,
int idx)
Mark the bits at the specified position as 0
|
static int |
getFreeIndex(long[] bits) |
static void |
markIndex(long[] bits,
int idx)
Mark the bits at the specified position as 1
|
protected void |
writeBevel(Bevel bevel,
char angle) |
protected void |
writeEffects(Picture pict) |
void |
writeTo(Path root)
写入指定路径,传入的参数可以是一个文件也可以是文件夹,需要在实现类具体处理
|
protected Path path
protected ExtBufferedWriter bw
protected int size
protected RelManager relManager
protected Picture[] pictures
protected long[] bits
protected int countDown
public XMLDrawingsWriter(Path path)
public void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionpublic void writeTo(Path root) throws IOException
StorablewriteTo 在接口中 Storableroot - 父级文件夹或文件绝对路径IOException - 写失败异常public void drawing(Picture picture) throws IOException
IDrawingsWriterdrawing 在接口中 IDrawingsWriterpicture - 图片信息PictureIOException - if I/O error occur.public void asyncDrawing(Picture picture) throws IOException
IDrawingsWriterasyncDrawing 在接口中 IDrawingsWriterpicture - 图片信息PictureIOException - if I/O error occur.public void complete(Picture picture)
IDrawingsWritercomplete 在接口中 IDrawingsWriterpicture - 已完成的图片Pictureprotected int checkComplete()
throws IOException
IOExceptionpublic static int getFreeIndex(long[] bits)
public static void markIndex(long[] bits,
int idx)
bits - bit arrayidx - indexpublic static void freeIndex(long[] bits,
int idx)
bits - bit arrayidx - indexprotected void writeEffects(Picture pict) throws IOException
IOExceptionprotected void attachShadow(Shadow shadow, String tag) throws IOException
IOExceptionprotected void attachReflection(Reflection reflection) throws IOException
IOExceptionprotected void attachGlow(Glow glow) throws IOException
IOExceptionprotected void attachSoftEdges(double softEdges)
throws IOException
IOExceptionprotected void attachFill(Fill fill) throws IOException
IOExceptionprotected void attachOutline(Outline ln) throws IOException
IOExceptionprotected void attachScene3d(Scene3D scene) throws IOException
IOExceptionprotected void attachShape3D(Shape3D shape) throws IOException
IOExceptionprotected void writeBevel(Bevel bevel, char angle) throws IOException
IOExceptionCopyright © 2025. All rights reserved.