|
iRex DR1000 Manager v0.5.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.andynaz.irex.dr1000.document.Document
public abstract class Document
Document on a iRex DR1000. This class ia a model for both a PDF document or a note: it has an associated SQLite database file, where the scribbles are stored.
Field Summary | |
---|---|
protected File |
db
Database file. |
Constructor Summary | |
---|---|
protected |
Document(File db)
Creates a new Document with an associated database file. |
Method Summary | |
---|---|
void |
exportToPNG()
|
void |
exportToPNG(File dir)
Export the scribbles to PNG files. |
void |
exportToPNG(String dirPath)
|
void |
format(String outputFile)
Deprecated. only for debug purpuse; will be deleted in future release |
abstract String |
getDefaultFileName()
Return the default filename used to create the output files. |
static Document |
getDocument(File file)
|
protected abstract String |
getFileName()
Return the file name as it is present in the database file. |
protected ScribbleMgr |
getScribbleMgr()
Returns an initialized ScribbleMgr . |
void |
merge(String outFilePath)
Creates the output PDF file. |
abstract void |
merge(String outFilePath,
Color color)
Creates the output PDF file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected File db
Constructor Detail |
---|
protected Document(File db)
db
- database file
IllegalArgumentException
- if the db
file does not exists or
is not a fileMethod Detail |
---|
public static Document getDocument(File file)
file
-
protected ScribbleMgr getScribbleMgr()
ScribbleMgr
.
protected abstract String getFileName()
file_metadata.filename
column.
ScribbleMgr
public abstract String getDefaultFileName()
public void merge(String outFilePath)
ColorMgr.getColor()
method).
outFilePath
- the path to the output PDF file; if it is null
or empty, the default one returned by getDefaultFileName()
is
usedpublic abstract void merge(String outFilePath, Color color)
outFilePath
- the path to the output PDF file; if it is null
or empty, the default one returned by getDefaultFileName()
is
usedcolor
- strokes' colorpublic void exportToPNG(File dir)
For each page of scribble, a PNG file is created and saved as name-pgNum.png
, where 'name' is the name returned by the getDefaultFileName()
method and 'pgNum' is the page number.
public void exportToPNG(String dirPath)
public void exportToPNG()
public void format(String outputFile)
outputFile
- path to the output text file; if it is null
or empty, the default one returned by getDefaultFileName()
is
used
|
iRex DR1000 Manager v0.5.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |