it.andynaz.irex.dr1000.document
Class Note
java.lang.Object
it.andynaz.irex.dr1000.document.Document
it.andynaz.irex.dr1000.document.Note
public class Note
- extends Document
Represent a note taken with the iRex DR1000 built-in notepad.
- Version:
- 2013-08-01
- Author:
- andynaz
Fields inherited from class it.andynaz.irex.dr1000.document.Document |
db |
Constructor Summary |
Note(File db)
Creates a new Note object. |
Method Summary |
protected String |
getDefaultFileName()
Return the name of the database file, without the extension. |
protected String |
getFileName()
Return the file name as it is present in the database file. |
void |
merge(String outputFile,
Color c)
Creates a PDF file with the scribbles in it. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Note
public Note(File db)
- Creates a new Note object.
- Parameters:
db
- database file
- Throws:
IllegalArgumentException
- il the db
file does not exists or
is not a file
getFileName
protected String getFileName()
- Description copied from class:
Document
- Return the file name as it is present in the database file.
Subclasses implement the correct format of the
file_metadata.filename
column.
- Specified by:
getFileName
in class Document
- Returns:
- the name of the file as written in the database
- See Also:
ScribbleMgr
getDefaultFileName
protected String getDefaultFileName()
- Return the name of the database file, without the extension.
- Specified by:
getDefaultFileName
in class Document
- Returns:
- the name of the database file, without the extension
merge
public void merge(String outputFile,
Color c)
- Creates a PDF file with the scribbles in it.
The generated PDF file is in B5 format. To create the final PDF, it first
creates an empty PDF with the needed number of pages; after the merge, the
empty PDF is deleted.
- Specified by:
merge
in class Document
- Parameters:
outputFile
- the path to the output PDF file; if it is null
or empty, the default one returned by getDefaultFileName()
is
usedc
- strokes color- See Also:
- Bn paper format
© 2013 andynaz - http://andynaz.altervista.org