|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
D
- the type of element which can be written and read by this factoryL
- the type of object that stores the contents of a D
. If
clients cannot guarantee that always the same factory will be mapped
to the same identifier, then L
should be set to Object
and the methods which receive a L
should use
instanceof
before casting the argument.public interface DockFactory<D extends DockElement,L>
A DockConverter
which can not only store and load the contents of an
element, but also create a new DockElement
with the content.
Method Summary | |
---|---|
void |
estimateLocations(L layout,
LocationEstimationMap children)
Tries to estimate the DockableProperty s of the children of the
station which is represented by layout . |
D |
layout(L layout)
Creates a new DockElement and changes the layout of the new
element such that is matches layout . |
D |
layout(L layout,
Map<Integer,Dockable> children)
Creates a new DockElement and changes the layout of the new
element such that is matches layout . |
Methods inherited from interface bibliothek.gui.dock.layout.DockConverter |
---|
getID, getLayout, read, read, setLayout, setLayout, write, write |
Method Detail |
---|
void estimateLocations(L layout, LocationEstimationMap children)
DockableProperty
s of the children of the
station which is represented by layout
.children.getChild( ... )
, this
factory may also access the leafs in the tree of Dockable
s through
children.getSubChild(...)
.DockableProperty
,
it is the callers responsibility to handle chains of stations.
layout
- this stationchildren
- the children of the station, this method should call
DockLayoutInfo.setLocation(DockableProperty)
or LocationEstimationMap.setLocation(int, DockableProperty)
and
LocationEstimationMap.setLocation(int, int, DockableProperty)
for as many children as possibleD layout(L layout, Map<Integer,Dockable> children)
DockElement
and changes the layout of the new
element such that is matches layout
.
layout
- the new layoutchildren
- some children, note that the map may not contain all elements
which were present when the layout was created.
null
if layout can't be usedD layout(L layout)
DockElement
and changes the layout of the new
element such that is matches layout
. This method should
not add any children to the element.
layout
- the new layout
null
if layout can't be used
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |