Package featurecat.lizzie.gui
Class BasicLizziePaneUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.PanelUI
-
- featurecat.lizzie.gui.LizziePaneUI
-
- featurecat.lizzie.gui.BasicLizziePaneUI
-
- All Implemented Interfaces:
javax.swing.SwingConstants
public class BasicLizziePaneUI extends LizziePaneUI implements javax.swing.SwingConstants
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classBasicLizziePaneUI.DockingListenerThis class should be treated as a "protected" inner class.protected classBasicLizziePaneUI.DragWindowprotected classBasicLizziePaneUI.FrameListenerprotected classBasicLizziePaneUI.LizziePaneContListenerprotected classBasicLizziePaneUI.LizziePaneFocusListenerprotected classBasicLizziePaneUI.PropertyListener
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringconstraintBeforeFloatingprotected javax.swing.event.MouseInputListenerdockingListenerprotected BasicLizziePaneUI.DragWindowdragWindowprotected intfocusedCompIndexprotected LizziePanelizziePaneprotected java.awt.event.ContainerListenerlizziePaneContListenerprotected java.awt.event.FocusListenerlizziePaneFocusListenerprotected java.beans.PropertyChangeListenerpropertyListener
-
Constructor Summary
Constructors Constructor Description BasicLizziePaneUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanDock(java.awt.Component c, java.awt.Point p)protected javax.swing.event.MouseInputListenercreateDockingListener()protected BasicLizziePaneUI.DragWindowcreateDragWindow(LizziePane lizziePane)protected javax.swing.RootPaneContainercreateFloatingWindow(LizziePane lizziePane)Creates a window which contains the lizziePane after it has been dragged out from its containerprotected java.awt.event.WindowListenercreateFrameListener()protected java.awt.event.ContainerListenercreateLizziePaneContListener()protected java.awt.event.FocusListenercreateLizziePaneFocusListener()protected java.beans.PropertyChangeListenercreatePropertyListener()static javax.swing.plaf.ComponentUIcreateUI(javax.swing.JComponent c)protected voiddragTo(java.awt.Point position, java.awt.Point origin)protected voidfloatAt(java.awt.Point position, java.awt.Point origin)protected voidinstallComponents()protected voidinstallDefaults()protected voidinstallKeyboardActions()voidinstallListeners()voidinstallUI(javax.swing.JComponent c)booleanisFloating()protected voidpaintDragWindow(java.awt.Graphics g)Paints the contents of the window used for dragging.voidsetFloating(boolean b, java.awt.Point p)voidsetFloatingLocation(int x, int y)voidtoWindow(java.awt.Point position, java.awt.Dimension size)protected voiduninstallComponents()protected voiduninstallDefaults()protected voiduninstallKeyboardActions()voiduninstallListeners()voiduninstallUI(javax.swing.JComponent c)
-
-
-
Field Detail
-
lizziePane
protected LizziePane lizziePane
-
dragWindow
protected BasicLizziePaneUI.DragWindow dragWindow
-
focusedCompIndex
protected int focusedCompIndex
-
dockingListener
protected javax.swing.event.MouseInputListener dockingListener
-
propertyListener
protected java.beans.PropertyChangeListener propertyListener
-
lizziePaneContListener
protected java.awt.event.ContainerListener lizziePaneContListener
-
lizziePaneFocusListener
protected java.awt.event.FocusListener lizziePaneFocusListener
-
constraintBeforeFloating
protected java.lang.String constraintBeforeFloating
-
-
Method Detail
-
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
-
installUI
public void installUI(javax.swing.JComponent c)
- Overrides:
installUIin classjavax.swing.plaf.ComponentUI
-
uninstallUI
public void uninstallUI(javax.swing.JComponent c)
- Overrides:
uninstallUIin classjavax.swing.plaf.ComponentUI
-
installDefaults
protected void installDefaults()
-
uninstallDefaults
protected void uninstallDefaults()
-
installComponents
protected void installComponents()
-
uninstallComponents
protected void uninstallComponents()
-
installListeners
public void installListeners()
-
uninstallListeners
public void uninstallListeners()
-
installKeyboardActions
protected void installKeyboardActions()
-
uninstallKeyboardActions
protected void uninstallKeyboardActions()
-
createFloatingWindow
protected javax.swing.RootPaneContainer createFloatingWindow(LizziePane lizziePane)
Creates a window which contains the lizziePane after it has been dragged out from its container- Returns:
- a
RootPaneContainerobject, containing the lizziePane.
-
createDragWindow
protected BasicLizziePaneUI.DragWindow createDragWindow(LizziePane lizziePane)
-
setFloatingLocation
public void setFloatingLocation(int x, int y)
-
isFloating
public boolean isFloating()
-
setFloating
public void setFloating(boolean b, java.awt.Point p)
-
canDock
public boolean canDock(java.awt.Component c, java.awt.Point p)
-
dragTo
protected void dragTo(java.awt.Point position, java.awt.Point origin)
-
floatAt
protected void floatAt(java.awt.Point position, java.awt.Point origin)
-
toWindow
public void toWindow(java.awt.Point position, java.awt.Dimension size)- Specified by:
toWindowin classLizziePaneUI
-
createLizziePaneContListener
protected java.awt.event.ContainerListener createLizziePaneContListener()
-
createLizziePaneFocusListener
protected java.awt.event.FocusListener createLizziePaneFocusListener()
-
createPropertyListener
protected java.beans.PropertyChangeListener createPropertyListener()
-
createDockingListener
protected javax.swing.event.MouseInputListener createDockingListener()
-
createFrameListener
protected java.awt.event.WindowListener createFrameListener()
-
paintDragWindow
protected void paintDragWindow(java.awt.Graphics g)
Paints the contents of the window used for dragging.- Parameters:
g- Graphics to paint to.- Throws:
java.lang.NullPointerException- isgis null
-
-