Package org.daisy.paper
Class CustomPaperCollection
- java.lang.Object
-
- org.daisy.paper.CustomPaperCollection
-
public class CustomPaperCollection extends java.lang.Object
Provides a custom paper collection that lets a user add and remove papers. The collection is stored as a file in the users home directory.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RollPaper
addNewRollPaper(java.lang.String name, java.lang.String desc, Length across)
SheetPaper
addNewSheetPaper(java.lang.String name, java.lang.String desc, Length width, Length height)
TractorPaper
addNewTractorPaper(java.lang.String name, java.lang.String desc, Length across, Length along)
static CustomPaperCollection
getInstance()
java.util.Collection<Paper>
list()
void
remove(Paper p)
-
-
-
Method Detail
-
getInstance
public static CustomPaperCollection getInstance()
-
list
public java.util.Collection<Paper> list()
-
addNewSheetPaper
public SheetPaper addNewSheetPaper(java.lang.String name, java.lang.String desc, Length width, Length height) throws java.io.IOException
- Throws:
java.io.IOException
-
addNewTractorPaper
public TractorPaper addNewTractorPaper(java.lang.String name, java.lang.String desc, Length across, Length along) throws java.io.IOException
- Throws:
java.io.IOException
-
addNewRollPaper
public RollPaper addNewRollPaper(java.lang.String name, java.lang.String desc, Length across) throws java.io.IOException
- Throws:
java.io.IOException
-
remove
public void remove(Paper p) throws java.io.IOException
- Throws:
java.io.IOException
-
-