public class Note extends Document
Constructor and Description |
---|
Note(java.io.File db)
Creates a new Note object.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getDbName()
Returns ".".
|
protected java.lang.String |
getName()
Return the name of the database file, without the extension.
|
void |
merge()
Creates a PDF file from the note.
|
void |
merge(java.io.File output)
Creates a new PDF file with the scribbles in it.
|
exportToPNG, exportToPNG, exportToPNG, format, getDocument, getScribbleMgr, merge, merge
public Note(java.io.File db)
db
- database filejava.lang.IllegalArgumentException
- il the db
file does not exists or
is not a fileprotected java.lang.String getDbName()
getDbName
in class Document
ScribbleMgr
protected java.lang.String getName()
public void merge()
getName()
.pdf.public void merge(java.io.File output)
merge
in class Document
output
- the output file/path; if it is a folder, the output file
will be written in a file inside the folder named as "getName()
.pdf"; if it is null
, the merge()
method is
invokedjava.lang.IllegalArgumentException
- if the output file is the same as the
database file© 2015 andynaz - http://andynaz.altervista.org