Class JSplitPaneScaler
java.lang.Object
org.vanted.scaling.scalers.BasicScaler
org.vanted.scaling.scalers.component.ComponentScaler
org.vanted.scaling.scalers.component.JSplitPaneScaler
- All Implemented Interfaces:
Scaler
public class JSplitPaneScaler extends ComponentScaler
A JSplitPane-specific extension of
ComponentScaler
.- Author:
- D. Garkov
-
Constructor Summary
Constructors Constructor Description JSplitPaneScaler(float scaleFactor)
-
Method Summary
Modifier and Type Method Description void
scaleComponent(JComponent immediateComponent)
A method to be called when this ComponentScaler has been dispatched to some immediate JComponent to be scaled - both from the centralComponentRegulator
and on its own.Methods inherited from class org.vanted.scaling.scalers.component.ComponentScaler
coscaleFont, coscaleIcon, coscaleInsets
Methods inherited from class org.vanted.scaling.scalers.BasicScaler
getScaleFactor, initialScaling, modifyFont, modifyIcon, modifyInsets, modifyInteger, setScaleFactor
-
Constructor Details
-
JSplitPaneScaler
public JSplitPaneScaler(float scaleFactor)
-
-
Method Details
-
scaleComponent
Description copied from class:ComponentScaler
A method to be called when this ComponentScaler has been dispatched to some immediate JComponent to be scaled - both from the centralComponentRegulator
and on its own. A reason for a call outside the usual scaling routine could be an initialization of new components with overwritten, i.e custom-set, LAF Defaults, post-scaling. Attach a scaler and call this method after done with the initialization. For more specific JComponents, see the direct known subclasses.- Overrides:
scaleComponent
in classComponentScaler
- Parameters:
immediateComponent
- to be scaled
-