public class Note extends Document
Constructor and Description |
---|
Note(File db)
Creates a new Note object.
|
Modifier and Type | Method and Description |
---|---|
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.
|
exportToPNG, exportToPNG, exportToPNG, format, getDocument, getScribbleMgr, merge, merge, merge
public Note(File db)
db
- database fileIllegalArgumentException
- il the db
file does not exists or
is not a fileprotected String getDbName()
Document
file_metadata.filename
column.getDbName
in class Document
ScribbleMgr
protected String getDefaultFileName()
getDefaultFileName
in class Document
public void merge(File output)
merge
in class Document
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 usedIllegalArgumentException
- if the output file is the same as the
database file© 2013 andynaz - http://andynaz.altervista.org