org.noos.xing.mydoggy.plaf.ui.cmp.event
Class FloatingResizeMouseInputHandler
java.lang.Object
org.noos.xing.mydoggy.plaf.ui.cmp.event.FloatingResizeMouseInputHandler
- All Implemented Interfaces:
- MouseListener, MouseMotionListener, EventListener, MouseInputListener
public class FloatingResizeMouseInputHandler
- extends Object
- implements MouseInputListener
- Author:
- Angelo De Caro (angelo.decaro@gmail.com)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lastCursor
protected Cursor lastCursor
dragCursor
protected int dragCursor
dragOffsetX
protected int dragOffsetX
dragOffsetY
protected int dragOffsetY
dragWidth
protected int dragWidth
dragHeight
protected int dragHeight
floatingContainer
protected Component floatingContainer
resizable
protected boolean resizable
isWindow
protected boolean isWindow
minimumSize
protected Dimension minimumSize
FloatingResizeMouseInputHandler
public FloatingResizeMouseInputHandler(Component floatingContainer)
mousePressed
public void mousePressed(MouseEvent ev)
- Specified by:
mousePressed in interface MouseListener
mouseReleased
public void mouseReleased(MouseEvent ev)
- Specified by:
mouseReleased in interface MouseListener
mouseMoved
public void mouseMoved(MouseEvent ev)
- Specified by:
mouseMoved in interface MouseMotionListener
mouseDragged
public void mouseDragged(MouseEvent ev)
- Specified by:
mouseDragged in interface MouseMotionListener
mouseEntered
public void mouseEntered(MouseEvent ev)
- Specified by:
mouseEntered in interface MouseListener
mouseExited
public void mouseExited(MouseEvent ev)
- Specified by:
mouseExited in interface MouseListener
mouseClicked
public void mouseClicked(MouseEvent ev)
- Specified by:
mouseClicked in interface MouseListener
getMinimumSize
public Dimension getMinimumSize()
setMinimumSize
public void setMinimumSize(Dimension minimumSize)
getFloatingContainer
public Component getFloatingContainer()
setFloatingContainer
public void setFloatingContainer(Component floatingContainer)
isResizable
public boolean isResizable()
setResizable
public void setResizable(boolean resizable)
isResizeSuppressed
protected boolean isResizeSuppressed()
adjust
protected void adjust(Rectangle bounds,
Dimension min,
int deltaX,
int deltaY,
int deltaWidth,
int deltaHeight)
calculateCorner
protected int calculateCorner(Component c,
int x,
int y)
getCursor
protected int getCursor(int corner)
calculatePosition
protected int calculatePosition(int spot,
int width)
Copyright © 2012. All Rights Reserved.