Class ColorPersistor


  • public final class ColorPersistor
    extends Object
    • Field Detail

      • DEFAULT_COLOR

        public static final org.eclipse.swt.graphics.Color DEFAULT_COLOR
    • Method Detail

      • saveColor

        public static void saveColor​(String prefix,
                                     Properties properties,
                                     org.eclipse.swt.graphics.Color color)
      • loadColor

        public static org.eclipse.swt.graphics.Color loadColor​(String prefix,
                                                               Properties properties)
      • asString

        public static String asString​(org.eclipse.swt.graphics.Color color)
        Parameters:
        color - The Color for which the String representation is requested.
        Returns:
        The String representation of the provided SWT Color.
      • asColor

        public static org.eclipse.swt.graphics.Color asColor​(String colorAsString)
        Create a Color instance using the String created by asColor(String).
        Parameters:
        colorAsString - The String representation of a SWT Color.
        Returns:
        The SWT Color for the given String.