Skip to Content.
Sympa Menu

perfsonar-dev - perfsonar: r4650 - in branches/perfsonarui/src/org/perfsonar/perfsonarui/ma: . ui/panels

Subject: perfsonar development work

List archive

perfsonar: r4650 - in branches/perfsonarui/src/org/perfsonar/perfsonarui/ma: . ui/panels


Chronological Thread 
  • From:
  • To:
  • Subject: perfsonar: r4650 - in branches/perfsonarui/src/org/perfsonar/perfsonarui/ma: . ui/panels
  • Date: Wed, 22 Oct 2008 05:48:59 -0400

Author: nina
Date: 2008-10-22 05:48:59 -0400 (Wed, 22 Oct 2008)
New Revision: 4650

Modified:

branches/perfsonarui/src/org/perfsonar/perfsonarui/ma/ResourceBundle.properties

branches/perfsonarui/src/org/perfsonar/perfsonarui/ma/ui/panels/MAResponseChartPanel.java
Log:
Adding different axes for errors and drops

Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/ma/ResourceBundle.properties
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/ma/ResourceBundle.properties
2008-10-21 14:00:20 UTC (rev 4649)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/ma/ResourceBundle.properties
2008-10-22 09:48:59 UTC (rev 4650)
@@ -2,8 +2,8 @@
msg_utilization=Utilisation
msg_utilization_percent=Utilisation,%
msg_utilization_mbs =Utilisation,Mb/s
-msg_input_errors =Input errors
-msg_output_drops =Output drops
+msg_input_errors =Input errors,Eps
+msg_output_drops =Output drops,Dps
msg_select_interface=Select interface
action_trace=Traceroute & search
action_file_help=A file with a list of IP addresses is expected. Reads the
file content and inserts it into the search panel at the left.

Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/ma/ui/panels/MAResponseChartPanel.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/ma/ui/panels/MAResponseChartPanel.java
2008-10-21 14:00:20 UTC (rev 4649)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/ma/ui/panels/MAResponseChartPanel.java
2008-10-22 09:48:59 UTC (rev 4650)
@@ -128,24 +128,20 @@
bitAxis.setTickMarkPaint(gridColor);
bitAxis.setTickMarksVisible(true);

- NumberAxis countAxis = new
NumberAxis(rb.getString(MAResourceKeys.msg_input_errors)
- +'/'+ rb.getString(MAResourceKeys.msg_output_drops)) {
+ NumberAxis errorsAxis = new
NumberAxis(rb.getString(MAResourceKeys.msg_input_errors)) {
+ };
+ errorsAxis.setAutoRange(true);
+ errorsAxis.setAxisLinePaint(Color.red);
+ errorsAxis.setTickMarkPaint(gridColor);
+ errorsAxis.setTickMarksVisible(true);

- /**
- *
- */
- private static final long serialVersionUID =
8599170403106496529L;
-
- @Override
- public void autoAdjustRange() {
- super.autoAdjustRange();
- }
+ NumberAxis discardsAxis = new
NumberAxis(rb.getString(MAResourceKeys.msg_output_drops)) {
};
- countAxis.setAutoRange(true);
- countAxis.setAxisLinePaint(Color.red);
- countAxis.setTickMarkPaint(gridColor);
- countAxis.setTickMarksVisible(true);
-
+ discardsAxis.setAutoRange(true);
+ discardsAxis.setAxisLinePaint(Color.black);
+ discardsAxis.setTickMarkPaint(gridColor);
+ discardsAxis.setTickMarksVisible(true);
+
dateAxis = new DateAxis("", TimeZone.getDefault());
dateAxis.setAutoRange(true);
dateAxis.setDateFormatOverride(new SimpleDateFormat("d MMM yy
HH:mm"));
@@ -176,9 +172,11 @@
renderer[2][1].setSeriesVisible(0,true);
((XYPlot)plot).setRenderer(3,renderer[2][1]);

- ((XYPlot)plot).setRangeAxis(1, countAxis);
+ ((XYPlot)plot).setRangeAxis(1, errorsAxis);
((XYPlot)plot).mapDatasetToRangeAxis(2, 1);
- ((XYPlot)plot).mapDatasetToRangeAxis(3, 1);
+
+ ((XYPlot)plot).setRangeAxis(2, discardsAxis);
+ ((XYPlot)plot).mapDatasetToRangeAxis(3, 2);


final JFreeChart result = new JFreeChart(title,



  • perfsonar: r4650 - in branches/perfsonarui/src/org/perfsonar/perfsonarui/ma: . ui/panels, svnlog, 10/22/2008

Archive powered by MHonArc 2.6.16.

Top of Page