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

cleaned up constructors

parent 889a73c0
No related branches found
No related tags found
No related merge requests found
...@@ -57,13 +57,12 @@ public class AxisTick implements IChartPart, IHideable { ...@@ -57,13 +57,12 @@ public class AxisTick implements IChartPart, IHideable {
private int workingSpace; private int workingSpace;
/** the normal format for tick labels */ /** the normal format for tick labels */
private Format normalFormat = new DecimalFormat("#.###########"); private Format normalFormat;
/** the scientific format for tick labels */ /** the scientific format for tick labels */
private Format scientificFormat = new DecimalFormat("0.###E0"); private Format scientificFormat;
// private SimpleDateFormat simpleDateformat = new SimpleDateFormat("dd.MM.yyyy"); private SimpleDateFormat simpleDateformat;
private SimpleDateFormat simpleDateformat = new SimpleDateFormat("MM-dd");
/** the bounds */ /** the bounds */
private Rectangle bounds; private Rectangle bounds;
...@@ -72,9 +71,8 @@ public class AxisTick implements IChartPart, IHideable { ...@@ -72,9 +71,8 @@ public class AxisTick implements IChartPart, IHideable {
protected boolean isVisible = true; // default to true protected boolean isVisible = true; // default to true
/** /**
* Constructor. * Constructor
* *
* @param chart the chart
* @param axis the axis * @param axis the axis
*/ */
protected AxisTick(Axis axis) { protected AxisTick(Axis axis) {
...@@ -83,6 +81,10 @@ public class AxisTick implements IChartPart, IHideable { ...@@ -83,6 +81,10 @@ public class AxisTick implements IChartPart, IHideable {
axisTickLabels = new AxisTickLabels(this); axisTickLabels = new AxisTickLabels(this);
axisTickMarks = new AxisTickMarks(this); axisTickMarks = new AxisTickMarks(this);
normalFormat = new DecimalFormat("#.###########");
scientificFormat = new DecimalFormat("0.###E0");
simpleDateformat = new SimpleDateFormat("MM-dd");
} }
@Override @Override
......
...@@ -40,7 +40,7 @@ public class AxisTickLabels implements IChartPart { ...@@ -40,7 +40,7 @@ public class AxisTickLabels implements IChartPart {
/** /**
* Constructor * Constructor
* *
* @param axis the axis * @param axisTick
*/ */
protected AxisTickLabels(AxisTick axisTick) { protected AxisTickLabels(AxisTick axisTick) {
......
...@@ -42,7 +42,6 @@ public class AxisTickMarks implements IChartPart { ...@@ -42,7 +42,6 @@ public class AxisTickMarks implements IChartPart {
/** /**
* Constructor * Constructor
* *
* @param axis
* @param axisTick * @param axisTick
*/ */
protected AxisTickMarks(AxisTick axisTick) { protected AxisTickMarks(AxisTick axisTick) {
......
...@@ -49,8 +49,8 @@ public class Chart { ...@@ -49,8 +49,8 @@ public class Chart {
/** /**
* Constructor * Constructor
* *
* @param pWidth * @param width
* @param pHeight * @param height
*/ */
public Chart(int width, int height) { public Chart(int width, int height) {
......
...@@ -51,6 +51,8 @@ public class ChartLegend implements IHideable { ...@@ -51,6 +51,8 @@ public class ChartLegend implements IHideable {
/** /**
* Constructor * Constructor
*
* @param chart
*/ */
public ChartLegend(Chart chart) { public ChartLegend(Chart chart) {
......
...@@ -45,6 +45,8 @@ public class ChartTitle implements IHideable { ...@@ -45,6 +45,8 @@ public class ChartTitle implements IHideable {
/** /**
* Constructor * Constructor
*
* @param chart
*/ */
public ChartTitle(Chart chart) { public ChartTitle(Chart chart) {
......
...@@ -47,7 +47,6 @@ public class PlotSurface implements IChartPart, IHideable { ...@@ -47,7 +47,6 @@ public class PlotSurface implements IChartPart, IHideable {
/** /**
* Constructor * Constructor
* *
* @param chart
* @param plot * @param plot
*/ */
protected PlotSurface(Plot plot) { protected PlotSurface(Plot plot) {
......
...@@ -22,7 +22,6 @@ import java.util.List; ...@@ -22,7 +22,6 @@ import java.util.List;
import javax.swing.JFrame; import javax.swing.JFrame;
import javax.swing.JPanel; import javax.swing.JPanel;
/** /**
* @author timmolter * @author timmolter
*/ */
...@@ -43,11 +42,9 @@ public class SwingWrapper { ...@@ -43,11 +42,9 @@ public class SwingWrapper {
} }
/** /**
* Constructor - The number of rows and columns will be calculated automatically * Constructor - The number of rows and columns will be calculated automatically Constructor
* *
* @param charts * @param charts
* @param numRows
* @param numColumns
*/ */
public SwingWrapper(List<Chart> charts) { public SwingWrapper(List<Chart> charts) {
......
...@@ -26,7 +26,6 @@ import com.xeiam.xchart.series.markers.Square; ...@@ -26,7 +26,6 @@ import com.xeiam.xchart.series.markers.Square;
import com.xeiam.xchart.series.markers.TriangleDown; import com.xeiam.xchart.series.markers.TriangleDown;
import com.xeiam.xchart.series.markers.TriangleUp; import com.xeiam.xchart.series.markers.TriangleUp;
/** /**
* @author timmolter * @author timmolter
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment