@Test public void testAdd() { System.out.println("add"); long xVal = 10; double yVal = 5.0; instance.add(xVal, yVal); double[] minMax = instance.getMinMaxY(-1); assertEquals(xVal, instance.getMinX()); assertEquals(xVal, instance.getMaxX()); Assert.assertEquals(yVal, minMax[0], 0.001); Assert.assertEquals(yVal, minMax[1], 0.001); }
@Override public void add(long xVal, double yVal) { GraphPanelChartSimpleElement el; if (values.containsKey(xVal)) { el = (GraphPanelChartSimpleElement) values.get(xVal); el.add(yVal); } else { el = new GraphPanelChartSimpleElement(yVal); values.put(xVal, el); } super.add(xVal, yVal); }
GraphRowSimple extends AbstractGraphRow implements Serializable { @Override public void add(long xVal, double yVal) { GraphPanelChartSimpleElement el; if (values.containsKey(xVal)) { el = (GraphPanelChartSimpleElement) values.get(xVal); el.add(yVal); } else { el = new GraphPanelChartSimpleElement(yVal); values.put(xVal, el); } super.add(xVal, yVal); } }
GraphRowSimple extends AbstractGraphRow implements Serializable { @Override public void add(long xVal, double yVal) { GraphPanelChartSimpleElement el; if (values.containsKey(xVal)) { el = (GraphPanelChartSimpleElement) values.get(xVal); el.add(yVal); } else { el = new GraphPanelChartSimpleElement(yVal); values.put(xVal, el); } super.add(xVal, yVal); } GraphRowSimple(); }
GraphRowSimple extends AbstractGraphRow implements Serializable { @Override public void add(long xVal, double yVal) { GraphPanelChartSimpleElement el; if (values.containsKey(xVal)) { el = (GraphPanelChartSimpleElement) values.get(xVal); el.add(yVal); } else { el = new GraphPanelChartSimpleElement(yVal); values.put(xVal, el); } super.add(xVal, yVal); } GraphRowSimple(); @Override void add(long xVal, double yVal); @Override Iterator<Entry<Long, AbstractGraphPanelChartElement>> iterator(); @Override int size(); @Override AbstractGraphPanelChartElement getElement(long value); @Override Long getHigherKey(long value); }
GraphRowSimple extends AbstractGraphRow implements Serializable { @Override public void add(long xVal, double yVal) { GraphPanelChartSimpleElement el; if (values.containsKey(xVal)) { el = (GraphPanelChartSimpleElement) values.get(xVal); el.add(yVal); } else { el = new GraphPanelChartSimpleElement(yVal); values.put(xVal, el); } super.add(xVal, yVal); } GraphRowSimple(); @Override void add(long xVal, double yVal); @Override Iterator<Entry<Long, AbstractGraphPanelChartElement>> iterator(); @Override int size(); @Override AbstractGraphPanelChartElement getElement(long value); @Override Long getHigherKey(long value);  }