@Test public void testEquals() { LogAxis a1 = new LogAxis("Test"); LogAxis a2 = new LogAxis("Test"); assertEquals(a1, a2); a1.setBase(2.0); assertFalse(a1.equals(a2)); a2.setBase(2.0); assertEquals(a1, a2); a1.setSmallestValue(0.1); assertFalse(a1.equals(a2)); a2.setSmallestValue(0.1); assertEquals(a1, a2); a1.setMinorTickCount(8); assertFalse(a1.equals(a2)); a2.setMinorTickCount(8); assertEquals(a1, a2); }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof LogAxis)) { return false; } LogAxis that = (LogAxis) obj; if (this.base != that.base) { return false; } if (this.smallestValue != that.smallestValue) { return false; } return super.equals(obj); }
LogAxis extends ValueAxis { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof LogAxis)) { return false; } LogAxis that = (LogAxis) obj; if (this.base != that.base) { return false; } if (this.smallestValue != that.smallestValue) { return false; } return super.equals(obj); } }
LogAxis extends ValueAxis { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof LogAxis)) { return false; } LogAxis that = (LogAxis) obj; if (this.base != that.base) { return false; } if (this.smallestValue != that.smallestValue) { return false; } return super.equals(obj); } LogAxis();  LogAxis(String label); }
LogAxis extends ValueAxis { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof LogAxis)) { return false; } LogAxis that = (LogAxis) obj; if (this.base != that.base) { return false; } if (this.smallestValue != that.smallestValue) { return false; } return super.equals(obj); } LogAxis();  LogAxis(String label); double getBase(); void setBase(double base); double getSmallestValue(); void setSmallestValue(double value); NumberTickUnit getTickUnit(); void setTickUnit(NumberTickUnit unit); void setTickUnit(NumberTickUnit unit, boolean notify,
                            boolean turnOffAutoSelect); NumberFormat getNumberFormatOverride(); void setNumberFormatOverride(NumberFormat formatter); double calculateLog(double value); double calculateValue(double log); @Override double java2DToValue(double java2DValue, Rectangle2D area,
            RectangleEdge edge); @Override double valueToJava2D(double value, Rectangle2D area,
            RectangleEdge edge); @Override void configure(); @Override AxisState draw(Graphics2D g2, double cursor, Rectangle2D plotArea,
            Rectangle2D dataArea, RectangleEdge edge,
            PlotRenderingInfo plotState); @Override List<ValueTick> refreshTicks(Graphics2D g2, AxisState state,
            Rectangle2D dataArea, RectangleEdge edge); double exponentLengthToJava2D(double length, Rectangle2D area,
                                RectangleEdge edge); @Override void zoomRange(double lowerPercent, double upperPercent); @Override void pan(double percent); @Override boolean equals(Object obj); @Override int hashCode(); static TickUnitSource createLogTickUnits(Locale locale); }
LogAxis extends ValueAxis { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof LogAxis)) { return false; } LogAxis that = (LogAxis) obj; if (this.base != that.base) { return false; } if (this.smallestValue != that.smallestValue) { return false; } return super.equals(obj); } LogAxis();  LogAxis(String label); double getBase(); void setBase(double base); double getSmallestValue(); void setSmallestValue(double value); NumberTickUnit getTickUnit(); void setTickUnit(NumberTickUnit unit); void setTickUnit(NumberTickUnit unit, boolean notify,
                            boolean turnOffAutoSelect); NumberFormat getNumberFormatOverride(); void setNumberFormatOverride(NumberFormat formatter); double calculateLog(double value); double calculateValue(double log); @Override double java2DToValue(double java2DValue, Rectangle2D area,
            RectangleEdge edge); @Override double valueToJava2D(double value, Rectangle2D area,
            RectangleEdge edge); @Override void configure(); @Override AxisState draw(Graphics2D g2, double cursor, Rectangle2D plotArea,
            Rectangle2D dataArea, RectangleEdge edge,
            PlotRenderingInfo plotState); @Override List<ValueTick> refreshTicks(Graphics2D g2, AxisState state,
            Rectangle2D dataArea, RectangleEdge edge); double exponentLengthToJava2D(double length, Rectangle2D area,
                                RectangleEdge edge); @Override void zoomRange(double lowerPercent, double upperPercent); @Override void pan(double percent); @Override boolean equals(Object obj); @Override int hashCode(); static TickUnitSource createLogTickUnits(Locale locale);  }