Class RowImpl
- java.lang.Object
-
- org.daisy.dotify.formatter.impl.row.RowImpl
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRowImpl.BuilderTODO: Write java doc.
-
Constructor Summary
Constructors Constructor Description RowImpl()Create a new empty Row.RowImpl(String chars)Create a new Row.RowImpl(String chars, MarginProperties leftMargin, MarginProperties rightMargin)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallowsBreakAfter()booleanequals(Object obj)FormattingTypes.AlignmentgetAlignment()Gets the alignment value for the row.List<String>getAnchors()Get all anchors on this Row.StringgetChars()Get the characters on this row.ObjectgetExternalReference()Get the current external reference information tagged for this row.List<String>getIdentifiers()Get all identifiers on this Row.intgetLeaderSpace()MarginPropertiesgetLeftMargin()Get the left margin value for the Row, in characters.List<Marker>getMarkers()Get all markers on this Row.MarginPropertiesgetRightMargin()FloatgetRowSpacing()Gets the row spacing, in rows.intgetWidth()inthashCode()booleanhasMarkerWithName(String name)booleanisInvisible()booleanshouldAdjustForMargin()
-
-
-
Constructor Detail
-
RowImpl
public RowImpl(String chars)
Create a new Row.- Parameters:
chars- the characters on this row
-
RowImpl
public RowImpl(String chars, MarginProperties leftMargin, MarginProperties rightMargin)
-
RowImpl
public RowImpl()
Create a new empty Row.
-
-
Method Detail
-
getChars
public String getChars()
Get the characters on this row.
-
getLeaderSpace
public int getLeaderSpace()
-
getWidth
public int getWidth()
-
getMarkers
public List<Marker> getMarkers()
Get all markers on this Row.- Returns:
- returns the markers
-
hasMarkerWithName
public boolean hasMarkerWithName(String name)
-
getAnchors
public List<String> getAnchors()
Get all anchors on this Row.- Returns:
- returns an ArrayList of anchors
-
getIdentifiers
public List<String> getIdentifiers()
Get all identifiers on this Row.- Returns:
- returns an ArrayList of identifiers
-
getLeftMargin
public MarginProperties getLeftMargin()
Get the left margin value for the Row, in characters.- Returns:
- returns the left margin
-
getRightMargin
public MarginProperties getRightMargin()
-
getAlignment
public FormattingTypes.Alignment getAlignment()
Gets the alignment value for the row.- Returns:
- returns the alignment
-
getRowSpacing
public Float getRowSpacing()
Description copied from interface:RowGets the row spacing, in rows.- Specified by:
getRowSpacingin interfaceRow- Returns:
- the row spacing, or null if not set
-
shouldAdjustForMargin
public boolean shouldAdjustForMargin()
-
allowsBreakAfter
public boolean allowsBreakAfter()
-
isInvisible
public boolean isInvisible()
-
getExternalReference
public Object getExternalReference()
Get the current external reference information tagged for this row.- Specified by:
getExternalReferencein interfaceRow- Returns:
- Object of the external reference.
-
-