Skip to content
Snippets Groups Projects
Commit 1d7af93f authored by timmolter's avatar timmolter
Browse files

simplified

parent 70491ea3
Branches
No related tags found
No related merge requests found
......@@ -15,14 +15,12 @@
*/
package com.xeiam.xchart;
import com.xeiam.xchart.Chart;
import com.xeiam.xchart.series.Series;
import com.xeiam.xchart.series.SeriesColor;
import com.xeiam.xchart.series.SeriesLineStyle;
import com.xeiam.xchart.series.SeriesMarker;
import com.xeiam.xchart.swing.SwingWrapper;
/**
* Embed a Chart in a simple Swing application
*
......@@ -57,8 +55,7 @@ public class Example2 {
series1.setMarkerColor(SeriesColor.GREEN);
series1.setMarker(SeriesMarker.SQUARE);
SwingWrapper swingHelper = new SwingWrapper(chart);
swingHelper.displayChart();
new SwingWrapper(chart).displayChart();
}
}
......@@ -15,10 +15,8 @@
*/
package com.xeiam.xchart;
import com.xeiam.xchart.Chart;
import com.xeiam.xchart.swing.SwingWrapper;
/**
* Create multiple curves on one chart
*
......@@ -52,8 +50,7 @@ public class Example3 {
}
SwingWrapper swingHelper = new SwingWrapper(chart);
swingHelper.displayChart();
new SwingWrapper(chart).displayChart();
}
}
......@@ -19,7 +19,6 @@ import com.xeiam.xchart.Chart;
import com.xeiam.xchart.QuickChart;
import com.xeiam.xchart.swing.SwingWrapper;
/**
* Create a chart matrix
*
......
......@@ -15,10 +15,8 @@
*/
package com.xeiam.xchart;
import com.xeiam.xchart.Chart;
import com.xeiam.xchart.swing.SwingWrapper;
/**
* Plot vertical and horizontal lines
*
......@@ -39,8 +37,7 @@ public class Example5 {
chart.addSeries("vertical", new double[] { 1, 1 }, new double[] { -10, 10 });
chart.addSeries("horizontal", new double[] { -10, 10 }, new double[] { 0, 0 });
SwingWrapper swingHelper = new SwingWrapper(chart);
swingHelper.displayChart();
new SwingWrapper(chart).displayChart();
}
}
......@@ -15,10 +15,8 @@
*/
package com.xeiam.xchart;
import com.xeiam.xchart.Chart;
import com.xeiam.xchart.swing.SwingWrapper;
/**
* Create chart with single point
*
......@@ -38,8 +36,7 @@ public class Example6 {
chart.addSeries("single point (1,1)", new double[] { 1 }, new double[] { 1 });
SwingWrapper swingHelper = new SwingWrapper(chart);
swingHelper.displayChart();
new SwingWrapper(chart).displayChart();
}
}
......@@ -15,10 +15,8 @@
*/
package com.xeiam.xchart;
import com.xeiam.xchart.Chart;
import com.xeiam.xchart.swing.SwingWrapper;
/**
* Create chart with NaN values
*
......@@ -38,8 +36,7 @@ public class Example7 {
chart.addSeries("NaN Value at (2,2)", null, new double[] { 0, 1, Double.NaN, 3, 4 });
SwingWrapper swingHelper = new SwingWrapper(chart);
swingHelper.displayChart();
new SwingWrapper(chart).displayChart();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment