Remove TRACE variable

This commit is contained in:
Fabian Becker 2013-07-22 09:51:05 +02:00
parent 85ec784da2
commit 885fededed

View File

@ -17,11 +17,10 @@ import java.util.ArrayList;
*/ */
public class DataViewer implements DataViewerInterface { public class DataViewer implements DataViewerInterface {
public static boolean TRACE = false; static private int graphCounter = -1;
static private int m_GraphCounter = -1;
static private ViewContainer viewContainer; static private ViewContainer viewContainer;
private String m_Name; private String name;
private Plot m_Plot; private Plot plot;
/** /**
* *
@ -49,10 +48,7 @@ public class DataViewer implements DataViewerInterface {
* *
*/ */
private DataViewer(String PlotName, boolean initflag) { private DataViewer(String PlotName, boolean initflag) {
if (TRACE) { name = PlotName;
System.out.println("Constructor DataViewer");
}
m_Name = PlotName;
if (initflag) { if (initflag) {
this.init(); this.init();
} }
@ -62,7 +58,7 @@ public class DataViewer implements DataViewerInterface {
* *
*/ */
public String getName() { public String getName() {
return m_Name; return name;
} }
/** /**
@ -70,11 +66,8 @@ public class DataViewer implements DataViewerInterface {
*/ */
@Override @Override
public Graph getNewGraph(String InfoString) { public Graph getNewGraph(String InfoString) {
m_GraphCounter++; graphCounter++;
if (TRACE) { return new Graph(InfoString, plot, graphCounter);
System.out.println("Graph.getNewGraph No:" + m_GraphCounter);
}
return new Graph(InfoString, m_Plot, m_GraphCounter);
} }
/** /**
@ -82,7 +75,7 @@ public class DataViewer implements DataViewerInterface {
*/ */
@Override @Override
public void init() { public void init() {
m_Plot = new Plot(m_Name, "x", "y", true); plot = new Plot(name, "x", "y", true);
} }
} }
@ -96,8 +89,7 @@ class ViewContainer extends ArrayList {
/** /**
* *
*/ */
public ViewContainer() { public ViewContainer() { }
}
/** /**
* *