Class TextAnnotation
java.lang.Object
com.saperion.ngc.viewer.hylandviewer.annotation.json.Annotation
com.saperion.ngc.viewer.hylandviewer.annotation.json.text.TextAnnotation
Contains configuration for Text Annotation
- Author:
- schowdhury
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionTextAnnotation
(com.saperion.hyrcs.models.DocDimension docDimension, boolean editMode) -
Method Summary
Methods inherited from class com.saperion.ngc.viewer.hylandviewer.annotation.json.Annotation
getAnnId, getFillColor, getHeight, getOpacity, getPageNo, getStroke, getWidth, getX, getY, isFillable, isFixRotation, isMovable, isResizable, normalizeX, normalizeY, setAnnId, setPageNo
-
Constructor Details
-
TextAnnotation
public TextAnnotation() -
TextAnnotation
public TextAnnotation(com.saperion.hyrcs.models.DocDimension docDimension, boolean editMode)
-
-
Method Details
-
getType
- Specified by:
getType
in classAnnotation
-
getText
-
getFontFamily
-
getFontSize
public int getFontSize() -
getFontColor
-
isFontItalic
public boolean isFontItalic() -
isFontBold
public boolean isFontBold() -
isFontUnderline
public boolean isFontUnderline() -
isFontStrikeThrough
public boolean isFontStrikeThrough() -
isFontOverflow
public boolean isFontOverflow() -
getTextAlignment
-
getRadius
public int getRadius() -
getPadding
public int getPadding() -
draw
Description copied from class:Annotation
This is an abstract method for filling up the annotation configuration by different types of annotations subclasses- Specified by:
draw
in classAnnotation
- Parameters:
section
- contains information about an annotation (e.g. - annotation type and key value pairs)
-