Class JOptionPaneScaler

All Implemented Interfaces:
Scaler

public class JOptionPaneScaler
extends ComponentScaler
A JOptionPane-specific extension of ComponentScaler.
Author:
D. Garkov
  • Constructor Details

    • JOptionPaneScaler

      public JOptionPaneScaler​(float scaleFactor)
  • Method Details

    • coscaleIcon

      public void coscaleIcon​(JComponent component)
      Description copied from class: ComponentScaler
      Left to subtypes. There are implementations for the following JComponents:

      AbstractButton, JLabel, JOptionPane, JTabbedPane.

      Overrides:
      coscaleIcon in class ComponentScaler
      Parameters:
      component - Component having Icon
    • scaleComponent

      public void scaleComponent​(JComponent immediateComponent)
      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 class ComponentScaler
      Parameters:
      immediateComponent - to be scaled