de.uni_paderborn.fujaba.fsa.listener
Class ComponentBorderListener

java.lang.Object
  extended byjavax.swing.event.MouseInputAdapter
      extended byde.uni_paderborn.fujaba.fsa.listener.ComponentMouseListener
          extended byde.uni_paderborn.fujaba.fsa.listener.ComponentBorderListener
All Implemented Interfaces:
AscendDescendMouseHandler.Ascend, java.util.EventListener, javax.swing.event.MouseInputListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener

public class ComponentBorderListener
extends ComponentMouseListener
implements AscendDescendMouseHandler.Ascend

A mouse listener to resize diagram elements.

Version:
$Revision: 1.15 $
Author:
$Author: lowende $

Field Summary
private static ComponentBorderListener listener
          Attribute to implement the Singleton design pattern.
private  java.awt.Component theComponent
          No comment provided by developer, please add a comment to improve documentation.
 
Fields inherited from class de.uni_paderborn.fujaba.fsa.listener.ComponentMouseListener
DISTANCE, EAST, INNER, lastComponent, NORTH, SOUTH, UNKNOWN, WEST
 
Constructor Summary
private ComponentBorderListener()
          The private constructor to implement the Singleton design pattern.
 
Method Summary
static ComponentBorderListener get()
          The public method of the Singleton design pattern to get the system wide instance of this listener.
 void mouseDragged(java.awt.event.MouseEvent event)
          Overwrites the default method mouseDragged of ComponentMouseListener.
 void mousePressed(java.awt.event.MouseEvent event)
          Overwrites the default method mousePressed of ComponentMouseListener.
 void mouseReleased(java.awt.event.MouseEvent event)
          Overwrites the default method mouseReleased of ComponentMouseListener.
private  void refresh(javax.swing.JComponent comp)
          No comment provided by developer, please add a comment to improve documentation.
 
Methods inherited from class de.uni_paderborn.fujaba.fsa.listener.ComponentMouseListener
getOrientation, setOrientation, setOrientation
 
Methods inherited from class javax.swing.event.MouseInputAdapter
mouseClicked, mouseEntered, mouseExited, mouseMoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theComponent

private java.awt.Component theComponent
No comment provided by developer, please add a comment to improve documentation.


listener

private static ComponentBorderListener listener
Attribute to implement the Singleton design pattern. Only one instance is needed of this listener.

Constructor Detail

ComponentBorderListener

private ComponentBorderListener()
The private constructor to implement the Singleton design pattern.

Method Detail

get

public static ComponentBorderListener get()
The public method of the Singleton design pattern to get the system wide instance of this listener.

Returns:
No description provided

mousePressed

public void mousePressed(java.awt.event.MouseEvent event)
Overwrites the default method mousePressed of ComponentMouseListener. A press event initializes the listener for a later dragging.

Specified by:
mousePressed in interface java.awt.event.MouseListener
Parameters:
event - No description provided

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent event)
Overwrites the default method mouseReleased of ComponentMouseListener.

Specified by:
mouseReleased in interface java.awt.event.MouseListener
Parameters:
event - No description provided

refresh

private void refresh(javax.swing.JComponent comp)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
comp - No description provided

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent event)
Overwrites the default method mouseDragged of ComponentMouseListener. This method resizes the current component when the mouse is dragged at the border of the component.

Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener
Parameters:
event - No description provided