Class FlatWindowResizer
java.lang.Object
com.formdev.flatlaf.ui.FlatWindowResizer
- All Implemented Interfaces:
ComponentListener, PropertyChangeListener, EventListener
- Direct Known Subclasses:
FlatWindowResizer.InternalFrameResizer, FlatWindowResizer.WindowResizer
public abstract class FlatWindowResizer
extends Object
implements PropertyChangeListener, ComponentListener
Resizes frames, dialogs or internal frames.
Could also be used to implement resize support for any Swing component by creating a new subclass.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classstatic classResizes internal frames.static classResizes frames and dialogs. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intprotected final FlatWindowResizer.DragBorderComponentprotected final intprotected final booleanprotected final booleanprotected final FlatWindowResizer.DragBorderComponentprotected final JComponentprotected final FlatWindowResizer.DragBorderComponentprotected final FlatWindowResizer.DragBorderComponent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidbeginResizing(int resizeDir, MouseEvent e) voidvoidvoidvoidprotected FlatWindowResizer.DragBorderComponentcreateDragBorderComponent(int leadingResizeDir, int centerResizeDir, int trailingResizeDir) voiddoLayout()protected voidprotected abstract Rectangleprotected Insetsprotected abstract Rectangleprotected abstract Dimensionprotected abstract Dimensionprotected abstract booleanprotected abstract boolean(package private) booleanisDialog()protected abstract booleanprotected abstract booleanvoidprotected voidprotected abstract voidvoidprotected void
-
Field Details
-
resizeComp
-
borderDragThickness
protected final int borderDragThickness -
cornerDragWidth
protected final int cornerDragWidth -
honorFrameMinimumSizeOnResize
protected final boolean honorFrameMinimumSizeOnResize -
honorDialogMinimumSizeOnResize
protected final boolean honorDialogMinimumSizeOnResize -
topDragComp
-
bottomDragComp
-
leftDragComp
-
rightDragComp
-
-
Constructor Details
-
FlatWindowResizer
-
-
Method Details
-
createDragBorderComponent
protected FlatWindowResizer.DragBorderComponent createDragBorderComponent(int leadingResizeDir, int centerResizeDir, int trailingResizeDir) -
uninstall
public void uninstall() -
doLayout
public void doLayout() -
getResizeInsets
-
addNotify
protected void addNotify() -
removeNotify
protected void removeNotify() -
updateVisibility
protected void updateVisibility() -
isDialog
boolean isDialog() -
isWindowResizable
protected abstract boolean isWindowResizable() -
getWindowBounds
-
setWindowBounds
-
limitToParentBounds
protected abstract boolean limitToParentBounds() -
getParentBounds
-
honorMinimumSizeOnResize
protected abstract boolean honorMinimumSizeOnResize() -
honorMaximumSizeOnResize
protected abstract boolean honorMaximumSizeOnResize() -
getWindowMinimumSize
-
getWindowMaximumSize
-
beginResizing
-
endResizing
protected void endResizing() -
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener
-
componentResized
- Specified by:
componentResizedin interfaceComponentListener
-
componentMoved
- Specified by:
componentMovedin interfaceComponentListener
-
componentShown
- Specified by:
componentShownin interfaceComponentListener
-
componentHidden
- Specified by:
componentHiddenin interfaceComponentListener
-