|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.layout.DefaultLocationEstimationMap
public class DefaultLocationEstimationMap
This default implementation of a LocationEstimationMap
works directly with the tree built
by DockLayoutComposition
s. It is to be used as follows:
DockLayoutComposition
.subMap(int)
until a leaf is reached.setLocation
-methods.finish()
once all locations for a node is set.
Constructor Summary | |
---|---|
DefaultLocationEstimationMap(DockLayoutComposition root)
Creates a new map |
Method Summary | |
---|---|
void |
finish()
Closes up this node. |
DockLayoutInfo |
getChild(int childIndex)
Gets the DockLayoutInfo that is associated with key childIndex . |
int |
getChildCount()
Gets the number of children of this map |
DockLayoutComposition |
getRoot()
Gets the element which is represented by this map. |
DockLayoutInfo |
getSubChild(int childIndex,
int subChildIndex)
Gets the subChildIndex 'th child of childIndex . |
int |
getSubChildCount(int childIndex)
Gets the number of children the item childIndex has. |
void |
setLocation(int childIndex,
DockableProperty location)
Informs this map that the jump from this station to childIndex can be described
by location . |
void |
setLocation(int childIndex,
int subChildIndex,
DockableProperty location)
Informs this map that the path to child childIndex, subChildIndex contains
location . |
DefaultLocationEstimationMap |
subMap(int childIndex)
Returns a newly created map that centers around the child with index childIndex . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultLocationEstimationMap(DockLayoutComposition root)
root
- the representation of this stationMethod Detail |
---|
public DefaultLocationEstimationMap subMap(int childIndex)
childIndex
.
childIndex
- the index of the child
public DockLayoutComposition getRoot()
public void finish()
public int getChildCount()
LocationEstimationMap
getChildCount
in interface LocationEstimationMap
public DockLayoutInfo getChild(int childIndex)
LocationEstimationMap
DockLayoutInfo
that is associated with key childIndex
.
getChild
in interface LocationEstimationMap
childIndex
- some key between 0 and LocationEstimationMap.getChildCount()
null
public int getSubChildCount(int childIndex)
LocationEstimationMap
childIndex
has.
getSubChildCount
in interface LocationEstimationMap
childIndex
- the key of some element
childIndex
public DockLayoutInfo getSubChild(int childIndex, int subChildIndex)
LocationEstimationMap
subChildIndex
'th child of childIndex
.
getSubChild
in interface LocationEstimationMap
childIndex
- the key to some childsubChildIndex
- the index of some child of childIndex
null
public void setLocation(int childIndex, DockableProperty location)
LocationEstimationMap
childIndex
can be described
by location
.
setLocation
in interface LocationEstimationMap
childIndex
- the key of some childlocation
- the location of childIndex
, null
will be ignoredpublic void setLocation(int childIndex, int subChildIndex, DockableProperty location)
LocationEstimationMap
childIndex, subChildIndex
contains
location
. The part location
describes the jump from this
station to the child childIndex
.
setLocation
in interface LocationEstimationMap
childIndex
- the key of some childsubChildIndex
- the index of some grand-childlocation
- the location, null
will be ignored
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |