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/11/06
- 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 |
getDbName()
Return the file name as it is present in the database file. |
protected String |
getDefaultFileName()
Return the name of the database file, without the extension. |
void |
merge(File output)
Creates a new 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
getDbName
protected String getDbName()
- 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:
getDbName
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(File output)
- Creates a new PDF file with the scribbles in it.
The generated PDF file has pages 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:
output
- the output file; if it is a folder, the output file will be
written in a file inside the folder named as "getDefaultFileName()
.pdf"; if it is null
, the Document.merge()
method will be used
- Throws:
IllegalArgumentException
- if the output file is the same as the
database file- See Also:
- Bn paper format
© 2013 andynaz - http://andynaz.altervista.org