[jboss-cvs] JBossAS SVN: r69130 - in branches/JBPAPP_4_2_0_GA_CP: console/src/main/org/jboss/console/manager/interfaces/impl and 1 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Jan 18 14:19:21 EST 2008
Author: csaldanh
Date: 2008-01-18 14:19:21 -0500 (Fri, 18 Jan 2008)
New Revision: 69130
Modified:
branches/JBPAPP_4_2_0_GA_CP/build/build-thirdparty.xml
branches/JBPAPP_4_2_0_GA_CP/console/src/main/org/jboss/console/manager/interfaces/impl/GraphMBeanAttributeAction.java
branches/JBPAPP_4_2_0_GA_CP/console/src/main/org/jboss/console/plugins/monitor/ManageSnapshotServlet.java
Log:
JBPAPP-536: Upgrade jfreechart to v1.0.9. Fix for CVE-2007-6306
Modified: branches/JBPAPP_4_2_0_GA_CP/build/build-thirdparty.xml
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP/build/build-thirdparty.xml 2008-01-18 18:11:09 UTC (rev 69129)
+++ branches/JBPAPP_4_2_0_GA_CP/build/build-thirdparty.xml 2008-01-18 19:19:21 UTC (rev 69130)
@@ -101,7 +101,7 @@
<componentref name="jboss/serialization" version="1.0.3.GA-brew"/>
<componentref name="jboss/jboss-vfs" version="1.0.0.GA"/>
<componentref name="jboss/web" version="2.0.0.GA_CP05-brew"/>
- <componentref name="jfreechart" version="0.9.20"/>
+ <componentref name="jfreechart" version="1.0.9-brew"/>
<componentref name="jgroups" version="2.4.1.SP4-brew"/>
<componentref name="joesnmp" version="0.3.4-brew"/>
<componentref name="juddi" version="2.0rc5-brew"/>
Modified: branches/JBPAPP_4_2_0_GA_CP/console/src/main/org/jboss/console/manager/interfaces/impl/GraphMBeanAttributeAction.java
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP/console/src/main/org/jboss/console/manager/interfaces/impl/GraphMBeanAttributeAction.java 2008-01-18 18:11:09 UTC (rev 69129)
+++ branches/JBPAPP_4_2_0_GA_CP/console/src/main/org/jboss/console/manager/interfaces/impl/GraphMBeanAttributeAction.java 2008-01-18 19:19:21 UTC (rev 69130)
@@ -28,8 +28,8 @@
import org.jfree.chart.ChartFrame;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.plot.PlotOrientation;
-import org.jfree.data.AbstractXYDataset;
-import org.jfree.data.DatasetChangeEvent;
+import org.jfree.data.xy.AbstractXYDataset;
+import org.jfree.data.general.DatasetChangeEvent;
import javax.management.ObjectName;
import java.util.ArrayList;
@@ -84,9 +84,9 @@
*
* @return the x-value for the specified series and item.
*/
- public Number getXValue(int series, int item)
+ public Number getX(int series, int item)
{
- return new Integer(item);
+ return (Number)item;
}
/**
@@ -97,12 +97,60 @@
*
* @return the y-value for the specified series and item.
*/
- public Number getYValue(int series, int item)
+ public Number getY(int series, int item)
{
- return (Number) data.get(item);
+ return (Number)data.get(item);
}
/**
+ * Returns the x-value for the specified series and item. Series are numbered 0, 1, ...
+ *
+ * @param series the index (zero-based) of the series.
+ * @param item the index (zero-based) of the required item.
+ *
+ * @return the x-value for the specified series and item.
+ */
+ public double getXValue(int series, int item)
+ {
+ return item;
+ }
+
+ /**
+ * Returns the y-value for the specified series and item. Series are numbered 0, 1, ...
+ *
+ * @param series the index (zero-based) of the series.
+ * @param item the index (zero-based) of the required item.
+ *
+ * @return the y-value for the specified series and item.
+ */
+ public double getYValue(int series, int item)
+ {
+ double result = Double.NaN;
+ Number x = (Number)data.get(item);
+ if (x != null) {
+ result = x.doubleValue();
+ }
+ return result;
+ }
+
+ /**
+ * Returns the key for a series.
+ * <p>
+ * If <code>series</code> is not within the specified range, the
+ * implementing method should throw an {@link IndexOutOfBoundsException}
+ * (preferred) or an {@link IllegalArgumentException}.
+ *
+ * @param series the series index (in the range <code>0</code> to
+ * <code>getSeriesCount() - 1</code>).
+ *
+ * @return The series key.
+ */
+ public Comparable getSeriesKey(int series){
+ return "graph"; //Just better to keep it as "graph" for now
+ }
+
+
+ /**
* Returns the number of series in the dataset.
*
* @return the number of series in the dataset.
Modified: branches/JBPAPP_4_2_0_GA_CP/console/src/main/org/jboss/console/plugins/monitor/ManageSnapshotServlet.java
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP/console/src/main/org/jboss/console/plugins/monitor/ManageSnapshotServlet.java 2008-01-18 18:11:09 UTC (rev 69129)
+++ branches/JBPAPP_4_2_0_GA_CP/console/src/main/org/jboss/console/plugins/monitor/ManageSnapshotServlet.java 2008-01-18 19:19:21 UTC (rev 69130)
@@ -38,8 +38,8 @@
import org.jfree.chart.ChartUtilities;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.plot.PlotOrientation;
-import org.jfree.data.DefaultTableXYDataset;
-import org.jfree.data.XYSeries;
+import org.jfree.data.xy.DefaultTableXYDataset;
+import org.jfree.data.xy.XYSeries;
/**
* @author Bill Burke
More information about the jboss-cvs-commits
mailing list