@Test public void testIsChartPointValid() { System.out.println("isChartPointValid"); int xx = 365; int yy = 378; AbstractRowPlotter instance = new AbstractRowPlotterImpl(); instance.setBoundsValues(new Graphics2DEmul().getBounds(), minXVal, maxXVal, minYVal, maxYVal); boolean expResult = true; boolean result = instance.isChartPointValid(xx, yy); Assert.assertEquals(expResult, result); }
protected boolean isChartPointValid(int xx, int yy) { boolean ret = true; if (xx < chartRect.x || xx > chartRect.x + chartRect.width) { ret = false; } else if (yy > chartRect.y + chartRect.height) { ret = false; } return ret; }
AbstractRowPlotter implements Serializable { protected boolean isChartPointValid(int xx, int yy) { boolean ret = true; if (xx < chartRect.x || xx > chartRect.x + chartRect.width) { ret = false; } else if (yy > chartRect.y + chartRect.height) { ret = false; } return ret; } }
AbstractRowPlotter implements Serializable { protected boolean isChartPointValid(int xx, int yy) { boolean ret = true; if (xx < chartRect.x || xx > chartRect.x + chartRect.width) { ret = false; } else if (yy > chartRect.y + chartRect.height) { ret = false; } return ret; } AbstractRowPlotter(ChartSettings chartSettings, NumberRenderer labelRenderer); }
AbstractRowPlotter implements Serializable { protected boolean isChartPointValid(int xx, int yy) { boolean ret = true; if (xx < chartRect.x || xx > chartRect.x + chartRect.width) { ret = false; } else if (yy > chartRect.y + chartRect.height) { ret = false; } return ret; } AbstractRowPlotter(ChartSettings chartSettings, NumberRenderer labelRenderer); void setBoundsValues(Rectangle chartRect, long minXVal, long maxXVal, double minYVal, double maxYVal); synchronized void paintRow(Graphics2D g2d, AbstractGraphRow row, Color color, double zoomFactor, int limitPointFactor); }
AbstractRowPlotter implements Serializable { protected boolean isChartPointValid(int xx, int yy) { boolean ret = true; if (xx < chartRect.x || xx > chartRect.x + chartRect.width) { ret = false; } else if (yy > chartRect.y + chartRect.height) { ret = false; } return ret; } AbstractRowPlotter(ChartSettings chartSettings, NumberRenderer labelRenderer); void setBoundsValues(Rectangle chartRect, long minXVal, long maxXVal, double minYVal, double maxYVal); synchronized void paintRow(Graphics2D g2d, AbstractGraphRow row, Color color, double zoomFactor, int limitPointFactor);  }