Package org.daisy.paper
Class RollPaper
- java.lang.Object
-
- org.daisy.factory.AbstractFactory
-
- org.daisy.paper.AbstractPaper
-
- org.daisy.paper.RollPaper
-
public class RollPaper extends AbstractPaper
Provides a paper object for paper in rolls.- Author:
- Joel HÃ¥kansson
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.daisy.paper.Paper
Paper.Type
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RollPaper
asRollPaper()
Returns this Paper as a RollPaperLength
getLengthAcrossFeed()
Gets the length of the paper perpendicular to the direction of the paper feedPaper.Type
getType()
Gets the type of paperjava.lang.String
toString()
-
Methods inherited from class org.daisy.paper.AbstractPaper
asSheetPaper, asTractorPaper, getFeature, getProperty, setFeature
-
Methods inherited from class org.daisy.factory.AbstractFactory
compareTo, getDescription, getDisplayName, getIdentifier
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.daisy.factory.Factory
getDescription, getDisplayName, getIdentifier
-
-
-
-
Constructor Detail
-
RollPaper
public RollPaper(java.lang.String name, java.lang.String desc, java.lang.Enum<? extends java.lang.Enum<?>> identifier, Length across)
Creates a new roll paper- Parameters:
name
- a name for the paperdesc
- a descriptionidentifier
- an identifieracross
- the height of the roll
-
-
Method Detail
-
getLengthAcrossFeed
public Length getLengthAcrossFeed()
Gets the length of the paper perpendicular to the direction of the paper feed- Returns:
- returns the length, in mm.
-
getType
public Paper.Type getType()
Description copied from interface:Paper
Gets the type of paper- Returns:
- returns the type of paper
-
asRollPaper
public RollPaper asRollPaper()
Description copied from interface:Paper
Returns this Paper as a RollPaper- Specified by:
asRollPaper
in interfacePaper
- Overrides:
asRollPaper
in classAbstractPaper
- Returns:
- returns the RollPaper
-
toString
public java.lang.String toString()
- Overrides:
toString
in classAbstractFactory
-
-