Package com.formdev.flatlaf.ui
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 class
static class
Resizes internal frames.static class
Resizes frames and dialogs. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final int
protected final FlatWindowResizer.DragBorderComponent
protected final int
protected final boolean
protected final boolean
protected final FlatWindowResizer.DragBorderComponent
protected final JComponent
protected final FlatWindowResizer.DragBorderComponent
protected final FlatWindowResizer.DragBorderComponent
protected static final Integer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
beginResizing
(int direction) void
void
void
void
protected FlatWindowResizer.DragBorderComponent
createDragBorderComponent
(int leadingResizeDir, int centerResizeDir, int trailingResizeDir) void
doLayout()
protected void
protected abstract Rectangle
protected Insets
protected abstract Rectangle
protected abstract Dimension
protected abstract Dimension
protected abstract boolean
protected abstract boolean
(package private) boolean
isDialog()
protected abstract boolean
protected abstract boolean
void
protected void
protected abstract void
void
protected void
-
Field Details
-
WINDOW_RESIZER_LAYER
-
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
protected void beginResizing(int direction) -
endResizing
protected void endResizing() -
propertyChange
- Specified by:
propertyChange
in interfacePropertyChangeListener
-
componentResized
- Specified by:
componentResized
in interfaceComponentListener
-
componentMoved
- Specified by:
componentMoved
in interfaceComponentListener
-
componentShown
- Specified by:
componentShown
in interfaceComponentListener
-
componentHidden
- Specified by:
componentHidden
in interfaceComponentListener
-