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 Classes Modifier and Type Class Description protected classFlatWindowResizer.DragBorderComponentstatic classFlatWindowResizer.InternalFrameResizerResizes internal frames.static classFlatWindowResizer.WindowResizerResizes frames and dialogs.
-
Field Summary
Fields Modifier and Type Field Description protected intborderDragThicknessprotected FlatWindowResizer.DragBorderComponentbottomDragCompprotected intcornerDragWidthprotected booleanhonorDialogMinimumSizeOnResizeprotected booleanhonorFrameMinimumSizeOnResizeprotected FlatWindowResizer.DragBorderComponentleftDragCompprotected JComponentresizeCompprotected FlatWindowResizer.DragBorderComponentrightDragCompprotected FlatWindowResizer.DragBorderComponenttopDragCompprotected static IntegerWINDOW_RESIZER_LAYER
-
Constructor Summary
Constructors Modifier Constructor Description protectedFlatWindowResizer(JComponent resizeComp)
-
Method Summary
-
-
-
Field Detail
-
WINDOW_RESIZER_LAYER
protected static final Integer WINDOW_RESIZER_LAYER
-
resizeComp
protected final JComponent resizeComp
-
borderDragThickness
protected final int borderDragThickness
-
cornerDragWidth
protected final int cornerDragWidth
-
honorFrameMinimumSizeOnResize
protected final boolean honorFrameMinimumSizeOnResize
-
honorDialogMinimumSizeOnResize
protected final boolean honorDialogMinimumSizeOnResize
-
topDragComp
protected final FlatWindowResizer.DragBorderComponent topDragComp
-
bottomDragComp
protected final FlatWindowResizer.DragBorderComponent bottomDragComp
-
leftDragComp
protected final FlatWindowResizer.DragBorderComponent leftDragComp
-
rightDragComp
protected final FlatWindowResizer.DragBorderComponent rightDragComp
-
-
Constructor Detail
-
FlatWindowResizer
protected FlatWindowResizer(JComponent resizeComp)
-
-
Method Detail
-
createDragBorderComponent
protected FlatWindowResizer.DragBorderComponent createDragBorderComponent(int leadingResizeDir, int centerResizeDir, int trailingResizeDir)
-
uninstall
public void uninstall()
-
doLayout
public void doLayout()
-
getResizeInsets
protected Insets getResizeInsets()
-
addNotify
protected void addNotify()
-
removeNotify
protected void removeNotify()
-
updateVisibility
protected void updateVisibility()
-
isWindowResizable
protected abstract boolean isWindowResizable()
-
getWindowBounds
protected abstract Rectangle getWindowBounds()
-
setWindowBounds
protected abstract void setWindowBounds(Rectangle r)
-
limitToParentBounds
protected abstract boolean limitToParentBounds()
-
getParentBounds
protected abstract Rectangle getParentBounds()
-
honorMinimumSizeOnResize
protected abstract boolean honorMinimumSizeOnResize()
-
honorMaximumSizeOnResize
protected abstract boolean honorMaximumSizeOnResize()
-
getWindowMinimumSize
protected abstract Dimension getWindowMinimumSize()
-
getWindowMaximumSize
protected abstract Dimension getWindowMaximumSize()
-
beginResizing
protected void beginResizing(int direction)
-
endResizing
protected void endResizing()
-
propertyChange
public void propertyChange(PropertyChangeEvent e)
- Specified by:
propertyChangein interfacePropertyChangeListener
-
componentResized
public void componentResized(ComponentEvent e)
- Specified by:
componentResizedin interfaceComponentListener
-
componentMoved
public void componentMoved(ComponentEvent e)
- Specified by:
componentMovedin interfaceComponentListener
-
componentShown
public void componentShown(ComponentEvent e)
- Specified by:
componentShownin interfaceComponentListener
-
componentHidden
public void componentHidden(ComponentEvent e)
- Specified by:
componentHiddenin interfaceComponentListener
-
-