org.noos.xing.mydoggy.plaf.ui.cmp
Class FloatingFrame

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Frame
                  extended by javax.swing.JFrame
                      extended by org.noos.xing.mydoggy.plaf.ui.cmp.FloatingFrame
All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants, FloatingWindow, MultiSplitWindow<org.noos.xing.mydoggy.ToolWindow>

public class FloatingFrame
extends JFrame
implements FloatingWindow, PropertyChangeListener, ActionListener

Author:
Angelo De Caro (angelo.decaro@gmail.com)
See Also:
Serialized Form

Nested Class Summary
 class FloatingFrame.FloatingWindowListener
           
 
Nested classes/interfaces inherited from class javax.swing.JFrame
JFrame.AccessibleJFrame
 
Nested classes/interfaces inherited from class java.awt.Frame
Frame.AccessibleAWTFrame
 
Nested classes/interfaces inherited from class java.awt.Window
Window.AccessibleAWTWindow
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
protected  DockableDropPanel dockableDropPanel
           
protected  Window modalToWindow
           
protected  MultiSplitDockableContainer<org.noos.xing.mydoggy.ToolWindow> multiSplitDockableContainer
           
protected  boolean notifiedModalToWindow
           
protected  FloatingResizeMouseInputHandler resizeMouseInputHandler
           
protected  Component returnFocus
           
protected  MyDoggyToolWindowManager toolWindowManager
           
protected  TransparencyAnimation transparencyAnimation
           
protected  TransparencyManager<Window> transparencyManager
           
protected  Timer transparencyTimer
           
 
Fields inherited from class javax.swing.JFrame
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
FloatingFrame(MyDoggyToolWindowManager toolWindowManager, org.noos.xing.mydoggy.ToolWindow toolWindow, Window owner, boolean modal)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 void addDockable(org.noos.xing.mydoggy.ToolWindow toolWindow, Component content)
           
 void addDockable(org.noos.xing.mydoggy.ToolWindow toolWindow, Component content, org.noos.xing.mydoggy.ToolWindow aggregationOnDockable, org.noos.xing.mydoggy.AggregationPosition aggregationPosition)
           
protected  void close(WindowEvent windowEvent)
           
 boolean containsDockable(org.noos.xing.mydoggy.ToolWindow toolWindow)
           
 void dispose()
           
 org.noos.xing.mydoggy.ToolWindow getDockable()
           
 int getDockableCount()
           
 List<org.noos.xing.mydoggy.ToolWindow> getDockables()
           
 Object getMultiSplitLayout()
           
 Component getReturnFocus()
           
 Window getWindow()
           
 void importFrom(FloatingWindow oldWindow)
           
protected  void initComponents()
           
protected  void initListeners()
           
 boolean isModal()
           
protected  void processWindowEvent(WindowEvent windowEvent)
           
 void propertyChange(PropertyChangeEvent evt)
           
 void removeDockable(org.noos.xing.mydoggy.ToolWindow toolWindow)
           
protected  void restoreOwner()
           
 void setModal(boolean modal)
           
 void setMultiSplitLayout(Object model)
           
 void setResizable(boolean resizable)
           
 void setReturnFocus(Component returnFocus)
           
 void setUndecorated(boolean undecorated)
           
 void setVisible(boolean visible)
           
protected  void tryToDispose(WindowEvent windowEvent)
           
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
 
Methods inherited from class java.awt.Frame
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setState, setTitle
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOwnedWindows, getOwner, getOwnerlessWindows, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, setBackground, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.noos.xing.mydoggy.plaf.ui.cmp.FloatingWindow
getBounds, getContentPane, getHeight, getName, getWidth, getX, getY, isFocused, isVisible, setAlwaysOnTop, setBounds, setBounds, setContentPane, setLocation, setName, setSize, setSize
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

toolWindowManager

protected MyDoggyToolWindowManager toolWindowManager

resizeMouseInputHandler

protected FloatingResizeMouseInputHandler resizeMouseInputHandler

modalToWindow

protected Window modalToWindow

notifiedModalToWindow

protected boolean notifiedModalToWindow

returnFocus

protected Component returnFocus

dockableDropPanel

protected DockableDropPanel dockableDropPanel

