404 |
boolean tmp = ((loc == SwingConstants.NORTH) |
boolean tmp = ((loc == SwingConstants.NORTH) |
405 |
|| (loc == SwingConstants.SOUTH) || (loc == -1)); |
|| (loc == SwingConstants.SOUTH) || (loc == -1)); |
406 |
|
|
407 |
|
cachedOrientation = toolBar.getOrientation(); |
408 |
|
cachedBounds = toolBar.getSize(); |
409 |
if (((cachedOrientation == SwingConstants.HORIZONTAL) && tmp) |
if (((cachedOrientation == SwingConstants.HORIZONTAL) && tmp) |
410 |
|| ((cachedOrientation == VERTICAL) && ! tmp)) |
|| ((cachedOrientation == VERTICAL) && ! tmp)) |
411 |
{ |
{ |
573 |
|
|
574 |
dragWindow = createDragWindow(toolBar); |
dragWindow = createDragWindow(toolBar); |
575 |
|
|
|
cachedBounds = toolBar.getPreferredSize(); |
|
|
cachedOrientation = toolBar.getOrientation(); |
|
|
|
|
576 |
nonRolloverBorder = createNonRolloverBorder(); |
nonRolloverBorder = createNonRolloverBorder(); |
577 |
rolloverBorder = createRolloverBorder(); |
rolloverBorder = createRolloverBorder(); |
578 |
|
|
1060 |
isDragging = true; |
isDragging = true; |
1061 |
|
|
1062 |
if (dragWindow != null) |
if (dragWindow != null) |
1063 |
dragWindow.setOffset(new Point(e.getX(), e.getY())); |
dragWindow.setOffset(new Point(cachedBounds.width/2, cachedBounds.height/2)); |
1064 |
|
|
1065 |
dragTo(e.getPoint(), origin); |
dragTo(e.getPoint(), origin); |
1066 |
} |
} |