public interface ConflictResolver<T>
ConflictResolver determines how to merge ResizeRequests
and later how to resolve situations where two requests have to be handled
at the same time.| Modifier and Type | Method and Description |
|---|---|
ResizeRequest |
requestHorizontal(ResizeRequest left,
ResizeRequest right,
ResizeNode<T> node)
Combines the two request
left and right into
a new request. |
ResizeRequest |
requestVertical(ResizeRequest top,
ResizeRequest bottom,
ResizeNode<T> node)
Combines the two requests
top and bottom into
a new request. |
double |
resolveHorizontal(ResizeNode<T> node,
ResizeRequest left,
double deltaLeft,
ResizeRequest right,
double deltaRight)
Called whenever a node has to grant two resize requests at the same time.
|
double |
resolveVertical(ResizeNode<T> node,
ResizeRequest top,
double deltaTop,
ResizeRequest bottom,
double deltaBottom)
Called whenever a node has to grant two resize requests at the same time.
|
ResizeRequest requestHorizontal(ResizeRequest left, ResizeRequest right, ResizeNode<T> node)
left and right into
a new request.left - the request from the left, can be nullright - the request from the right, can be nullnode - the node for which the requests have to be mergedleft and right
or null to cancel the requestsResizeRequest requestVertical(ResizeRequest top, ResizeRequest bottom, ResizeNode<T> node)
top and bottom into
a new request.top - the request from the top, can be nullbottom - the request from the bottom, can be nullnode - the node for which the requests have to be mergedtop and bottom
or null to cancel the requestsdouble resolveHorizontal(ResizeNode<T> node, ResizeRequest left, double deltaLeft, ResizeRequest right, double deltaRight)
node - the node at which a conflict occurredleft - the request from the left childdeltaLeft - how much the left child would move the dividerright - the request from the right childdeltaRight - how much the right child would move the dividerdouble resolveVertical(ResizeNode<T> node, ResizeRequest top, double deltaTop, ResizeRequest bottom, double deltaBottom)
node - the node at which a conflict occurredtop - the request from the top childdeltaTop - how much the top child would move the dividerbottom - the request from the bottom childdeltaBottom - how much the bottom child would move the dividerCopyright © 2018. All rights reserved.