multiSplitDockableContainer

protected MultiSplitDockableContainer<org.noos.xing.mydoggy.ToolWindow> multiSplitDockableContainer

transparencyTimer

protected Timer transparencyTimer

transparencyManager

protected TransparencyManager<Window> transparencyManager

transparencyAnimation

protected TransparencyAnimation transparencyAnimation
Constructor Detail

FloatingFrame

public FloatingFrame(MyDoggyToolWindowManager toolWindowManager,
                     org.noos.xing.mydoggy.ToolWindow toolWindow,
                     Window owner,
                     boolean modal)
Method Detail

propertyChange

public void propertyChange(PropertyChangeEvent evt)
Specified by:
propertyChange in interface PropertyChangeListener

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener

setVisible

public void setVisible(boolean visible)
Specified by:
setVisible in interface FloatingWindow
Overrides:
setVisible in class Window

importFrom

public void importFrom(FloatingWindow oldWindow)
Specified by:
importFrom in interface FloatingWindow

setUndecorated

public void setUndecorated(boolean undecorated)
Specified by:
setUndecorated in interface FloatingWindow
Overrides:
setUndecorated in class Frame

processWindowEvent

protected void processWindowEvent(WindowEvent windowEvent)
Overrides:
processWindowEvent in class JFrame

getWindow

public Window getWindow()
Specified by:
getWindow in interface FloatingWindow

setModal

public void setModal(boolean modal)
Specified by:
setModal in interface FloatingWindow

addDockable

public void addDockable(org.noos.xing.mydoggy.ToolWindow toolWindow,
                        Component content)
Specified by:
addDockable in interface MultiSplitWindow<org.noos.xing.mydoggy.ToolWindow>

addDockable

public void addDockable(org.noos.xing.mydoggy.ToolWindow toolWindow,
                        Component content,
                        org.noos.xing.mydoggy.ToolWindow aggregationOnDockable,
                        org.noos.xing.mydoggy.AggregationPosition aggregationPosition)
Specified by:
addDockable in interface MultiSplitWindow<org.noos.xing.mydoggy.ToolWindow>

removeDockable

public void removeDockable(org.noos.xing.mydoggy.ToolWindow toolWindow)
Specified by:
removeDockable in interface MultiSplitWindow<org.noos.xing.mydoggy.ToolWindow>

getDockableCount

public int getDockableCount()
Specified by:
getDockableCount in interface MultiSplitWindow<org.noos.xing.mydoggy.ToolWindow>

getDockable

public org.noos.xing.mydoggy.ToolWindow getDockable()
Specified by:
getDockable in interface MultiSplitWindow<org.noos.xing.mydoggy.ToolWindow>

getDockables

public List<org.noos.xing.mydoggy.ToolWindow> getDockables()
Specified by:
getDockables in interface MultiSplitWindow<org.noos.xing.mydoggy.ToolWindow>

containsDockable

public boolean containsDockable(org.noos.xing.mydoggy.ToolWindow toolWindow)
Specified by:
containsDockable in interface MultiSplitWindow<org.noos.xing.mydoggy.ToolWindow>

getMultiSplitLayout

public Object getMultiSplitLayout()
Specified by:
getMultiSplitLayout in interface MultiSplitWindow<org.noos.xing.mydoggy.ToolWindow>

setMultiSplitLayout

public void setMultiSplitLayout(Object model)
Specified by:
setMultiSplitLayout in interface MultiSplitWindow<org.noos.xing.mydoggy.ToolWindow>

setResizable

public void setResizable(boolean resizable)
Specified by:
setResizable in interface FloatingWindow
Overrides:
setResizable in class Frame

dispose

public void dispose()
Specified by:
dispose in interface FloatingWindow
Overrides:
dispose in class Window

isModal

public boolean isModal()

getReturnFocus

public Component getReturnFocus()

setReturnFocus

public void setReturnFocus(Component returnFocus)

initComponents

protected void initComponents()

initListeners

protected void initListeners()

restoreOwner

protected void restoreOwner()

tryToDispose

protected void tryToDispose(WindowEvent windowEvent)

close

protected void close(WindowEvent windowEvent)


Copyright © 2012. All Rights Reserved.