Package mdlaf.components.rootpane
Class MaterialRootPaneUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.RootPaneUI
-
- javax.swing.plaf.basic.BasicRootPaneUI
-
- mdlaf.components.rootpane.MaterialRootPaneUI
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener,java.util.EventListener
public class MaterialRootPaneUI extends javax.swing.plaf.basic.BasicRootPaneUI
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classMaterialRootPaneUI.MaterialHandlerprotected static classMaterialRootPaneUI.MaterialLayout
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String[]borderKeysprotected java.awt.DimensiondimensionDevicesWith this dimension is set the absolute space dragging What is the space inside the display/displays to move the componentprotected java.awt.LayoutManagerlayoutManagerprotected MaterialRootPaneUI.MaterialHandlermaterialHandlerprotected java.awt.CursormyLastCursorprotected java.awt.DimensionparentBoundsWith this dimension is defined the dimension of dragging componentprotected javax.swing.JRootPanerootprotected java.awt.LayoutManagersavedOldLayoutprotected javax.swing.JComponenttitlePaneprotected java.awt.Windowwindow
-
Constructor Summary
Constructors Constructor Description MaterialRootPaneUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeginDraggingFrame(java.awt.Window f)voidbeginResizingFrame(java.awt.Window f, int direction)protected java.awt.LayoutManagercreateLayoutManager()protected javax.swing.JComponentcreateTitlePane(javax.swing.JRootPane root)static javax.swing.plaf.ComponentUIcreateUI(javax.swing.JComponent c)protected MaterialRootPaneUI.MaterialHandlercreateWindowHandler(javax.swing.JRootPane root)voiddragFrame(java.awt.Window w, int newX, int newY)voidendDraggingFrame(java.awt.Window f)voidendResizingFrame(java.awt.Window f)protected javax.swing.JRootPanegetRootPane()protected javax.swing.JComponentgetTitlePane()protected voidinstallBorder(javax.swing.JRootPane root)protected voidinstallClientDecorations(javax.swing.JRootPane root)protected voidinstallLayout(javax.swing.JRootPane root)protected voidinstallListeners(javax.swing.JRootPane root)voidinstallUI(javax.swing.JComponent c)protected voidinstallWindowListeners(javax.swing.JRootPane root, java.awt.Component parent)voidpropertyChange(java.beans.PropertyChangeEvent e)voidresizeFrame(java.awt.Window f, int newX, int newY, int newWidth, int newHeight)voidsetBoundsForFrame(java.awt.Window f, int newX, int newY, int newWidth, int newHeight)voidsetMaximized()protected voidsetTitlePane(javax.swing.JRootPane root, javax.swing.JComponent titlePane)protected voidsetupDragMode(java.awt.Window f)protected voiduninstallBorder(javax.swing.JRootPane root)protected voiduninstallClientDecorations(javax.swing.JRootPane root)protected voiduninstallLayout(javax.swing.JRootPane root)protected voiduninstallListeners(javax.swing.JRootPane root)voiduninstallUI(javax.swing.JComponent c)protected voiduninstallWindowListeners(javax.swing.JRootPane root)-
Methods inherited from class javax.swing.plaf.basic.BasicRootPaneUI
installComponents, installDefaults, installKeyboardActions, uninstallComponents, uninstallDefaults, uninstallKeyboardActions
-
-
-
-
Field Detail
-
borderKeys
protected static final java.lang.String[] borderKeys
-
myLastCursor
protected java.awt.Cursor myLastCursor
-
window
protected java.awt.Window window
-
titlePane
protected javax.swing.JComponent titlePane
-
materialHandler
protected MaterialRootPaneUI.MaterialHandler materialHandler
-
layoutManager
protected java.awt.LayoutManager layoutManager
-
savedOldLayout
protected java.awt.LayoutManager savedOldLayout
-
root
protected javax.swing.JRootPane root
-
dimensionDevices
protected java.awt.Dimension dimensionDevices
With this dimension is set the absolute space dragging What is the space inside the display/displays to move the component
-
parentBounds
protected java.awt.Dimension parentBounds
With this dimension is defined the dimension of dragging component
-
-
Method Detail
-
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
-
setupDragMode
protected void setupDragMode(java.awt.Window f)
-
beginDraggingFrame
public void beginDraggingFrame(java.awt.Window f)
-
dragFrame
public void dragFrame(java.awt.Window w, int newX, int newY)
-
endDraggingFrame
public void endDraggingFrame(java.awt.Window f)
-
beginResizingFrame
public void beginResizingFrame(java.awt.Window f, int direction)
-
resizeFrame
public void resizeFrame(java.awt.Window f, int newX, int newY, int newWidth, int newHeight)
-
endResizingFrame
public void endResizingFrame(java.awt.Window f)
-
setBoundsForFrame
public void setBoundsForFrame(java.awt.Window f, int newX, int newY, int newWidth, int newHeight)
-
installListeners
protected void installListeners(javax.swing.JRootPane root)
- Overrides:
installListenersin classjavax.swing.plaf.basic.BasicRootPaneUI
-
uninstallListeners
protected void uninstallListeners(javax.swing.JRootPane root)
- Overrides:
uninstallListenersin classjavax.swing.plaf.basic.BasicRootPaneUI
-
installUI
public void installUI(javax.swing.JComponent c)
- Overrides:
installUIin classjavax.swing.plaf.basic.BasicRootPaneUI
-
uninstallUI
public void uninstallUI(javax.swing.JComponent c)
- Overrides:
uninstallUIin classjavax.swing.plaf.basic.BasicRootPaneUI
-
uninstallBorder
protected void uninstallBorder(javax.swing.JRootPane root)
-
installWindowListeners
protected void installWindowListeners(javax.swing.JRootPane root, java.awt.Component parent)
-
uninstallWindowListeners
protected void uninstallWindowListeners(javax.swing.JRootPane root)
-
installLayout
protected void installLayout(javax.swing.JRootPane root)
-
uninstallLayout
protected void uninstallLayout(javax.swing.JRootPane root)
-
installClientDecorations
protected void installClientDecorations(javax.swing.JRootPane root)
-
uninstallClientDecorations
protected void uninstallClientDecorations(javax.swing.JRootPane root)
-
createTitlePane
protected javax.swing.JComponent createTitlePane(javax.swing.JRootPane root)
-
createWindowHandler
protected MaterialRootPaneUI.MaterialHandler createWindowHandler(javax.swing.JRootPane root)
-
createLayoutManager
protected java.awt.LayoutManager createLayoutManager()
-
setTitlePane
protected void setTitlePane(javax.swing.JRootPane root, javax.swing.JComponent titlePane)
-
getTitlePane
protected javax.swing.JComponent getTitlePane()
-
getRootPane
protected javax.swing.JRootPane getRootPane()
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent e)
- Specified by:
propertyChangein interfacejava.beans.PropertyChangeListener- Overrides:
propertyChangein classjavax.swing.plaf.basic.BasicRootPaneUI
-
setMaximized
public void setMaximized()
-
installBorder
protected void installBorder(javax.swing.JRootPane root)
-
-