|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.event.MouseInputAdapter
bibliothek.gui.dock.station.SplitDockStation.DividerListener
private class SplitDockStation.DividerListener
This listener is added directly to the Component
of this
SplitDockStation
. This listener reacts when a divider is grabbed
by the mouse, and the listener will move the divider to a new position.
Field Summary | |
---|---|
private java.awt.Rectangle |
bounds
the current bounds of the divider |
private Node |
current
the node of the currently selected divider |
private int |
deltaX
A small modification of the position of the mouse. |
private int |
deltaY
A small modification of the position of the mouse. |
private double |
divider
the current location of the divider |
private boolean |
pressed
the current state of the mouse: pressed or not pressed |
Constructor Summary | |
---|---|
private |
SplitDockStation.DividerListener()
|
Method Summary | |
---|---|
void |
mouseDragged(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mouseMoved(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
void |
paint(java.awt.Graphics g)
Paints a line at the current location of the divider. |
Methods inherited from class javax.swing.event.MouseInputAdapter |
---|
mouseClicked, mouseEntered |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Node current
private double divider
private boolean pressed
private java.awt.Rectangle bounds
private int deltaX
private int deltaY
Constructor Detail |
---|
private SplitDockStation.DividerListener()
Method Detail |
---|
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
mousePressed
in class javax.swing.event.MouseInputAdapter
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
mouseDragged
in class javax.swing.event.MouseInputAdapter
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
mouseReleased
in class javax.swing.event.MouseInputAdapter
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
mouseMoved
in class javax.swing.event.MouseInputAdapter
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
mouseExited
in class javax.swing.event.MouseInputAdapter
public void paint(java.awt.Graphics g)
g
- the Graphics used to paint
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |