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 {
private int workingSpace;
/** the normal format for tick labels */
private Format normalFormat = new DecimalFormat("#.###########");
private Format normalFormat;
/** 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 = new SimpleDateFormat("MM-dd");
private SimpleDateFormat simpleDateformat;
/** the bounds */
private Rectangle bounds;
......@@ -72,9 +71,8 @@ public class AxisTick implements IChartPart, IHideable {
protected boolean isVisible = true; // default to true
/**
* Constructor.
* Constructor
*
* @param chart the chart
* @param axis the axis
*/
protected AxisTick(Axis axis) {
......@@ -83,6 +81,10 @@ public class AxisTick implements IChartPart, IHideable {
axisTickLabels = new AxisTickLabels(this);
axisTickMarks = new AxisTickMarks(this);
normalFormat = new DecimalFormat("#.###########");
scientificFormat = new DecimalFormat("0.###E0");
simpleDateformat = new SimpleDateFormat("MM-dd");
}
@Override
......
......@@ -40,7 +40,7 @@ public class AxisTickLabels implements IChartPart {
/**
* Constructor
*
* @param axis the axis
* @param axisTick
*/
protected AxisTickLabels(AxisTick axisTick) {
......
......@@ -42,7 +42,6 @@ public class AxisTickMarks implements IChartPart {
/**
* Constructor
*
* @param axis
* @param axisTick
*/
protected AxisTickMarks(AxisTick axisTick) {
......
......@@ -49,8 +49,8 @@ public class Chart {
/**
* Constructor
*
* @param pWidth
* @param pHeight
* @param width
* @param height
*/
public Chart(int width, int height) {
......
......@@ -51,6 +51,8 @@ public class ChartLegend implements IHideable {
/**
* Constructor
*
* @param chart
*/
public ChartLegend(Chart chart) {
......
......@@ -45,6 +45,8 @@ public class ChartTitle implements IHideable {
/**
* Constructor
*
* @param chart
*/
public ChartTitle(Chart chart) {
......
......@@ -47,7 +47,6 @@ public class PlotSurface implements IChartPart, IHideable {
/**
* Constructor
*
* @param chart
* @param plot
*/
protected PlotSurface(Plot plot) {
......
......@@ -22,7 +22,6 @@ import java.util.List;
import javax.swing.JFrame;
import javax.swing.JPanel;
/**
* @author timmolter
*/
......@@ -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 numRows
* @param numColumns
*/
public SwingWrapper(List<Chart> charts) {
......
......@@ -26,7 +26,6 @@ import com.xeiam.xchart.series.markers.Square;
import com.xeiam.xchart.series.markers.TriangleDown;
import com.xeiam.xchart.series.markers.TriangleUp;
/**
* @author timmolter
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment