net.sourceforge.atunes.gui.dockableView
Class MouseResizeListener

java.lang.Object
  extended by net.sourceforge.atunes.gui.dockableView.MouseResizeListener
All Implemented Interfaces:
java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener

public class MouseResizeListener
extends java.lang.Object
implements java.awt.event.MouseListener, java.awt.event.MouseMotionListener

The Class MouseResizeListener.

Author:
fleax

Field Summary
static int EAST_RESIZE
          The Constant EAST_RESIZE.
static int NORTH_EAST_RESIZE
          The Constant NORTH_EAST_RESIZE.
static int NORTH_RESIZE
          The Constant NORTH_RESIZE.
static int NORTH_WEST_RESIZE
          The Constant NORTH_WEST_RESIZE.
static int SOUTH_EAST_RESIZE
          The Constant SOUTH_EAST_RESIZE.
static int SOUTH_RESIZE
          The Constant SOUTH_RESIZE.
static int SOUTH_WEST_RESIZE
          The Constant SOUTH_WEST_RESIZE.
static int WEST_RESIZE
          The Constant WEST_RESIZE.
 
Constructor Summary
MouseResizeListener(DockableWindow frame, java.awt.Window frameToResize, javax.swing.JPanel panelToResize, int orientation)
          Instantiates a new mouse resize listener.
 
Method Summary
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseDragged(java.awt.event.MouseEvent me)
           
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mouseMoved(java.awt.event.MouseEvent me)
           
 void mousePressed(java.awt.event.MouseEvent me)
           
 void mouseReleased(java.awt.event.MouseEvent me)
           
 void setMinimunHeight(int minimunHeight)
          Sets the minimun height.
 void setMinimunWidth(int minimunWidth)
          Sets the minimun width.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NORTH_RESIZE

public static final int NORTH_RESIZE
The Constant NORTH_RESIZE.

See Also:
Constant Field Values

EAST_RESIZE

public static final int EAST_RESIZE
The Constant EAST_RESIZE.

See Also:
Constant Field Values

SOUTH_RESIZE

public static final int SOUTH_RESIZE
The Constant SOUTH_RESIZE.

See Also:
Constant Field Values

WEST_RESIZE

public static final int WEST_RESIZE
The Constant WEST_RESIZE.

See Also:
Constant Field Values

NORTH_WEST_RESIZE

public static final int NORTH_WEST_RESIZE
The Constant NORTH_WEST_RESIZE.

See Also:
Constant Field Values

NORTH_EAST_RESIZE

public static final int NORTH_EAST_RESIZE
The Constant NORTH_EAST_RESIZE.

See Also:
Constant Field Values

SOUTH_WEST_RESIZE

public static final int SOUTH_WEST_RESIZE
The Constant SOUTH_WEST_RESIZE.

See Also:
Constant Field Values

SOUTH_EAST_RESIZE

public static final int SOUTH_EAST_RESIZE
The Constant SOUTH_EAST_RESIZE.

See Also:
Constant Field Values
Constructor Detail

MouseResizeListener

public MouseResizeListener(DockableWindow frame,
                           java.awt.Window frameToResize,
                           javax.swing.JPanel panelToResize,
                           int orientation)
Instantiates a new mouse resize listener.

Parameters:
frame - the frame
frameToResize - the frame to resize
panelToResize - the panel to resize
orientation - the orientation
Method Detail

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent me)
Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Specified by:
mouseExited in interface java.awt.event.MouseListener

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent me)
Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent me)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent me)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

setMinimunHeight

public void setMinimunHeight(int minimunHeight)
Sets the minimun height.

Parameters:
minimunHeight - the new minimun height

setMinimunWidth

public void setMinimunWidth(int minimunWidth)
Sets the minimun width.

Parameters:
minimunWidth - the new minimun width


Copyright © 2006-2008 The aTunes Team. All Rights Reserved.