public final class JToolBarLocation extends Object
JToolBar
.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
JToolBar , at the given constraint position. |
Point |
pointToGrab(JToolBar toolBar)
Returns the point where to grab the given
JToolBar . |
@RunsInCurrentThread @Nonnull public Point pointToGrab(@Nonnull JToolBar toolBar)
Returns the point where to grab the given JToolBar
.
Note: This method is accessed in the current executing thread. Such thread may or may not be the event dispatch thread (EDT). Client code must call this method from the EDT.
toolBar
- the target JToolBar
.JToolBar
.@RunsInCurrentThread @Nonnull public Point dockLocation(@Nonnull JToolBar toolBar, @Nonnull Container dock, @Nonnull String constraint)
Returns the location where to dock the given JToolBar
, at the given constraint position. The constraint
position must be one of the constants BorderLayout.NORTH NORTH
, BorderLayout.EAST EAST
,
BorderLayout.SOUTH SOUTH
, or BorderLayout.WEST WEST
.
Note: This method is accessed in the current executing thread. Such thread may or may not be the event dispatch thread (EDT). Client code must call 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 © 2014–2019 AssertJ. All rights reserved.