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 Windowwindow-
Fields inherited from class com.formdev.flatlaf.ui.FlatWindowResizer
borderDragThickness, bottomDragComp, cornerDragWidth, honorDialogMinimumSizeOnResize, honorFrameMinimumSizeOnResize, leftDragComp, resizeComp, rightDragComp, topDragComp
-
-
Constructor Summary
Constructors Constructor Description WindowResizer(JRootPane rootPane)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddNotify()protected voidbeginResizing(int resizeDir, MouseEvent e)voiddoLayout()protected voidendResizing()protected RectanglegetParentBounds()protected RectanglegetWindowBounds()protected DimensiongetWindowMaximumSize()protected DimensiongetWindowMinimumSize()protected booleanhonorMaximumSizeOnResize()protected booleanhonorMinimumSizeOnResize()protected booleanisWindowResizable()protected booleanlimitToParentBounds()protected voidremoveNotify()protected voidsetWindowBounds(Rectangle r)voiduninstall()voidwindowStateChanged(WindowEvent e)-
Methods inherited from class com.formdev.flatlaf.ui.FlatWindowResizer
componentHidden, componentMoved, componentResized, componentShown, createDragBorderComponent, getResizeInsets, propertyChange, updateVisibility
-
-
-
-
Field Detail
-
window
protected Window window
-
-
Constructor Detail
-
WindowResizer
public WindowResizer(JRootPane rootPane)
-
-
Method Detail
-
uninstall
public void uninstall()
- Overrides:
uninstallin classFlatWindowResizer
-
doLayout
public void doLayout()
- Overrides:
doLayoutin classFlatWindowResizer
-
addNotify
protected void addNotify()
- Overrides:
addNotifyin classFlatWindowResizer
-
removeNotify
protected void removeNotify()
- Overrides:
removeNotifyin classFlatWindowResizer
-
isWindowResizable
protected boolean isWindowResizable()
- Specified by:
isWindowResizablein classFlatWindowResizer
-
getWindowBounds
protected Rectangle getWindowBounds()
- Specified by:
getWindowBoundsin classFlatWindowResizer
-
setWindowBounds
protected void setWindowBounds(Rectangle r)
- Specified by:
setWindowBoundsin classFlatWindowResizer
-
limitToParentBounds
protected boolean limitToParentBounds()
- Specified by:
limitToParentBoundsin classFlatWindowResizer
-
getParentBounds
protected Rectangle getParentBounds()
- Specified by:
getParentBoundsin classFlatWindowResizer
-
honorMinimumSizeOnResize
protected boolean honorMinimumSizeOnResize()
- Specified by:
honorMinimumSizeOnResizein classFlatWindowResizer
-
honorMaximumSizeOnResize
protected boolean honorMaximumSizeOnResize()
- Specified by:
honorMaximumSizeOnResizein classFlatWindowResizer
-
getWindowMinimumSize
protected Dimension getWindowMinimumSize()
- Specified by:
getWindowMinimumSizein classFlatWindowResizer
-
getWindowMaximumSize
protected Dimension getWindowMaximumSize()
- Specified by:
getWindowMaximumSizein classFlatWindowResizer
-
windowStateChanged
public void windowStateChanged(WindowEvent e)
- Specified by:
windowStateChangedin interfaceWindowStateListener
-
beginResizing
protected void beginResizing(int resizeDir, MouseEvent e)- Overrides:
beginResizingin classFlatWindowResizer
-
endResizing
protected void endResizing()
- Overrides:
endResizingin classFlatWindowResizer
-
-