Class Annotation
java.lang.Object
org.ofdrw.layout.edit.Annotation
- Direct Known Subclasses:
Watermark
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotation(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) 创建注解对象 -
Method Summary
Modifier and TypeMethodDescriptionaddParameter(String name, String parameter) 增加 注释参数org.ofdrw.core.annotation.pageannot.Annotbuild()获取注释底层对象org.ofdrw.core.basicType.ST_Box获取 注释创建者获取当前注释的绘制器获取 最近一次修改的时间获取 对象的 Remark 信息是否不随页面旋转而旋转获取 对象的 Remark 信息是否不随页面缩放而同步缩放获取 一组注释参数getPrint()设置 对象的Remark 信息是否随页面一起打印获取 对象的 Remark 信息是否不能被用户更改获取 注释说明内容获取 注释子类型org.ofdrw.core.annotation.pageannot.AnnotTypegetType()获取 注释类型获取 表示该注释对象是否显示voidsetBoundary(org.ofdrw.core.basicType.ST_Box boundary) setCreator(String creator) 设置 注释创建者设置注释绘制器setLastModDate(LocalDate lastModDate) 设置 最近一次修改的时间setNoRotate(boolean noRotate) 设置 对象的 Remark 信息是否不随页面旋转而旋转setNoZoom(boolean noZoom) 设置 对象的 Remark 信息是否不随页面缩放而同步缩放setPrint(boolean print) 设置 对象的Remark 信息是否随页面一起打印setReadOnly(boolean readOnly) 设置 对象的 Remark 信息是否不能被用户更改设置 注释说明内容setSubtype(String subtype) 设置 注释子类型setType(org.ofdrw.core.annotation.pageannot.AnnotType type) 设置 注释类型setVisible(boolean visible) 设置 表示该注释对象是否显示
-
Constructor Details
-
Annotation
public Annotation(double x, double y, double width, double height, org.ofdrw.core.annotation.pageannot.AnnotType type, Drawer drawer) 创建注释对象- Parameters:
x- 所处页面 y坐标y- 所处页面 y坐标width- 画布宽度height- 画布高度type- 注释类型drawer- 注释绘制器
-
Annotation
public Annotation(org.ofdrw.core.basicType.ST_Box boundary, org.ofdrw.core.annotation.pageannot.AnnotType type, Drawer drawer) 创建注解对象- Parameters:
boundary- 注释对象绘制空间type- 注释类型drawer- 注释绘制器
-
-
Method Details
-
build
public org.ofdrw.core.annotation.pageannot.Annot build()获取注释底层对象- Returns:
- 注释对象
-
getBoundary
public org.ofdrw.core.basicType.ST_Box getBoundary() -
setBoundary
public void setBoundary(org.ofdrw.core.basicType.ST_Box boundary) -
getDrawer
-
setDrawer
-
setType
设置 注释类型具体取值见
AnnotType- Parameters:
type- 注释类型- Returns:
- this
-
getType
public org.ofdrw.core.annotation.pageannot.AnnotType getType()获取 注释类型具体取值见
AnnotType- Returns:
- 注释类型
-
setCreator
-
getCreator
-
setLastModDate
设置 最近一次修改的时间- Parameters:
lastModDate- 最近一次修改的时间- Returns:
- this
-
getLastModDate
-
setSubtype
-
getSubtype
-
setVisible
设置 表示该注释对象是否显示默认值为 true
- Parameters:
visible- 表示该注释对象是否显示,默认值为 true- Returns:
- this
-
getVisible
-
setPrint
设置 对象的Remark 信息是否随页面一起打印默认值为 true
- Parameters:
print- 对象的Remark 信息是否随页面一起打印- Returns:
- this
-
getPrint
-
setNoZoom
设置 对象的 Remark 信息是否不随页面缩放而同步缩放默认值为 false
- Parameters:
noZoom- 对象的 Remark 信息是否不随页面缩放而同步缩放- Returns:
- this
-
getNoZoom
获取 对象的 Remark 信息是否不随页面缩放而同步缩放默认值为 false
- Returns:
- 对象的 Remark 信息是否不随页面缩放而同步缩放
-
setNoRotate
设置 对象的 Remark 信息是否不随页面旋转而旋转默认值为 false
- Parameters:
noRotate- 对象的 Remark 信息是否不随页面旋转而旋转- Returns:
- this
-
getNoRotate
获取 对象的 Remark 信息是否不随页面旋转而旋转默认值为 false
- Returns:
- 对象的 Remark 信息是否不随页面旋转而旋转
-
setReadOnly
设置 对象的 Remark 信息是否不能被用户更改默认值为 true
- Parameters:
readOnly- 对象的 Remark 信息是否不能被用户更改- Returns:
- this
-
getReadOnly
-
setRemark
-
getRemark
-
addParameter
增加 注释参数- Parameters:
name- 键名parameter- 值- Returns:
- this
-
getParameters
-