|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.facile.station.split.ResizeElement<T>
public abstract class ResizeElement<T>
Represents one node of the tree which represents the split-tree of
a SplitDockStation.
| Constructor Summary | |
|---|---|
ResizeElement(ResizeElement<T> parent,
LockedResizeLayoutManager<T> layout)
Creates a new element. |
|
| Method Summary | |
|---|---|
abstract void |
adapt(double deltaWidth,
double deltaHeight)
Adapts the size of the children of this element given the size change the parent could provide. |
protected abstract ResizeRequest |
createRequest()
Creates the initial request of changed sizes. |
protected abstract ResizeElement<T>[] |
getChildren()
Gets the children of this element. |
LockedResizeLayoutManager<T> |
getLayout()
Gets the layout that created this element. |
ResizeElement<T> |
getParent()
Gets the parent of this node |
ResizeRequest |
getRequest()
Gets the initial request for the size change. |
ResizeRoot<T> |
getResizeRoot()
Gets the root of this tree. |
boolean |
isValid()
Checks whether this ResizeElement is valid. |
void |
prepareRequests()
Calls createRequest() on this and recursively
on all children. |
void |
prepareResize()
Called before the bounds of a tree are updated, can be used to store some properties that are later needed to create the ResizeRequest. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResizeElement(ResizeElement<T> parent,
LockedResizeLayoutManager<T> layout)
parent - the parent of thislayout - the origin of this element| Method Detail |
|---|
public ResizeElement<T> getParent()
null if this is a rootpublic LockedResizeLayoutManager<T> getLayout()
protected abstract ResizeRequest createRequest()
nullpublic ResizeRequest getRequest()
nullprotected abstract ResizeElement<T>[] getChildren()
nullpublic void prepareResize()
ResizeRequest.
public void prepareRequests()
createRequest() on this and recursively
on all children. Stores the result for later analysis.
public boolean isValid()
ResizeElement is valid. A valid ResizeElement has no children
that are null.
true if this element can actually be used
public abstract void adapt(double deltaWidth,
double deltaHeight)
deltaWidth - the change of this elements widthdeltaHeight - the change of this elements heightpublic ResizeRoot<T> getResizeRoot()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||