Class ColorSwatchConfigurer

java.lang.Object
VASSAL.configure.Configurer
VASSAL.build.module.gamepieceimage.ColorSwatchConfigurer

public class ColorSwatchConfigurer
extends Configurer
  • Field Details

  • Constructor Details

    • ColorSwatchConfigurer

      public ColorSwatchConfigurer​(String key, String name)
    • ColorSwatchConfigurer

      public ColorSwatchConfigurer​(String key, String name, ColorSwatch swatch)
    • ColorSwatchConfigurer

      public ColorSwatchConfigurer​(String key, String name, String swatchName)
    • ColorSwatchConfigurer

      public ColorSwatchConfigurer​(String key, String name, Color color)
  • Method Details

    • getValueString

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

      public Color getValueColor()
    • getValueColorSwatch

      public ColorSwatch getValueColorSwatch()
    • getControls

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

      protected void buildSwatches()
    • updateValue

      protected void updateValue()
    • repack

      protected void repack()
    • setValue

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

      public static ColorSwatch decode​(String s)
    • encode

      public static String encode​(ColorSwatch f)