Class HexStringM2TConverter

  • All Implemented Interfaces:
    org.eclipse.core.databinding.conversion.IConverter<Color,​String>

    public class HexStringM2TConverter
    extends org.eclipse.core.databinding.conversion.Converter<Color,​String>
    This class is a model to target converter, which is intended to be used while (data-)binding an observable Color model object to an observable target that represents the color as a hex string ("RRGGBB").
    • Constructor Detail

      • HexStringM2TConverter

        public HexStringM2TConverter()
        Creates a model to target converter for an observable of Color model object to an observable target that represents the color as a hex string ("RRGGBB").
    • Method Detail

      • convert

        public String convert​(Color fromObject)
        Creates hex string representation ("RRGGBB") out of the provided Color object.