Package com.formdev.flatlaf.ui
Class FlatWindowResizer.WindowResizer
- java.lang.Object
-
- com.formdev.flatlaf.ui.FlatWindowResizer
-
- com.formdev.flatlaf.ui.FlatWindowResizer.WindowResizer
-
- All Implemented Interfaces:
ComponentListener
,WindowStateListener
,PropertyChangeListener
,EventListener
- Enclosing class:
- FlatWindowResizer
public static class FlatWindowResizer.WindowResizer extends FlatWindowResizer implements WindowStateListener
Resizes frames and dialogs.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.formdev.flatlaf.ui.FlatWindowResizer
FlatWindowResizer.DragBorderComponent, FlatWindowResizer.InternalFrameResizer, FlatWindowResizer.WindowResizer
-
-
Field Summary
Fields Modifier and Type Field Description protected Window
window
-
Fields inherited from class com.formdev.flatlaf.ui.FlatWindowResizer
borderDragThickness, bottomDragComp, cornerDragWidth, honorDialogMinimumSizeOnResize, honorFrameMinimumSizeOnResize, leftDragComp, resizeComp, rightDragComp, topDragComp, WINDOW_RESIZER_LAYER
-
-
Constructor Summary
Constructors Constructor Description WindowResizer(JRootPane rootPane)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addNotify()
protected Rectangle
getParentBounds()
protected Rectangle
getWindowBounds()
protected Dimension
getWindowMaximumSize()
protected Dimension
getWindowMinimumSize()
protected boolean
honorMaximumSizeOnResize()
protected boolean
honorMinimumSizeOnResize()
protected boolean
isWindowResizable()
protected boolean
limitToParentBounds()
protected void
removeNotify()
protected void
setWindowBounds(Rectangle r)
void
windowStateChanged(WindowEvent e)
-
Methods inherited from class com.formdev.flatlaf.ui.FlatWindowResizer
beginResizing, componentHidden, componentMoved, componentResized, componentShown, createDragBorderComponent, doLayout, endResizing, getResizeInsets, propertyChange, uninstall, updateVisibility
-
-
-
-
Field Detail
-
window
protected Window window
-
-
Constructor Detail
-
WindowResizer
public WindowResizer(JRootPane rootPane)
-
-
Method Detail
-
addNotify
protected void addNotify()
- Overrides:
addNotify
in classFlatWindowResizer
-
removeNotify
protected void removeNotify()
- Overrides:
removeNotify
in classFlatWindowResizer
-
isWindowResizable
protected boolean isWindowResizable()
- Specified by:
isWindowResizable
in classFlatWindowResizer
-
getWindowBounds
protected Rectangle getWindowBounds()
- Specified by:
getWindowBounds
in classFlatWindowResizer
-
setWindowBounds
protected void setWindowBounds(Rectangle r)
- Specified by:
setWindowBounds
in classFlatWindowResizer
-
limitToParentBounds
protected boolean limitToParentBounds()
- Specified by:
limitToParentBounds
in classFlatWindowResizer
-
getParentBounds
protected Rectangle getParentBounds()
- Specified by:
getParentBounds
in classFlatWindowResizer
-
honorMinimumSizeOnResize
protected boolean honorMinimumSizeOnResize()
- Specified by:
honorMinimumSizeOnResize
in classFlatWindowResizer
-
honorMaximumSizeOnResize
protected boolean honorMaximumSizeOnResize()
- Specified by:
honorMaximumSizeOnResize
in classFlatWindowResizer
-
getWindowMinimumSize
protected Dimension getWindowMinimumSize()
- Specified by:
getWindowMinimumSize
in classFlatWindowResizer
-
getWindowMaximumSize
protected Dimension getWindowMaximumSize()
- Specified by:
getWindowMaximumSize
in classFlatWindowResizer
-
windowStateChanged
public void windowStateChanged(WindowEvent e)
- Specified by:
windowStateChanged
in interfaceWindowStateListener
-
-