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.void
setDimension
(int width, int height) Set document dimension.void
setDocumentInfos
(OpenDocumentBean openDocumentBean) Used to pass information about the document to the converter.void
setEmpty
(boolean empty) Used to notify the converter that the document has no annotations.void
setSession
(jakarta.servlet.http.HttpSession session) Passes the current session to the converter, if it is available.void
setViewerId
(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:AnnotationConverter
Passes the current session to the converter, if it is available.- Specified by:
setSession
in interfaceAnnotationConverter
- Parameters:
session
- the session
-
setEmpty
public void setEmpty(boolean empty) Description copied from interface:AnnotationConverter
Used to notify the converter that the document has no annotations.- Specified by:
setEmpty
in interfaceAnnotationConverter
- Parameters:
empty
- true if the document has no annotations
-
setDocumentInfos
Description copied from interface:AnnotationConverter
Used to pass information about the document to the converter.- Specified by:
setDocumentInfos
in 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:AnnotationConverter
Converts the annotations to the desired format.- Specified by:
convert
in 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:AnnotationConverter
Used to pass the ID of the viewer that requested the annotations to the converter.- Specified by:
setViewerId
in interfaceAnnotationConverter
- Parameters:
id
- ID of the viewer
-
setDimension
public void setDimension(int width, int height) Description copied from interface:AnnotationConverter
Set document dimension.- Specified by:
setDimension
in interfaceAnnotationConverter
- Parameters:
width
- Widthheight
- Height
-