152 |
private transient int cachedOrientation; |
private transient int cachedOrientation; |
153 |
|
|
154 |
/** |
/** |
155 |
* This method creates a new BasicToolBarUI object for the given JToolBar. |
* This method creates a new <code>BasicToolBarUI</code> object for the given JToolBar. |
156 |
*/ |
*/ |
157 |
public BasicToolBarUI() |
public BasicToolBarUI() |
158 |
{ |
{ |
159 |
super(); |
// Do nothing here. |
160 |
} |
} |
161 |
|
|
162 |
/** |
/** |
168 |
* |
* |
169 |
* @return Whether the JToolBar can dock. |
* @return Whether the JToolBar can dock. |
170 |
*/ |
*/ |
171 |
protected boolean canDock(Component c, Point p) |
public boolean canDock(Component c, Point p) |
172 |
{ |
{ |
173 |
if (areaOfClick(c, p) != -1) |
return areaOfClick(c, p) != -1; |
|
return true; |
|
|
|
|
|
return false; |
|
174 |
} |
} |
175 |
|
|
176 |
/** |
/** |
934 |
* This is the MouseHandler class that allows the user to drag the JToolBar |
* This is the MouseHandler class that allows the user to drag the JToolBar |
935 |
* in and out of the parent and dock it if it can. |
* in and out of the parent and dock it if it can. |
936 |
*/ |
*/ |
937 |
protected class DockingListener implements MouseInputListener |
public class DockingListener implements MouseInputListener |
938 |
{ |
{ |
939 |
/** Whether the JToolBar is being dragged. */ |
/** Whether the JToolBar is being dragged. */ |
940 |
protected boolean isDragging; |
protected boolean isDragging; |