@Test public void testEquals() { CombinedDomainXYPlot plot1 = createPlot(); CombinedDomainXYPlot plot2 = createPlot(); assertEquals(plot1, plot2); assertEquals(plot2, plot1); }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof CombinedDomainXYPlot)) { return false; } CombinedDomainXYPlot that = (CombinedDomainXYPlot) obj; if (this.gap != that.gap) { return false; } if (!ObjectUtilities.equal(this.subplots, that.subplots)) { return false; } return super.equals(obj); }
CombinedDomainXYPlot extends XYPlot implements PlotChangeListener { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof CombinedDomainXYPlot)) { return false; } CombinedDomainXYPlot that = (CombinedDomainXYPlot) obj; if (this.gap != that.gap) { return false; } if (!ObjectUtilities.equal(this.subplots, that.subplots)) { return false; } return super.equals(obj); } }
CombinedDomainXYPlot extends XYPlot implements PlotChangeListener { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof CombinedDomainXYPlot)) { return false; } CombinedDomainXYPlot that = (CombinedDomainXYPlot) obj; if (this.gap != that.gap) { return false; } if (!ObjectUtilities.equal(this.subplots, that.subplots)) { return false; } return super.equals(obj); } CombinedDomainXYPlot();  CombinedDomainXYPlot(ValueAxis domainAxis); }
CombinedDomainXYPlot extends XYPlot implements PlotChangeListener { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof CombinedDomainXYPlot)) { return false; } CombinedDomainXYPlot that = (CombinedDomainXYPlot) obj; if (this.gap != that.gap) { return false; } if (!ObjectUtilities.equal(this.subplots, that.subplots)) { return false; } return super.equals(obj); } CombinedDomainXYPlot();  CombinedDomainXYPlot(ValueAxis domainAxis); @Override String getPlotType(); @Override void setOrientation(PlotOrientation orientation); @Override void setShadowGenerator(ShadowGenerator generator); @Override Range getDataRange(ValueAxis axis); double getGap(); void setGap(double gap); void add(XYPlot subplot); void add(XYPlot subplot, int weight); void remove(XYPlot subplot); List<XYPlot> getSubplots(); @Override void draw(Graphics2D g2, Rectangle2D area, Point2D anchor,
            PlotState parentState, PlotRenderingInfo info); @Override List<LegendItem> getLegendItems(); @Override void zoomRangeAxes(double factor, PlotRenderingInfo info,
                              Point2D source); @Override void zoomRangeAxes(double factor, PlotRenderingInfo state,
                              Point2D source, boolean useAnchor); @Override void zoomRangeAxes(double lowerPercent, double upperPercent,
                              PlotRenderingInfo info, Point2D source); @Override void panRangeAxes(double panRange, PlotRenderingInfo info,
            Point2D source); XYPlot findSubplot(PlotRenderingInfo info, Point2D source); @Override void setRenderer(XYItemRenderer renderer); @Override void setFixedRangeAxisSpace(AxisSpace space); @Override void handleClick(int x, int y, PlotRenderingInfo info); @Override void plotChanged(PlotChangeEvent event); @Override boolean equals(Object obj); @Override Object clone(); }
CombinedDomainXYPlot extends XYPlot implements PlotChangeListener { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof CombinedDomainXYPlot)) { return false; } CombinedDomainXYPlot that = (CombinedDomainXYPlot) obj; if (this.gap != that.gap) { return false; } if (!ObjectUtilities.equal(this.subplots, that.subplots)) { return false; } return super.equals(obj); } CombinedDomainXYPlot();  CombinedDomainXYPlot(ValueAxis domainAxis); @Override String getPlotType(); @Override void setOrientation(PlotOrientation orientation); @Override void setShadowGenerator(ShadowGenerator generator); @Override Range getDataRange(ValueAxis axis); double getGap(); void setGap(double gap); void add(XYPlot subplot); void add(XYPlot subplot, int weight); void remove(XYPlot subplot); List<XYPlot> getSubplots(); @Override void draw(Graphics2D g2, Rectangle2D area, Point2D anchor,
            PlotState parentState, PlotRenderingInfo info); @Override List<LegendItem> getLegendItems(); @Override void zoomRangeAxes(double factor, PlotRenderingInfo info,
                              Point2D source); @Override void zoomRangeAxes(double factor, PlotRenderingInfo state,
                              Point2D source, boolean useAnchor); @Override void zoomRangeAxes(double lowerPercent, double upperPercent,
                              PlotRenderingInfo info, Point2D source); @Override void panRangeAxes(double panRange, PlotRenderingInfo info,
            Point2D source); XYPlot findSubplot(PlotRenderingInfo info, Point2D source); @Override void setRenderer(XYItemRenderer renderer); @Override void setFixedRangeAxisSpace(AxisSpace space); @Override void handleClick(int x, int y, PlotRenderingInfo info); @Override void plotChanged(PlotChangeEvent event); @Override boolean equals(Object obj); @Override Object clone();  }