Class JOptionPaneScaler
java.lang.Object
org.vanted.scaling.scalers.BasicScaler
org.vanted.scaling.scalers.component.ComponentScaler
org.vanted.scaling.scalers.component.JOptionPaneScaler
- All Implemented Interfaces:
Scaler
public class JOptionPaneScaler extends ComponentScaler
A JOptionPane-specific extension of
ComponentScaler
.- Author:
- D. Garkov
-
Constructor Summary
Constructors Constructor Description JOptionPaneScaler(float scaleFactor)
-
Method Summary
Modifier and Type Method Description void
coscaleIcon(JComponent component)
Left to subtypes.void
scaleComponent(JComponent immediateComponent)
A method to be called when this JOptionPaneScaler has been dispatched to some immediate Component to be scaled.Methods inherited from class org.vanted.scaling.scalers.component.ComponentScaler
coscaleFont, coscaleInsets
Methods inherited from class org.vanted.scaling.scalers.BasicScaler
getScaleFactor, initialScaling, modifyFont, modifyIcon, modifyInsets, modifyInteger, setScaleFactor
-
Constructor Details
-
JOptionPaneScaler
public JOptionPaneScaler(float scaleFactor)
-
-
Method Details
-
coscaleIcon
Description copied from class:ComponentScaler
Left to subtypes. There are implementations for the following JComponents:AbstractButton, JLabel, JOptionPane, JTabbedPane.
- Overrides:
coscaleIcon
in classComponentScaler
- Parameters:
component
- Component having Icon
-
scaleComponent
A method to be called when this JOptionPaneScaler has been dispatched to some immediate Component to be scaled. This tackles the problem that after a complete application scaling, through the ScalingSlider, further components, initialized posterior, are not scaled. In order to do so, attach a scaler and call this method upon initialization.- Overrides:
scaleComponent
in classComponentScaler
- Parameters:
immediateComponent
- to be scaled
-