bibliothek.gui.dock.station
Class StationDropItem

java.lang.Object
  extended by bibliothek.gui.dock.station.StationDropItem

public class StationDropItem
extends Object

This class offers information about a Dockable that is going to be dropped. The properties include:

Author:
Benjamin Sigg

Constructor Summary
StationDropItem(int mouseX, int mouseY, int titleX, int titleY, Dockable dockable)
          Creates a new item
StationDropItem(int mouseX, int mouseY, int titleX, int titleY, Dockable dockable, Dimension size, Dimension minimum)
          Creates a new item
 
Method Summary
 Dockable getDockable()
          Gets the item that is moved around
 Dimension getMinimumSize()
          Gets the original minimum size of the Dockable.
 int getMouseX()
          Gets the position of the mouse on the screen
 int getMouseY()
          Gets the position of the mouse on the screen
 Dimension getOriginalSize()
          Gets the original size of the Dockable, the size it had when the drag and drop operation started.
 int getTitleX()
          Gets the position of the title on the screen
 int getTitleY()
          Gets the position of the title on the screen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StationDropItem

public StationDropItem(int mouseX,
                       int mouseY,
                       int titleX,
                       int titleY,
                       Dockable dockable)
Creates a new item

Parameters:
mouseX - the position of the mouse
mouseY - the position of the mouse
titleX - the location of the title
titleY - the location of the title
dockable - the item that is moved around

StationDropItem

public StationDropItem(int mouseX,
                       int mouseY,
                       int titleX,
                       int titleY,
                       Dockable dockable,
                       Dimension size,
                       Dimension minimum)
Creates a new item

Parameters:
mouseX - the position of the mouse
mouseY - the position of the mouse
titleX - the location of the title
titleY - the location of the title
dockable - the item that is moved around
size - the original size of dockable
minimum - the original minimum size of dockable
Method Detail

getDockable

public Dockable getDockable()
Gets the item that is moved around

Returns:
the item that is moved around

getOriginalSize

public Dimension getOriginalSize()
Gets the original size of the Dockable, the size it had when the drag and drop operation started.

Returns:
the original size

getMinimumSize

public Dimension getMinimumSize()
Gets the original minimum size of the Dockable.

Returns:
the original minimum sizes

getMouseX

public int getMouseX()
Gets the position of the mouse on the screen

Returns:
the x coordinate

getMouseY

public int getMouseY()
Gets the position of the mouse on the screen

Returns:
the y coordinate

getTitleX

public int getTitleX()
Gets the position of the title on the screen

Returns:
the x coordinate

getTitleY

public int getTitleY()
Gets the position of the title on the screen

Returns:
the y coordinate