Package org.apache.fop.layoutmgr
Class Position
java.lang.Object
org.apache.fop.layoutmgr.Position
- Direct Known Subclasses:
BlockStackingLayoutManager.MappingPosition
,LeafPosition
,ListItemLayoutManager.ListItemPosition
,NonLeafPosition
,SpaceResolver.SpaceHandlingBreakPosition
,SpaceResolver.SpaceHandlingPosition
A position.
-
Constructor Summary
ConstructorDescriptionConstruct a position.Position
(LayoutManager lm, int index) Construct a position. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
getIndex()
Returns the index of this position in the sequence of Position elements.getLM()
getLM
(int depth) Overridden by NonLeafPosition to return the Position of its child LM.getPosition
(int depth) Overridden by NonLeafPosition to return the Position of its child LM.protected String
void
setIndex
(int value) Sets the index of this position in the sequence of Position elements.toString()
-
Constructor Details
-
Position
Construct a position.- Parameters:
lm
- the associated layout manager
-
Position
Construct a position.- Parameters:
lm
- the associated layout managerindex
- the index
-
-
Method Details
-
getLM
- Returns:
- associated layout manager
-
getLM
- Parameters:
depth
- the depth at which the LM in this position is found- Returns:
- associated layout manager
-
getPosition
Overridden by NonLeafPosition to return the Position of its child LM.- Returns:
- a position or null
-
getPosition
Overridden by NonLeafPosition to return the Position of its child LM.- Parameters:
depth
- the depth at which the position in this position is found- Returns:
- a position or null
-
generatesAreas
public boolean generatesAreas()- Returns:
- true if generates areas
-
setIndex
public void setIndex(int value) Sets the index of this position in the sequence of Position elements.- Parameters:
value
- this position's index
-
getIndex
public int getIndex()Returns the index of this position in the sequence of Position elements.- Returns:
- the index of this position in the sequence of Position elements
-
getShortLMName
- Returns:
- short name of associated layout manager
-
toString
-