iRex DR1000 Merger v0.3

it.andynaz.irex.dr1000.document
Class Note

java.lang.Object
  extended by it.andynaz.irex.dr1000.document.Document
      extended by it.andynaz.irex.dr1000.document.Note

public class Note
extends Document

Represent a note taken with the iRex DR1000 built-in notepad.

Version:
2013-02-22
Author:
andynaz

Field Summary
 
Fields inherited from class it.andynaz.irex.dr1000.document.Document
db
 
Constructor Summary
Note(String 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)
          Creates a PDF file with the scribbles in it.
 
Methods inherited from class it.andynaz.irex.dr1000.document.Document
format, getScribbleMgr
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Note

public Note(String db)
Creates a new Note object.

Parameters:
db - path to the database file
Method Detail

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)
Creates a PDF file with the scribbles in it. The generated PDF file is in B5 format.

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 used
See Also:
Bn paper format

iRex DR1000 Merger v0.3

© 2013 andynaz - http://andynaz.altervista.org