/** * @invisible * @param theElement ControlP5XMLElement */ public void addToXMLElement(ControlP5XMLElement theElement) { theElement.setName("tab"); theElement.setAttribute("name", name()); theElement.setAttribute("id", new Integer(id())); theElement.setAttribute("width", new Integer(width())); theElement.removeAttribute("x"); theElement.removeAttribute("y"); }
/* * (non-Javadoc) * * @see * controlP5.ControllerInterface#addToXMLElement(controlP5.ControlP5XMLElement * ) */ public void addToXMLElement(ControlP5XMLElement theElement) { theElement.setAttribute("type", "knob"); theElement.setAttribute("min", new Float(min())); theElement.setAttribute("max", new Float(max())); }