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 TractorPaper
asTractorPaper()
Returns this Paper as a TractorPaperLength
getLengthAcrossFeed()
Gets the length of the paper perpendicular to the direction of the paper feedLength
getLengthAlongFeed()
Gets the length of the paper along the direction of the paper feedPaper.Type
getType()
Gets the type of paperjava.lang.String
toString()
-
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:Paper
Gets the type of paper- Returns:
- returns the type of paper
-
asTractorPaper
public TractorPaper asTractorPaper()
Description copied from interface:Paper
Returns this Paper as a TractorPaper- Specified by:
asTractorPaper
in interfacePaper
- Overrides:
asTractorPaper
in classAbstractPaper
- Returns:
- returns the TractorPaper
-
toString
public java.lang.String toString()
- Overrides:
toString
in classAbstractFactory
-
-