Package org.daisy.paper
Class TractorPaper
- java.lang.Object
-
- org.daisy.factory.AbstractFactory
-
- org.daisy.paper.AbstractPaper
-
- org.daisy.paper.TractorPaper
-
public class TractorPaper extends AbstractPaper
Provides a paper object for perforated paper with paper guides.- Author:
- Joel HÃ¥kansson
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.daisy.paper.Paper
Paper.Type
-
-
Constructor Summary
Constructors Constructor Description TractorPaper(java.lang.String name, java.lang.String desc, java.lang.Enum<? extends java.lang.Enum<?>> identifier, Length across, Length along)Creates a new tractor paper
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TractorPaperasTractorPaper()Returns this Paper as a TractorPaperLengthgetLengthAcrossFeed()Gets the length of the paper perpendicular to the direction of the paper feedLengthgetLengthAlongFeed()Gets the length of the paper along the direction of the paper feedPaper.TypegetType()Gets the type of paperjava.lang.StringtoString()-
Methods inherited from class org.daisy.paper.AbstractPaper
asRollPaper, asSheetPaper, 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
-
TractorPaper
public TractorPaper(java.lang.String name, java.lang.String desc, java.lang.Enum<? extends java.lang.Enum<?>> identifier, Length across, Length along)Creates a new tractor paper- Parameters:
name- a namedesc- a descriptionidentifier- an identifieracross- the width of the paperalong- the height of the paper
-
-
Method Detail
-
getLengthAcrossFeed
public Length getLengthAcrossFeed()
Gets the length of the paper perpendicular to the direction of the paper feed- Returns:
- returns the length.
-
getLengthAlongFeed
public Length getLengthAlongFeed()
Gets the length of the paper along the direction of the paper feed- Returns:
- returns the length.
-
getType
public Paper.Type getType()
Description copied from interface:PaperGets the type of paper- Returns:
- returns the type of paper
-
asTractorPaper
public TractorPaper asTractorPaper()
Description copied from interface:PaperReturns this Paper as a TractorPaper- Specified by:
asTractorPaperin interfacePaper- Overrides:
asTractorPaperin classAbstractPaper- Returns:
- returns the TractorPaper
-
toString
public java.lang.String toString()
- Overrides:
toStringin classAbstractFactory
-
-