/** * adds the given ColorUIResource to a DOM structure. * * @param parent the parent of this object, e.g. the class this object is a * member of * @param o the Object to describe in XML * @param name the name of the object * @return the node that was created * @throws Exception if the DOM creation fails */ public Element writeColorUIResource(Element parent, Object o, String name) throws Exception { Element node; ColorUIResource resource; // for debugging only if (DEBUG) { trace(new Throwable(), name); } m_CurrentNode = parent; resource = (ColorUIResource) o; node = addElement(parent, name, resource.getClass().getName(), false); invokeWriteToXML(node, new Color(resource.getRGB()), VAL_COLOR); return node; }
/** * adds the given ColorUIResource to a DOM structure. * * @param parent the parent of this object, e.g. the class this object is a * member of * @param o the Object to describe in XML * @param name the name of the object * @return the node that was created * @throws Exception if the DOM creation fails */ public Element writeColorUIResource(Element parent, Object o, String name) throws Exception { Element node; ColorUIResource resource; // for debugging only if (DEBUG) { trace(new Throwable(), name); } m_CurrentNode = parent; resource = (ColorUIResource) o; node = addElement(parent, name, resource.getClass().getName(), false); invokeWriteToXML(node, new Color(resource.getRGB()), VAL_COLOR); return node; }
new Object[] {getPrimary1()}); Color cccccc = new ColorUIResource(BuLib.mixColors(getSecondary3().getRGB(),0xAAAAAA)); //0xCCCCCC); Color dadada = new ColorUIResource(BuLib.mixColors(getSecondary3().getRGB(),0xC7C7C7)); //0xDADADA); Color c8ddf2 = new ColorUIResource(BuLib.mixColors(getSecondary2().getRGB(),0xD8EBFF)); //0xC8DDF2); (new Object[] { new Float(.3f), new Float(0f), new ColorUIResource(BuLib.mixColors(BuLib.mixColors(getPrimary3().getRGB(),0xEEEEEE),0xE7F3FE)), //0xDDE8F3), getWhite(), getSecondary2() });