There are 1 code examples for javax.swing.plaf.FontUIResource.

The API names are highlighted below. You can use suckoo button to vote the code example(s) you like. The best code example will be ranked first next time. Thanks a lot for your feedback.

Project Name: weka Package: weka.gui.beans.xml

Source Code: XMLBeans.java (Click to view .java file)

Method Code:
vote
like

/** 
 * adds the given FontUIResource 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 writeFontUIResource(Element parent,Object o,String name) throws Exception {
  Element node;
  FontUIResource resource;
  if (DEBUG)   trace(new Throwable(),name);
  m_CurrentNode=parent;
  resource=(FontUIResource)o;
  node=addElement(parent,name,resource.getClass().getName(),false);
  invokeWriteToXML(node,new Font(resource.getName(),resource.getStyle(),resource.getSize()),VAL_COLOR);
  return node;
}