Java Code Examples for org.jfree.chart.renderer.xy.XYStepRenderer#setStepPoint()
The following examples show how to use
org.jfree.chart.renderer.xy.XYStepRenderer#setStepPoint() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: XYStepRendererTests.java From astor with GNU General Public License v2.0 | 6 votes |
/** * Check that the equals() method distinguishes all fields. */ public void testEquals() { XYStepRenderer r1 = new XYStepRenderer(); XYStepRenderer r2 = new XYStepRenderer(); assertEquals(r1, r2); r1.setStepPoint(0.44); assertFalse(r1.equals(r2)); r2.setStepPoint(0.44); assertTrue(r1.equals(r2)); // try something from the base class r1.setBaseCreateEntities(false); assertFalse(r1.equals(r2)); r2.setBaseCreateEntities(false); assertTrue(r1.equals(r2)); }
Example 2
Source File: XYStepRendererTests.java From astor with GNU General Public License v2.0 | 6 votes |
/** * Check that the equals() method distinguishes all fields. */ public void testEquals() { XYStepRenderer r1 = new XYStepRenderer(); XYStepRenderer r2 = new XYStepRenderer(); assertEquals(r1, r2); r1.setStepPoint(0.44); assertFalse(r1.equals(r2)); r2.setStepPoint(0.44); assertTrue(r1.equals(r2)); // try something from the base class r1.setBaseCreateEntities(false); assertFalse(r1.equals(r2)); r2.setBaseCreateEntities(false); assertTrue(r1.equals(r2)); }
Example 3
Source File: XYStepRendererTests.java From astor with GNU General Public License v2.0 | 5 votes |
/** * Two objects that are equal are required to return the same hashCode. */ public void testHashcode() { XYStepRenderer r1 = new XYStepRenderer(); r1.setStepPoint(0.123); XYStepRenderer r2 = new XYStepRenderer(); r2.setStepPoint(0.123); assertTrue(r1.equals(r2)); int h1 = r1.hashCode(); int h2 = r2.hashCode(); assertEquals(h1, h2); }
Example 4
Source File: XYStepRendererTests.java From astor with GNU General Public License v2.0 | 5 votes |
/** * Two objects that are equal are required to return the same hashCode. */ public void testHashcode() { XYStepRenderer r1 = new XYStepRenderer(); r1.setStepPoint(0.123); XYStepRenderer r2 = new XYStepRenderer(); r2.setStepPoint(0.123); assertTrue(r1.equals(r2)); int h1 = r1.hashCode(); int h2 = r2.hashCode(); assertEquals(h1, h2); }