| 构造器和说明 |
|---|
Annotation(double x,
double y,
double width,
double height,
org.ofdrw.core.annotation.pageannot.AnnotType type,
Drawer drawer)
创建注释对象
|
Annotation(org.ofdrw.core.basicType.ST_Box boundary,
org.ofdrw.core.annotation.pageannot.AnnotType type,
Drawer drawer)
创建注解对象
|
| 限定符和类型 | 方法和说明 |
|---|---|
Annotation |
addParameter(String name,
String parameter)
增加 注释参数
|
org.ofdrw.core.annotation.pageannot.Annot |
build()
获取注释底层对象
|
org.ofdrw.core.basicType.ST_Box |
getBoundary() |
String |
getCreator()
获取 注释创建者
|
Drawer |
getDrawer()
获取当前注释的绘制器
|
LocalDate |
getLastModDate()
获取 最近一次修改的时间
|
Boolean |
getNoRotate()
获取 对象的 Remark 信息是否不随页面旋转而旋转
默认值为 false
|
Boolean |
getNoZoom()
获取 对象的 Remark 信息是否不随页面缩放而同步缩放
默认值为 false
|
Map<String,String> |
getParameters()
获取 一组注释参数
|
Boolean |
getPrint()
设置 对象的Remark 信息是否随页面一起打印
默认值为 true
|
Boolean |
getReadOnly()
获取 对象的 Remark 信息是否不能被用户更改
默认值为 true
|
String |
getRemark()
获取 注释说明内容
|
String |
getSubtype()
获取 注释子类型
|
org.ofdrw.core.annotation.pageannot.AnnotType |
getType()
获取 注释类型
具体取值见
AnnotType |
Boolean |
getVisible()
获取 表示该注释对象是否显示
默认值为 true
|
void |
setBoundary(org.ofdrw.core.basicType.ST_Box boundary) |
Annotation |
setCreator(String creator)
设置 注释创建者
|
Annotation |
setDrawer(Drawer drawer)
设置注释绘制器
|
Annotation |
setLastModDate(LocalDate lastModDate)
设置 最近一次修改的时间
|
Annotation |
setNoRotate(boolean noRotate)
设置 对象的 Remark 信息是否不随页面旋转而旋转
默认值为 false
|
Annotation |
setNoZoom(boolean noZoom)
设置 对象的 Remark 信息是否不随页面缩放而同步缩放
默认值为 false
|
Annotation |
setPrint(boolean print)
设置 对象的Remark 信息是否随页面一起打印
默认值为 true
|
Annotation |
setReadOnly(boolean readOnly)
设置 对象的 Remark 信息是否不能被用户更改
默认值为 true
|
Annotation |
setRemark(String remark)
设置 注释说明内容
|
Annotation |
setSubtype(String subtype)
设置 注释子类型
|
Annotation |
setType(org.ofdrw.core.annotation.pageannot.AnnotType type)
设置 注释类型
具体取值见
AnnotType |
Annotation |
setVisible(boolean visible)
设置 表示该注释对象是否显示
默认值为 true
|
public Annotation(double x,
double y,
double width,
double height,
org.ofdrw.core.annotation.pageannot.AnnotType type,
Drawer drawer)
x - 所处页面 y坐标y - 所处页面 y坐标width - 画布宽度height - 画布高度type - 注释类型drawer - 注释绘制器public Annotation(org.ofdrw.core.basicType.ST_Box boundary,
org.ofdrw.core.annotation.pageannot.AnnotType type,
Drawer drawer)
boundary - 注释对象绘制空间type - 注释类型drawer - 注释绘制器public org.ofdrw.core.annotation.pageannot.Annot build()
public org.ofdrw.core.basicType.ST_Box getBoundary()
public void setBoundary(org.ofdrw.core.basicType.ST_Box boundary)
public Drawer getDrawer()
public Annotation setDrawer(Drawer drawer)
drawer - 注释绘制器public Annotation setType(org.ofdrw.core.annotation.pageannot.AnnotType type)
具体取值见AnnotType
type - 注释类型public org.ofdrw.core.annotation.pageannot.AnnotType getType()
具体取值见AnnotType
public Annotation setCreator(String creator)
creator - 注释创建者public String getCreator()
public Annotation setLastModDate(LocalDate lastModDate)
lastModDate - 最近一次修改的时间public LocalDate getLastModDate()
public Annotation setSubtype(String subtype)
subtype - 注释子类型public String getSubtype()
public Annotation setVisible(boolean visible)
默认值为 true
visible - 表示该注释对象是否显示,默认值为 truepublic Boolean getVisible()
默认值为 true
public Annotation setPrint(boolean print)
默认值为 true
print - 对象的Remark 信息是否随页面一起打印public Boolean getPrint()
默认值为 true
public Annotation setNoZoom(boolean noZoom)
默认值为 false
noZoom - 对象的 Remark 信息是否不随页面缩放而同步缩放public Boolean getNoZoom()
默认值为 false
public Annotation setNoRotate(boolean noRotate)
默认值为 false
noRotate - 对象的 Remark 信息是否不随页面旋转而旋转public Boolean getNoRotate()
默认值为 false
public Annotation setReadOnly(boolean readOnly)
默认值为 true
readOnly - 对象的 Remark 信息是否不能被用户更改public Boolean getReadOnly()
默认值为 true
public Annotation setRemark(String remark)
remark - 注释说明内容public String getRemark()
public Annotation addParameter(String name, String parameter)
name - 键名parameter - 值Copyright © 2024. All rights reserved.