Class Colors


  • public class Colors
    extends java.lang.Object
    A class to unify encoding and decoding of colors stored in string representation (e.g. in magellan.ini).
    Author:
    Ilja Pavkovic
    • Constructor Summary

      Constructors 
      Constructor Description
      Colors()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.awt.Color decode​(java.lang.String txt)
      Decode a string with three integers separated by ";" to a Color.
      static java.lang.String encode​(java.awt.Color c)
      Encode a color into a String with three integers separated by separator ";".
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Colors

        public Colors()
    • Method Detail

      • decode

        public static java.awt.Color decode​(java.lang.String txt)
        Decode a string with three integers separated by ";" to a Color.
      • encode

        public static java.lang.String encode​(java.awt.Color c)
        Encode a color into a String with three integers separated by separator ";".