Class JadiceDocumentInfo
- java.lang.Object
-
- com.levigo.jadice.server.documentplatform.JadiceDocumentInfo
-
- All Implemented Interfaces:
IDocumentInfo
,Serializable
public class JadiceDocumentInfo extends Object implements IDocumentInfo, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JadiceDocumentInfo(String uuid, int pageCount, boolean isAnnotated, String baseFormat, Dimension2D[] pageSizes, float[] verticalResolutions, float[] horizontalResolutions, String[] pageFormats, com.levigo.jadice.document.metadata.Metadata[] metadata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBaseFormat()
String
getFormat(int pageIndex)
Determine the Format of a given page.float
getHorizontalResolution(int pageIndex)
Determine the horizontal resolution of a given page in dpi.com.levigo.jadice.document.metadata.Metadata
getMetadata(int pageIndex)
Return theMetadata
for a given page.int
getPageCount()
Dimension2D
getSize(int pageIndex)
Determine the size of a given page inUnit.JadiceDocumentUnit
.String
getUUID()
float
getVerticalResolution(int pageIndex)
Determine the vertical resolution of a given page in dpi.boolean
isAnnotated()
-
-
-
Constructor Detail
-
JadiceDocumentInfo
public JadiceDocumentInfo(String uuid, int pageCount, boolean isAnnotated, String baseFormat, Dimension2D[] pageSizes, float[] verticalResolutions, float[] horizontalResolutions, String[] pageFormats, com.levigo.jadice.document.metadata.Metadata[] metadata)
-
-
Method Detail
-
getUUID
public String getUUID()
- Specified by:
getUUID
in interfaceIDocumentInfo
- Returns:
- The UUID of the
Stream
that was analyzed - See Also:
StreamDescriptor.getUUID()
-
getPageCount
public int getPageCount()
- Specified by:
getPageCount
in interfaceIDocumentInfo
- Returns:
- Number of pages
-
isAnnotated
public boolean isAnnotated()
- Specified by:
isAnnotated
in interfaceIDocumentInfo
- Returns:
true
if the document contains annotations
-
getBaseFormat
public String getBaseFormat()
- Specified by:
getBaseFormat
in interfaceIDocumentInfo
- Returns:
- The description of the document's page format. Might be
null
if the document has an unknown or unsupported format
-
getSize
public Dimension2D getSize(int pageIndex)
Description copied from interface:IDocumentInfo
Determine the size of a given page inUnit.JadiceDocumentUnit
.- Specified by:
getSize
in interfaceIDocumentInfo
- Parameters:
pageIndex
- The index of the page (0-based). Value must be in range [0..IDocumentInfo.getPageCount()
-1]- Returns:
- The size of the page in
Unit.JadiceDocumentUnit
-
getVerticalResolution
public float getVerticalResolution(int pageIndex)
Description copied from interface:IDocumentInfo
Determine the vertical resolution of a given page in dpi.- Specified by:
getVerticalResolution
in interfaceIDocumentInfo
- Parameters:
pageIndex
- The index of the page (0-based). Value must be in range [0..IDocumentInfo.getPageCount()
-1]- Returns:
- The vertical resolution of the page in dpi
-
getHorizontalResolution
public float getHorizontalResolution(int pageIndex)
Description copied from interface:IDocumentInfo
Determine the horizontal resolution of a given page in dpi.- Specified by:
getHorizontalResolution
in interfaceIDocumentInfo
- Parameters:
pageIndex
- The index of the page (0-based). Value must be in range [0..IDocumentInfo.getPageCount()
-1]- Returns:
- The horizontal resolution of the page in dpi
-
getFormat
public String getFormat(int pageIndex)
Description copied from interface:IDocumentInfo
Determine the Format of a given page.- Specified by:
getFormat
in interfaceIDocumentInfo
- Parameters:
pageIndex
- The index of the page (0-based). Value must be in range [0..IDocumentInfo.getPageCount()
-1]- Returns:
- The format description of the page, might be
null
-
getMetadata
public com.levigo.jadice.document.metadata.Metadata getMetadata(int pageIndex)
Description copied from interface:IDocumentInfo
Return theMetadata
for a given page.- Specified by:
getMetadata
in interfaceIDocumentInfo
- Parameters:
pageIndex
- The index of the page (0-based). Value must be in range [0..IDocumentInfo.getPageCount()
-1]- Returns:
- The meta data of the page, might be
null
-
-