Class BasicToolBarUI.DockingListener

All Implemented Interfaces:
MouseListener, MouseMotionListener, EventListener, MouseInputListener
Direct Known Subclasses:
MetalToolBarUI.MetalDockingListener
Enclosing class:
BasicToolBarUI
public class BasicToolBarUI.DockingListener
extends Object
implements MouseInputListener

This class should be treated as a "protected" inner class. Instantiate it only within subclasses of BasicToolBarUI.

Fields

Modifier and Type Field Description
protected boolean isDragging

true if the JToolBar is being dragged.

protected Point origin

The origin point.

protected JToolBar toolBar

The instance of JToolBar.

Constructors

Constructor Description
DockingListener​(JToolBar t)

Constructs a new instance of DockingListener.

Methods

Methods declared in class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods declared in interface java.awt.event.MouseListener

mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased

Methods declared in interface java.awt.event.MouseMotionListener

mouseDragged, mouseMoved

Fields

toolBar

protected JToolBar toolBar

The instance of JToolBar.

isDragging

protected boolean isDragging

true if the JToolBar is being dragged.

origin

protected Point origin

The origin point.

Constructors

DockingListener

public DockingListener(JToolBar t)

Constructs a new instance of DockingListener.

Parameters:
t - an instance of JToolBar

© 1993, 2020, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/plaf/basic/BasicToolBarUI.DockingListener.html