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 TypeClassDescriptionclassThis class should be treated as a "protected" inner class.protected classprotected classprotected classprotected classprotected class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected MouseInputListenerprotected BasicLizziePaneUI.DragWindowprotected intprotected LizziePaneprotected ContainerListenerprotected FocusListenerprotected PropertyChangeListenerFields 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 TypeMethodDescriptionbooleanprotected MouseInputListenerprotected BasicLizziePaneUI.DragWindowcreateDragWindow(LizziePane lizziePane) protected RootPaneContainercreateFloatingWindow(LizziePane lizziePane) Creates a window which contains the lizziePane after it has been dragged out from its containerprotected WindowListenerprotected ContainerListenerprotected FocusListenerprotected PropertyChangeListenerstatic ComponentUIprotected voidprotected voidprotected voidprotected voidprotected voidvoidvoidbooleanprotected voidPaints the contents of the window used for dragging.voidsetFloating(boolean b, Point p) voidsetFloatingLocation(int x, int y) voidprotected voidprotected voidprotected voidvoidvoidMethods 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:
installUIin classComponentUI
-
uninstallUI
- Overrides:
uninstallUIin 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
RootPaneContainerobject, containing the lizziePane.
-
createDragWindow
-
setFloatingLocation
public void setFloatingLocation(int x, int y) -
isFloating
public boolean isFloating() -
setFloating
-
canDock
-
dragTo
-
floatAt
-
toWindow
- Specified by:
toWindowin classLizziePaneUI
-
createLizziePaneContListener
-
createLizziePaneFocusListener
-
createPropertyListener
-
createDockingListener
-
createFrameListener
-
paintDragWindow
Paints the contents of the window used for dragging.- Parameters:
g- Graphics to paint to.- Throws:
NullPointerException- isgis null
-