Class JadiceAnnotationConverter
- java.lang.Object
-
- com.saperion.ngc.viewer.virtualviewer.annotation.JadiceAnnotationConverter
-
- All Implemented Interfaces:
AnnotationConverter
public class JadiceAnnotationConverter extends java.lang.Object implements AnnotationConverter
- Author:
- rbo
-
-
Constructor Summary
Constructors Constructor Description JadiceAnnotationConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]convert(java.lang.String original, java.lang.String ixosAnnotationsIni, int ixosPage)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(javax.servlet.http.HttpSession session)Passes the current session to the converter, if it is available.voidsetViewerId(java.lang.String id)Used to pass the ID of the viewer that requested the annotations to the converter.
-
-
-
Method Detail
-
setSession
public void setSession(javax.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
public void setDocumentInfos(OpenDocumentBean openDocumentBean)
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(java.lang.String original, java.lang.String ixosAnnotationsIni, int ixosPage) throws ConvertAnnotationExceptionDescription 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
public void setViewerId(java.lang.String id)
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
-
-