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:
SwingConstants
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
This class should be treated as a "protected" inner class.protected class
protected class
protected class
protected class
protected class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected MouseInputListener
protected BasicLizziePaneUI.DragWindow
protected int
protected LizziePane
protected ContainerListener
protected FocusListener
protected PropertyChangeListener
Fields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
protected MouseInputListener
protected BasicLizziePaneUI.DragWindow
createDragWindow
(LizziePane lizziePane) protected RootPaneContainer
createFloatingWindow
(LizziePane lizziePane) Creates a window which contains the lizziePane after it has been dragged out from its containerprotected WindowListener
protected ContainerListener
protected FocusListener
protected PropertyChangeListener
static ComponentUI
protected void
protected void
protected void
protected void
protected void
void
void
boolean
protected void
Paints the contents of the window used for dragging.void
setFloating
(boolean b, Point p) void
setFloatingLocation
(int x, int y) void
protected void
protected void
protected void
void
void
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, paint, update
-
Field Details
-
lizziePane
-
dragWindow
-
focusedCompIndex
protected int focusedCompIndex -
dockingListener
-
propertyListener
-
lizziePaneContListener
-
lizziePaneFocusListener
-
constraintBeforeFloating
-
-
Constructor Details
-
BasicLizziePaneUI
public BasicLizziePaneUI()
-
-
Method Details
-
createUI
-
installUI
- Overrides:
installUI
in classComponentUI
-
uninstallUI
- Overrides:
uninstallUI
in classComponentUI
-
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
Creates a window which contains the lizziePane after it has been dragged out from its container- Returns:
- a
RootPaneContainer
object, containing the lizziePane.
-
createDragWindow
-
setFloatingLocation
public void setFloatingLocation(int x, int y) -
isFloating
public boolean isFloating() -
setFloating
-
canDock
-
dragTo
-
floatAt
-
toWindow
- Specified by:
toWindow
in classLizziePaneUI
-
createLizziePaneContListener
-
createLizziePaneFocusListener
-
createPropertyListener
-
createDockingListener
-
createFrameListener
-
paintDragWindow
Paints the contents of the window used for dragging.- Parameters:
g
- Graphics to paint to.- Throws:
NullPointerException
- isg
is null
-