mainPanel.setBackground(nodeList.getBackground());
mainPanel.setTabLayoutPolicy(JTabbedPane.WRAP_TAB_LAYOUT);
categoryTable.put(MAIN, mainPanel);
serialConsole = new SerialConsole(this, MAIN);
mapPanel = new MapPanel(this, "Sensor Map", MAIN, true);
String image = getConfig("collect.mapimage");
if (image != null) {
mapPanel.setMapBackground(image);
}
NodeControl nodeControl = new NodeControl(this, MAIN);
visualizers = new Visualizer[] {
nodeControl,
mapPanel,
new MapPanel(this, "Network Graph", MAIN, false),
new BarChartPanel(this, SENSORS, "Average Temperature", "Temperature", "Nodes", "Celsius",
new String[] { "Celsius" }) {
{
chart.getCategoryPlot().getRangeAxis().setStandardTickUnits(NumberAxis.createIntegerTickUnits());
}