public class Position extends Object
Constructor and Description |
---|
Position(LayoutManager lm)
Construct a position.
|
Position(LayoutManager lm,
int index)
Construct a position.
|
Modifier and Type | Method and Description |
---|---|
boolean |
generatesAreas() |
int |
getIndex()
Returns the index of this position in the sequence of Position elements.
|
LayoutManager |
getLM() |
LayoutManager |
getLM(int depth) |
Position |
getPosition()
Overridden by NonLeafPosition to return the Position of its child LM.
|
Position |
getPosition(int depth)
Overridden by NonLeafPosition to return the Position of its child LM.
|
protected String |
getShortLMName() |
void |
setIndex(int value)
Sets the index of this position in the sequence of Position elements.
|
String |
toString() |
public Position(LayoutManager lm)
lm
- the associated layout managerpublic Position(LayoutManager lm, int index)
lm
- the associated layout managerindex
- the indexpublic LayoutManager getLM()
public LayoutManager getLM(int depth)
depth
- the depth at which the LM in this position is foundpublic Position getPosition()
public Position getPosition(int depth)
depth
- the depth at which the position in this position is foundpublic boolean generatesAreas()
public void setIndex(int value)
value
- this position's indexpublic int getIndex()
protected String getShortLMName()
Copyright © 2025 Apache Software Foundation. All rights reserved.