|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.event.MouseAdapter
bibliothek.gui.dock.station.split.DefaultSplitDividerStrategy.Handler
public static class DefaultSplitDividerStrategy.Handler
A DefaultSplitDividerStrategy.Handler
is responsible for handling the needs of one SplitDockStation
.
Constructor Summary | |
---|---|
DefaultSplitDividerStrategy.Handler(SplitDockStation station)
Creates a new strategy that will monitor station . |
Method Summary | |
---|---|
protected void |
checkMousePositionAsync()
Asynchronously checks the current position of the mouse and updates the cursor if necessary. |
void |
destroy()
Disposes all resources that are used by this handler. |
Component |
getContainer()
Gets the Component with which this strategy was initialized . |
SplitDockStation |
getStation()
Gets the station which is monitored by this strategy |
void |
install(Component container)
|
void |
mouseDragged(MouseEvent e)
|
void |
mouseExited(MouseEvent e)
|
void |
mouseMoved(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
void |
paint(Graphics g)
Paints a line at the current location of the divider. |
protected void |
repaint(int x,
int y,
int width,
int height)
Repaints parts of the base component . |
protected void |
setCursor(Cursor cursor)
Changes the cursor of the base component . |
Methods inherited from class java.awt.event.MouseAdapter |
---|
mouseClicked, mouseEntered |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.awt.event.MouseListener |
---|
mouseClicked, mouseEntered |
Constructor Detail |
---|
public DefaultSplitDividerStrategy.Handler(SplitDockStation station)
station
.
station
- the station to monitorMethod Detail |
---|
public SplitDockStation getStation()
public void install(Component container)
public Component getContainer()
Component
with which this strategy was initialized
.
install(Component)
public void destroy()
protected void setCursor(Cursor cursor)
the base component
. Subclasses may override this
method to use custom cursors.
cursor
- the cursor to set, may be null
protected void repaint(int x, int y, int width, int height)
base component
.
x
- x coordinatey
- y coordinatewidth
- the width of the are to repaintheight
- the height of the are to repaintprotected void checkMousePositionAsync()
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
mousePressed
in class MouseAdapter
public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
mouseReleased
in class MouseAdapter
public void mouseMoved(MouseEvent e)
mouseMoved
in interface MouseMotionListener
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
mouseExited
in class MouseAdapter
public void paint(Graphics g)
g
- the Graphics used to paint
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |