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 Details

    • initialScaling

      void initialScaling()
      Used for synchronized LAFs, where only one change (e.g. Font) is sufficient (e.g. Nimbus).
    • modifyFont

      Font modifyFont​(Object key, Font original)
      Implement to modify Fonts.
      Parameters:
      key - UIDefaults key
      original - instance to be scaled
      Returns:
      newly scaled instance
    • modifyIcon

      Icon modifyIcon​(Object key, Icon original)
      Implement to modify Icons.
      Parameters:
      key - UIDefaults key
      original - instance to be scaled
      Returns:
      newly scaled instance
    • modifyInteger

      Integer modifyInteger​(Object key, Integer original)
      Implement to modify Integers.
      Parameters:
      key - UIDefaults key
      original - instance to be scaled
      Returns:
      newly scaled instance
    • modifyInsets

      Insets modifyInsets​(Insets original)
      Implement to modify Insets.
      Parameters:
      original - Insets instance to be scaled
      original - InsetsUIResource instance to be scaled
      Returns:
      newly scaled instance