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 class
BasicLizziePaneUI.DockingListener
This class should be treated as a "protected" inner class.protected class
BasicLizziePaneUI.DragWindow
protected class
BasicLizziePaneUI.FrameListener
protected class
BasicLizziePaneUI.LizziePaneContListener
protected class
BasicLizziePaneUI.LizziePaneFocusListener
protected class
BasicLizziePaneUI.PropertyListener
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
constraintBeforeFloating
protected javax.swing.event.MouseInputListener
dockingListener
protected BasicLizziePaneUI.DragWindow
dragWindow
protected int
focusedCompIndex
protected LizziePane
lizziePane
protected java.awt.event.ContainerListener
lizziePaneContListener
protected java.awt.event.FocusListener
lizziePaneFocusListener
protected java.beans.PropertyChangeListener
propertyListener
-
Constructor Summary
Constructors Constructor Description BasicLizziePaneUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canDock(java.awt.Component c, java.awt.Point p)
protected javax.swing.event.MouseInputListener
createDockingListener()
protected BasicLizziePaneUI.DragWindow
createDragWindow(LizziePane lizziePane)
protected javax.swing.RootPaneContainer
createFloatingWindow(LizziePane lizziePane)
Creates a window which contains the lizziePane after it has been dragged out from its containerprotected java.awt.event.WindowListener
createFrameListener()
protected java.awt.event.ContainerListener
createLizziePaneContListener()
protected java.awt.event.FocusListener
createLizziePaneFocusListener()
protected java.beans.PropertyChangeListener
createPropertyListener()
static javax.swing.plaf.ComponentUI
createUI(javax.swing.JComponent c)
protected void
dragTo(java.awt.Point position, java.awt.Point origin)
protected void
floatAt(java.awt.Point position, java.awt.Point origin)
protected void
installComponents()
protected void
installDefaults()
protected void
installKeyboardActions()
void
installListeners()
void
installUI(javax.swing.JComponent c)
boolean
isFloating()
protected void
paintDragWindow(java.awt.Graphics g)
Paints the contents of the window used for dragging.void
setFloating(boolean b, java.awt.Point p)
void
setFloatingLocation(int x, int y)
void
toWindow(java.awt.Point position, java.awt.Dimension size)
protected void
uninstallComponents()
protected void
uninstallDefaults()
protected void
uninstallKeyboardActions()
void
uninstallListeners()
void
uninstallUI(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:
installUI
in classjavax.swing.plaf.ComponentUI
-
uninstallUI
public void uninstallUI(javax.swing.JComponent c)
- Overrides:
uninstallUI
in 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
RootPaneContainer
object, 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:
toWindow
in 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
- isg
is null
-
-