| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConflictResolver<T>
A ConflictResolver determines how to merge ResizeRequests
 and later how to resolve situations where two requests have to be handled
 at the same time.
| Method Summary | |
|---|---|
|  ResizeRequest | requestHorizontal(ResizeRequest left,
                  ResizeRequest right,
                  ResizeNode<T> node)Combines the two request leftandrightinto
 a new request. | 
|  ResizeRequest | requestVertical(ResizeRequest top,
                ResizeRequest bottom,
                ResizeNode<T> node)Combines the two requests topandbottominto
 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. | 
| Method Detail | 
|---|
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 merged
left and right
 or null to cancel the requests
ResizeRequest 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 merged
top and bottom
 or null to cancel the requests
double 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 divider
double 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 divider
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||