Package org.vanted.scaling.scalers
Interface Scaler
- All Known Subinterfaces:
HTMLScaler
- All Known Implementing Classes:
AbstractButtonScaler
,BasicScaler
,ComponentScaler
,JLabelScaler
,JOptionPaneScaler
,JSplitPaneScaler
,JTabbedPaneScaler
,JTextComponentScaler
,NimbusScaler
,WindowScaler
,WindowsScaler
public interface Scaler
All scalers should implement this interface. Alternatively, one could more
conveniently just extend the default scaler -
BasicScaler
.- Author:
- D. Garkov
-
Method Summary
Modifier and Type Method Description void
initialScaling()
Used for synchronized LAFs, where only one change (e.g.Font
modifyFont(Object key, Font original)
Implement to modify Fonts.Icon
modifyIcon(Object key, Icon original)
Implement to modify Icons.Insets
modifyInsets(Insets original)
Implement to modify Insets.Integer
modifyInteger(Object key, Integer original)
Implement to modify Integers.
-
Method Details
-
initialScaling
void initialScaling()Used for synchronized LAFs, where only one change (e.g. Font) is sufficient (e.g. Nimbus). -
modifyFont
Implement to modify Fonts.- Parameters:
key
- UIDefaults keyoriginal
- instance to be scaled- Returns:
- newly scaled instance
-
modifyIcon
Implement to modify Icons.- Parameters:
key
- UIDefaults keyoriginal
- instance to be scaled- Returns:
- newly scaled instance
-
modifyInteger
Implement to modify Integers.- Parameters:
key
- UIDefaults keyoriginal
- instance to be scaled- Returns:
- newly scaled instance
-
modifyInsets
Implement to modify Insets.- Parameters:
original
- Insets instance to be scaledoriginal
- InsetsUIResource instance to be scaled- Returns:
- newly scaled instance
-