adavid.swing
Class RaiseableBorder

java.lang.Object
  |
  +--adavid.swing.RaiseableBorder

public class RaiseableBorder
extends java.lang.Object
implements java.awt.event.MouseListener, javax.swing.event.ChangeListener, java.awt.event.MouseMotionListener


Constructor Summary
RaiseableBorder()
           
 
Method Summary
static void add(javax.swing.AbstractButton button)
          add a button to be monitored
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseDragged(java.awt.event.MouseEvent e)
          to correct when the mouse is dragged out/in
 void mouseEntered(java.awt.event.MouseEvent e)
          useless methods of MouseListener
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mouseMoved(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
          lower the border if enabled and raised border
 void mouseReleased(java.awt.event.MouseEvent e)
          raise the border if enabled and lowered border
static void remove(javax.swing.AbstractButton button)
          remove a button (remove the instance from the button's listener list)
 void stateChanged(javax.swing.event.ChangeEvent e)
          update the look if the state changes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RaiseableBorder

public RaiseableBorder()
Method Detail

add

public static void add(javax.swing.AbstractButton button)
add a button to be monitored

remove

public static void remove(javax.swing.AbstractButton button)
remove a button (remove the instance from the button's listener list)

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
lower the border if enabled and raised border
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
raise the border if enabled and lowered border
Specified by:
mouseReleased in interface java.awt.event.MouseListener

stateChanged

public void stateChanged(javax.swing.event.ChangeEvent e)
update the look if the state changes
Specified by:
stateChanged in interface javax.swing.event.ChangeListener

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)
to correct when the mouse is dragged out/in
Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
useless methods of MouseListener
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

mouseClicked

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

mouseMoved

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