Class FontConfigurer

java.lang.Object
VASSAL.configure.Configurer
VASSAL.configure.FontConfigurer

public class FontConfigurer extends Configurer
A Configurer for Font values
  • Constructor Details Link icon

    • FontConfigurer Link icon

      public FontConfigurer(String key, String name)
    • FontConfigurer Link icon

      public FontConfigurer(String key, String name, Font val)
    • FontConfigurer Link icon

      public FontConfigurer(String key, String name, Font val, int[] sizes)
  • Method Details Link icon

    • getValueString Link icon

      public String getValueString()
      Specified by:
      getValueString in class Configurer
      Returns:
      a String representation of the Object value
    • setValue Link icon

      public void setValue(String s)
      Description copied from class: Configurer
      Set the Object value from a String
      Specified by:
      setValue in class Configurer
    • getControls Link icon

      public Component getControls()
      Description copied from class: Configurer
      GUI interface for setting the option in an editing window
      Specified by:
      getControls in class Configurer
    • decode Link icon

      public static Font decode(String s)
    • encode Link icon

      public static String encode(Font f)
    • setLabelVisible Link icon

      public void setLabelVisible(boolean visible)
      Description copied from class: Configurer
      Show/Hide the internal label maintained by this Configurer. It is up to individual Configurers to track and hide the label (if they can). This method is currently only utilized by the Preference configs PrefsEditor.addOption(String, Configurer) to extract an existing label in a configurer, display correctly aligned and suppress the original label. This keeps compatibility with custom module code setting up preferences. This method only needs to be implemented in Configurers that are added as preferences.
      Overrides:
      setLabelVisible in class Configurer
      Parameters:
      visible - Hide label if true
    • main Link icon

      public static void main(String[] args)