[Schmitzm-commits] r817 - trunk/src/schmitzm/jfree/chart/style

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Apr 23 16:54:57 CEST 2010


Author: mojays
Date: 2010-04-23 16:54:57 +0200 (Fri, 23 Apr 2010)
New Revision: 817

Modified:
   trunk/src/schmitzm/jfree/chart/style/ChartStyleXMLFactory.java
Log:


Modified: trunk/src/schmitzm/jfree/chart/style/ChartStyleXMLFactory.java
===================================================================
--- trunk/src/schmitzm/jfree/chart/style/ChartStyleXMLFactory.java	2010-04-23 14:45:11 UTC (rev 816)
+++ trunk/src/schmitzm/jfree/chart/style/ChartStyleXMLFactory.java	2010-04-23 14:54:57 UTC (rev 817)
@@ -408,6 +408,14 @@
   }
 
   /**
+   * Reads a {@link ChartStyle} from an XML file.
+   * @param filePath        file to read the style from
+   */
+  public E readStyleFromFile(File filePath) throws IOException {
+    return (E)ChartStyleUtil.readStyleFromXML(filePath.toURI().toURL(), this);
+  }
+  
+  /**
    * Creates a XML {@link Element} representing the {@link ChartStyle}.
    * @param style           style to create an element for
    * @param rootElementName name for the root element (if {@code null} "ChartStyle" is 



More information about the Schmitzm-commits mailing list