Package at.bestsolution.efxclipse.jface

Examples of at.bestsolution.efxclipse.jface.RGB


    if (s != null && s.trim().length() > 0)
      info.setColorPreferenceKey(s);

    s= element.getAttribute("colorPreferenceValue")//$NON-NLS-1$
    if (s != null && s.trim().length() > 0) {
      RGB rgb= StringConverter.asRGB(s);
      info.setColorPreferenceValue(rgb == null ? RGB.iRGB(0,0,0) : rgb);
    }

    s= element.getAttribute("presentationLayer")//$NON-NLS-1$
    if (s != null && s.trim().length() > 0) {
View Full Code Here


        if (IPreferenceStore.STRING_DEFAULT_DEFAULT.equals(value)) {
      return COLOR_DEFAULT_DEFAULT;
    }

        RGB color = StringConverter.asRGB(value, null);
        if (color == null) {
      return COLOR_DEFAULT_DEFAULT;
    }
        return color;
    }
View Full Code Here

                gval = Double.parseDouble(green);
                bval = Double.parseDouble(blue);
            } catch (NumberFormatException e) {
                throw new DataFormatException(e.getMessage());
            }
            return new RGB(rval, gval, bval, 1.0);
        } catch (NoSuchElementException e) {
            throw new DataFormatException(e.getMessage());
        }
    }
View Full Code Here

TOP

Related Classes of at.bestsolution.efxclipse.jface.RGB

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.