Class TextAnnotation
- java.lang.Object
-
- com.saperion.ngc.viewer.hylandviewer.annotation.json.Annotation
-
- com.saperion.ngc.viewer.hylandviewer.annotation.json.text.TextAnnotation
-
public class TextAnnotation extends Annotation
Contains configuration for Text Annotation- Author:
- schowdhury
-
-
Constructor Summary
Constructors Constructor Description TextAnnotation()
TextAnnotation(com.saperion.hyrcs.models.DocDimension docDimension, boolean editMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
draw(Section section)
This is an abstract method for filling up the annotation configuration by different types of annotations subclassesjava.lang.String
getFontColor()
java.lang.String
getFontFamily()
int
getFontSize()
int
getPadding()
int
getRadius()
java.lang.String
getText()
java.lang.String
getTextAlignment()
AnnotationType
getType()
boolean
isFontBold()
boolean
isFontItalic()
boolean
isFontOverflow()
boolean
isFontStrikeThrough()
boolean
isFontUnderline()
-
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
-
-
-
-
Method Detail
-
getType
public AnnotationType getType()
- Specified by:
getType
in classAnnotation
-
getText
public java.lang.String getText()
-
getFontFamily
public java.lang.String getFontFamily()
-
getFontSize
public int getFontSize()
-
getFontColor
public java.lang.String getFontColor()
-
isFontItalic
public boolean isFontItalic()
-
isFontBold
public boolean isFontBold()
-
isFontUnderline
public boolean isFontUnderline()
-
isFontStrikeThrough
public boolean isFontStrikeThrough()
-
isFontOverflow
public boolean isFontOverflow()
-
getTextAlignment
public java.lang.String getTextAlignment()
-
getRadius
public int getRadius()
-
getPadding
public int getPadding()
-
draw
public void draw(Section section)
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)
-
-