Package org.vanted.scaling.scalers
Class WindowsScaler
java.lang.Object
org.vanted.scaling.scalers.BasicScaler
org.vanted.scaling.scalers.WindowsScaler
- All Implemented Interfaces:
Scaler
public class WindowsScaler extends BasicScaler
Similar to the default scaler. Not necessary/able to scale LAF-Icons.
- Author:
- D. Garkov
-
Constructor Summary
Constructors Constructor Description WindowsScaler(float scaleFactor)
-
Method Summary
Modifier and Type Method Description Icon
modifyIcon(Object key, Icon original)
Interface method forBasicScaler.modifyImageIcon(javax.swing.Icon)
andBasicScaler.modifyIcon(java.lang.Object,javax.swing.Icon)
.Methods inherited from class org.vanted.scaling.scalers.BasicScaler
getScaleFactor, initialScaling, modifyFont, modifyInsets, modifyInteger, setScaleFactor
-
Constructor Details
-
WindowsScaler
public WindowsScaler(float scaleFactor)
-
-
Method Details
-
modifyIcon
Description copied from class:BasicScaler
Interface method forBasicScaler.modifyImageIcon(javax.swing.Icon)
andBasicScaler.modifyIcon(java.lang.Object,javax.swing.Icon)
.- Specified by:
modifyIcon
in interfaceScaler
- Overrides:
modifyIcon
in classBasicScaler
- Parameters:
key
- UIDefaults keyoriginal
- to be scaled- Returns:
- newly scaled instance of either
ImageIcon
orIconUIResource
.
-