net.sourceforge.atunes.gui.dockableView
Class DockableWindow

java.lang.Object
  extended by net.sourceforge.atunes.gui.dockableView.DockableWindow
All Implemented Interfaces:
java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener
Direct Known Subclasses:
DockableDialog, DockableFrame

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

The Class DockableWindow.


Field Summary
protected  javax.swing.JPanel container
          The container.
protected static int DOCKABLE_BOUNDS
          The Constant DOCKABLE_BOUNDS.
protected  javax.swing.JPanel eastPanel
          The east panel.
protected  java.awt.Window frame
          The frame.
protected  int height
          The height.
protected  boolean hidden
          The hidden.
protected  DockFramePositionListener listener
          The listener.
protected  java.awt.Point location
          The location.
protected  javax.swing.JPopupMenu menu
          The menu.
protected  javax.swing.JPanel nePanel
          The ne panel.
protected  javax.swing.JPanel northPanel
          The north panel.
protected  javax.swing.JPanel nwPanel
          The nw panel.
protected  javax.swing.JPanel panel
          The panel.
protected  java.awt.event.MouseEvent pressed
          The pressed.
protected static int RESIZABLE_BORDER
          The Constant RESIZABLE_BORDER.
protected  javax.swing.JPanel sePanel
          The se panel.
protected  javax.swing.JPanel southPanel
          The south panel.
protected  javax.swing.JPanel swPanel
          The sw panel.
protected  javax.swing.JLabel title
          The title.
protected  javax.swing.JPanel titlePanel
          The title panel.
protected  javax.swing.JPanel topBar
          The top bar.
protected  javax.swing.JPanel westPanel
          The west panel.
 
Constructor Summary
DockableWindow(DockFramePositionListener listener, java.awt.Dimension minimumSize)
          Instantiates a new dockable window.
 
Method Summary
 void addContent(javax.swing.JPanel p)
          Adds the content.
protected  void addNorthResizableBorder()
          Adds the north resizable border.
protected  void addResizableBorders()
          Adds the resizable borders.
 java.awt.Rectangle getBounds()
          Gets the bounds.
 java.awt.Rectangle getInsideBounds()
          Gets the inside bounds.
 java.awt.Point getLocation()
          Gets the location.
 java.awt.Rectangle getOutsideBounds()
          Gets the outside bounds.
 boolean isHidden()
          Checks if is hidden.
 boolean isVisible()
          Checks if is visible.
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseDragged(java.awt.event.MouseEvent me)
           
 void mouseEntered(java.awt.event.MouseEvent arg0)
           
 void mouseExited(java.awt.event.MouseEvent arg0)
           
 void mouseMoved(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
 void setBackground(java.awt.Color c)
          Sets the background.
abstract  void setDefaultCloseOperation(int op)
          Sets the default close operation.
protected  void setHidden(boolean value)
          Sets the hidden.
abstract  void setIcon(java.awt.Image i)
          Sets an icon to window.
 void setLocation(int x, int y)
          Sets the location.
abstract  void setLocationRelativeTo(java.awt.Component c)
          Sets the location relative to.
 void setMenu(javax.swing.JPopupMenu menu)
          Sets the menu.
abstract  void setTitle(java.lang.String s)
          Sets the title.
 void setTitleBarBackground(java.awt.Color c)
          Sets the title bar background.
 void setVisible(boolean visible)
          Sets the visible.
 void show()
          Show.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESIZABLE_BORDER

protected static final int RESIZABLE_BORDER
The Constant RESIZABLE_BORDER.

See Also:
Constant Field Values

DOCKABLE_BOUNDS

protected static final int DOCKABLE_BOUNDS
The Constant DOCKABLE_BOUNDS.

See Also:
Constant Field Values

location

protected java.awt.Point location
The location.


pressed

protected java.awt.event.MouseEvent pressed
The pressed.


container

protected javax.swing.JPanel container
The container.


frame

protected java.awt.Window frame
The frame.


panel

protected javax.swing.JPanel panel
The panel.


title

protected javax.swing.JLabel title
The title.


topBar

protected javax.swing.JPanel topBar
The top bar.


listener

protected DockFramePositionListener listener
The listener.


hidden

protected boolean hidden
The hidden.


height

protected int height
The height.


northPanel

protected javax.swing.JPanel northPanel
The north panel.


nePanel

protected javax.swing.JPanel nePanel
The ne panel.


nwPanel

protected javax.swing.JPanel nwPanel
The nw panel.


eastPanel

protected javax.swing.JPanel eastPanel
The east panel.


westPanel

protected javax.swing.JPanel westPanel
The west panel.


southPanel

protected javax.swing.JPanel southPanel
The south panel.


sePanel

protected javax.swing.JPanel sePanel
The se panel.


swPanel

protected javax.swing.JPanel swPanel
The sw panel.


titlePanel

protected javax.swing.JPanel titlePanel
The title panel.


menu

protected javax.swing.JPopupMenu menu
The menu.

Constructor Detail

DockableWindow

public DockableWindow(DockFramePositionListener listener,
                      java.awt.Dimension minimumSize)
Instantiates a new dockable window.

Parameters:
listener - the listener
minimumSize - the minimum size
Method Detail

addContent

public void addContent(javax.swing.JPanel p)
Adds the content.

Parameters:
p - the p

addNorthResizableBorder

protected void addNorthResizableBorder()
Adds the north resizable border.


addResizableBorders

protected void addResizableBorders()
Adds the resizable borders.


getBounds

public java.awt.Rectangle getBounds()
Gets the bounds.

Returns:
the bounds

getInsideBounds

public java.awt.Rectangle getInsideBounds()
Gets the inside bounds.

Returns:
the inside bounds

getLocation

public java.awt.Point getLocation()
Gets the location.

Returns:
the location

getOutsideBounds

public java.awt.Rectangle getOutsideBounds()
Gets the outside bounds.

Returns:
the outside bounds

isHidden

public boolean isHidden()
Checks if is hidden.

Returns:
true, if is hidden

isVisible

public boolean isVisible()
Checks if is visible.

Returns:
true, if is visible

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 arg0)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

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

mouseMoved

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

mousePressed

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

mouseReleased

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

setBackground

public void setBackground(java.awt.Color c)
Sets the background.

Parameters:
c - the new background

setDefaultCloseOperation

public abstract void setDefaultCloseOperation(int op)
Sets the default close operation.

Parameters:
op - the new default close operation

setHidden

protected void setHidden(boolean value)
Sets the hidden.

Parameters:
value - the new hidden

setIcon

public abstract void setIcon(java.awt.Image i)
Sets an icon to window.

Parameters:
i - the i

setLocation

public void setLocation(int x,
                        int y)
Sets the location.

Parameters:
x - the x
y - the y

setLocationRelativeTo

public abstract void setLocationRelativeTo(java.awt.Component c)
Sets the location relative to.

Parameters:
c - the new location relative to

setMenu

public void setMenu(javax.swing.JPopupMenu menu)
Sets the menu.

Parameters:
menu - the new menu

setTitle

public abstract void setTitle(java.lang.String s)
Sets the title.

Parameters:
s - the new title

setTitleBarBackground

public void setTitleBarBackground(java.awt.Color c)
Sets the title bar background.

Parameters:
c - the new title bar background

setVisible

public void setVisible(boolean visible)
Sets the visible.

Parameters:
visible - the new visible

show

public void show()
Show.



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