Constructor and Description |
---|
JToolBarLocation() |
Modifier and Type | Method and Description |
---|---|
Point |
dockLocation(JToolBar toolBar,
Container dock,
String constraint)
Returns the location where to dock the given
, at the given constraint position. |
Point |
pointToGrab(JToolBar toolBar)
Returns the point where to grab the given
. |
@RunsInCurrentThread public Point pointToGrab(JToolBar toolBar)
JToolBar
.
Note: This method is not guaranteed to be executed in the event dispatch thread (EDT.) Clients are responsible for calling this method from the EDT.
toolBar
- the target JToolBar
.JToolBar
.@RunsInCurrentThread public Point dockLocation(JToolBar toolBar, Container dock, String constraint)
JToolBar
, at the given constraint position.
The constraint position must be one of the constants NORTH
,
EAST
, SOUTH
, or
WEST
.
Note: This method is not guaranteed to be executed in the event dispatch thread (EDT.) Clients are responsible for calling this method from the EDT.
toolBar
- the target JToolBar
.dock
- the container where to dock the JToolBar
to.constraint
- the constraint position.JToolBar
.IllegalArgumentException
- if the constraint has an invalid value.Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.