iRex DR1000 Manager v0.5.1

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/09/22
Author:
andynaz

Field Summary
 
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 it.andynaz.irex.dr1000.document.Document
exportToPNG, format, getScribbleMgr, merge
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
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,
                  Color c)
Creates a 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:
outputFile - the path to the output PDF file; if it is null or empty, the default one returned by getDefaultFileName() is used
c - strokes color
See Also:
Bn paper format

iRex DR1000 Manager v0.5.1

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