Class JadiceAnnotationConverter
java.lang.Object
com.saperion.ngc.viewer.virtualviewer.annotation.JadiceAnnotationConverter
- All Implemented Interfaces:
AnnotationConverter
- Author:
- rbo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Converts the annotations to the desired format.voidsetDimension(int width, int height) Set document dimension.voidsetDocumentInfos(OpenDocumentBean openDocumentBean) Used to pass information about the document to the converter.voidsetEmpty(boolean empty) Used to notify the converter that the document has no annotations.voidsetSession(jakarta.servlet.http.HttpSession session) Passes the current session to the converter, if it is available.voidsetViewerId(String id) Used to pass the ID of the viewer that requested the annotations to the converter.
-
Constructor Details
-
JadiceAnnotationConverter
public JadiceAnnotationConverter()
-
-
Method Details
-
setSession
public void setSession(jakarta.servlet.http.HttpSession session) Description copied from interface:AnnotationConverterPasses the current session to the converter, if it is available.- Specified by:
setSessionin interfaceAnnotationConverter- Parameters:
session- the session
-
setEmpty
public void setEmpty(boolean empty) Description copied from interface:AnnotationConverterUsed to notify the converter that the document has no annotations.- Specified by:
setEmptyin interfaceAnnotationConverter- Parameters:
empty- true if the document has no annotations
-
setDocumentInfos
Description copied from interface:AnnotationConverterUsed to pass information about the document to the converter.- Specified by:
setDocumentInfosin interfaceAnnotationConverter- Parameters:
openDocumentBean- the bean containing information about the opened document
-
convert
public byte[] convert(String original, String ixosAnnotationsIni, int ixosPage) throws ConvertAnnotationException Description copied from interface:AnnotationConverterConverts the annotations to the desired format.- Specified by:
convertin interfaceAnnotationConverter- Parameters:
original- original annotations represented as StringixosAnnotationsIni- IXOS annotationsixosPage- IXOS page number- Returns:
- converted annotations represented as byte array
- Throws:
ConvertAnnotationException- when converting the annotations failed
-
setViewerId
Description copied from interface:AnnotationConverterUsed to pass the ID of the viewer that requested the annotations to the converter.- Specified by:
setViewerIdin interfaceAnnotationConverter- Parameters:
id- ID of the viewer
-
setDimension
public void setDimension(int width, int height) Description copied from interface:AnnotationConverterSet document dimension.- Specified by:
setDimensionin interfaceAnnotationConverter- Parameters:
width- Widthheight- Height
-