public class Position
extends java.lang.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 java.lang.String |
getShortLMName() |
void |
setIndex(int value)
Sets the index of this position in the sequence of Position elements.
|
java.lang.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 java.lang.String getShortLMName()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright 1999-2017 The Apache Software Foundation. All Rights Reserved.