Java Code Examples for org.jfree.chart.util.ObjectUtilities#equal()

The following examples show how to use org.jfree.chart.util.ObjectUtilities#equal() . 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: Elixir_002_s.java    From coming with MIT License 6 votes vote down vote up
/**
 * Tests this arrangement for equality with an arbitrary object.
 *
 * @param obj  the object (<code>null</code> permitted).
 *
 * @return A boolean.
 */
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof BorderArrangement)) {
        return false;
    }
    BorderArrangement that = (BorderArrangement) obj;
    if (!ObjectUtilities.equal(this.topBlock, that.topBlock)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.bottomBlock, that.bottomBlock)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.leftBlock, that.leftBlock)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.rightBlock, that.rightBlock)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.centerBlock, that.centerBlock)) {
        return false;
    }
    return true;
}
 
Example 2
Source File: KeyToGroupMap.java    From astor with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Tests the map for equality against an arbitrary object.
 * 
 * @param obj  the object to test against (<code>null</code> permitted).
 * 
 * @return A boolean.
 */
public boolean equals(Object obj) {
    if (obj == this) {
        return true;      
    }
    if (!(obj instanceof KeyToGroupMap)) {
        return false;
    }
    KeyToGroupMap that = (KeyToGroupMap) obj;
    if (!ObjectUtilities.equal(this.defaultGroup, that.defaultGroup)) {
        return false;
    }
    if (!this.keyToGroupMap.equals(that.keyToGroupMap)) {
        return false;
    }
    return true;
}
 
Example 3
Source File: Nopol2017_006_t.java    From coming with MIT License 6 votes vote down vote up
/**
 * Tests this series for equality with an arbitrary object.
 *
 * @param obj  the object to test against for equality
 *             (<code>null</code> permitted).
 *
 * @return A boolean.
 */
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof XYSeries)) {
        return false;
    }
    if (!super.equals(obj)) {
        return false;
    }
    XYSeries that = (XYSeries) obj;
    if (this.maximumItemCount != that.maximumItemCount) {
        return false;
    }
    if (this.autoSort != that.autoSort) {
        return false;
    }
    if (this.allowDuplicateXValues != that.allowDuplicateXValues) {
        return false;
    }
    if (!ObjectUtilities.equal(this.data, that.data)) {
        return false;
    }
    return true;
}
 
Example 4
Source File: Arja_007_t.java    From coming with MIT License 6 votes vote down vote up
/**
 * Tests this series for equality with an arbitrary object.
 *
 * @param obj  the object to test against for equality
 *             (<code>null</code> permitted).
 *
 * @return A boolean.
 */
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof XYSeries)) {
        return false;
    }
    if (!super.equals(obj)) {
        return false;
    }
    XYSeries that = (XYSeries) obj;
    if (this.maximumItemCount != that.maximumItemCount) {
        return false;
    }
    if (this.autoSort != that.autoSort) {
        return false;
    }
    if (this.allowDuplicateXValues != that.allowDuplicateXValues) {
        return false;
    }
    if (!ObjectUtilities.equal(this.data, that.data)) {
        return false;
    }
    return true;
}
 
Example 5
Source File: JGenProg2017_008_s.java    From coming with MIT License 6 votes vote down vote up
/**
 * Tests this series for equality with an arbitrary object.
 *
 * @param obj  the object to test against for equality
 *             (<code>null</code> permitted).
 *
 * @return A boolean.
 */
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof XYSeries)) {
        return false;
    }
    if (!super.equals(obj)) {
        return false;
    }
    XYSeries that = (XYSeries) obj;
    if (this.maximumItemCount != that.maximumItemCount) {
        return false;
    }
    if (this.autoSort != that.autoSort) {
        return false;
    }
    if (this.allowDuplicateXValues != that.allowDuplicateXValues) {
        return false;
    }
    if (!ObjectUtilities.equal(this.data, that.data)) {
        return false;
    }
    return true;
}
 
Example 6
Source File: Cardumen_00197_t.java    From coming with MIT License 6 votes vote down vote up
/**
 * Tests this series for equality with an arbitrary object.
 *
 * @param obj  the object to test against for equality
 *             (<code>null</code> permitted).
 *
 * @return A boolean.
 */
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof XYSeries)) {
        return false;
    }
    if (!super.equals(obj)) {
        return false;
    }
    XYSeries that = (XYSeries) obj;
    if (this.maximumItemCount != that.maximumItemCount) {
        return false;
    }
    if (this.autoSort != that.autoSort) {
        return false;
    }
    if (this.allowDuplicateXValues != that.allowDuplicateXValues) {
        return false;
    }
    if (!ObjectUtilities.equal(this.data, that.data)) {
        return false;
    }
    return true;
}
 
Example 7
Source File: AbstractXYItemLabelGenerator.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Tests this object for equality with an arbitrary object.
 *
 * @param obj  the other object (<code>null</code> permitted).
 *
 * @return A boolean.
 */
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof AbstractXYItemLabelGenerator)) {
        return false;
    }
    AbstractXYItemLabelGenerator that = (AbstractXYItemLabelGenerator) obj;
    if (!this.formatString.equals(that.formatString)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.xFormat, that.xFormat)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.xDateFormat, that.xDateFormat)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.yFormat, that.yFormat)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.yDateFormat, that.yDateFormat)) {
        return false;
    }
    if (!this.nullYString.equals(that.nullYString)) {
        return false;
    }
    return true;
}
 
Example 8
Source File: Arja_0063_s.java    From coming with MIT License 5 votes vote down vote up
/**
 * Tests this plot for equality with an arbitrary object.  Note that the
 * plot's dataset is not considered in the equality test.
 *
 * @param obj  the object (<code>null</code> permitted).
 *
 * @return <code>true</code> if this plot is equal to <code>obj</code>, and
 *     <code>false</code> otherwise.
 */
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof MultiplePiePlot)) {
        return false;
    }
    MultiplePiePlot that = (MultiplePiePlot) obj;
    if (this.dataExtractOrder != that.dataExtractOrder) {
        return false;
    }
    if (this.limit != that.limit) {
        return false;
    }
    if (!this.aggregatedItemsKey.equals(that.aggregatedItemsKey)) {
        return false;
    }
    if (!PaintUtilities.equal(this.aggregatedItemsPaint,
            that.aggregatedItemsPaint)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.pieChart, that.pieChart)) {
        return false;
    }
    if (!super.equals(obj)) {
        return false;
    }
    return true;
}
 
Example 9
Source File: MeterNeedle.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Tests another object for equality with this object.
 *
 * @param obj the object to test (<code>null</code> permitted).
 *
 * @return A boolean.
 */
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof MeterNeedle)) {
        return false;
    }
    MeterNeedle that = (MeterNeedle) obj;
    if (!PaintUtilities.equal(this.outlinePaint, that.outlinePaint)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.outlineStroke, that.outlineStroke)) {
        return false;
    }
    if (!PaintUtilities.equal(this.fillPaint, that.fillPaint)) {
        return false;
    }
    if (!PaintUtilities.equal(this.highlightPaint, that.highlightPaint)) {
        return false;
    }
    if (this.size != that.size) {
        return false;
    }
    if (this.rotateX != that.rotateX) {
        return false;
    }
    if (this.rotateY != that.rotateY) {
        return false;
    }
    return true;
}
 
Example 10
Source File: JGenProg2017_0049_t.java    From coming with MIT License 5 votes vote down vote up
/**
 * Tests the series for equality with an arbitrary object.
 *
 * @param obj  the object to test against (<code>null</code> permitted).
 *
 * @return A boolean.
 */
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof TimeSeries)) {
        return false;
    }
    TimeSeries that = (TimeSeries) obj;
    if (!ObjectUtilities.equal(getDomainDescription(),
            that.getDomainDescription())) {
        return false;
    }
    if (!ObjectUtilities.equal(getRangeDescription(),
            that.getRangeDescription())) {
        return false;
    }
    if (!ObjectUtilities.equal(this.timePeriodClass,
            that.timePeriodClass)) {
        return false;
    }
    if (getMaximumItemAge() != that.getMaximumItemAge()) {
        return false;
    }
    if (getMaximumItemCount() != that.getMaximumItemCount()) {
        return false;
    }
    int count = getItemCount();
    if (count != that.getItemCount()) {
        return false;
    }
    if (!ObjectUtilities.equal(this.data, that.data)) {
        return false;
    }
    return super.equals(obj);
}
 
Example 11
Source File: jKali_0041_s.java    From coming with MIT License 4 votes vote down vote up
/**
 * Tests this axis for equality with another object.
 *
 * @param obj  the object (<code>null</code> permitted).
 *
 * @return <code>true</code> or <code>false</code>.
 */
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof Axis)) {
        return false;
    }
    Axis that = (Axis) obj;
    if (this.visible != that.visible) {
        return false;
    }
    if (!ObjectUtilities.equal(this.label, that.label)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.labelFont, that.labelFont)) {
        return false;
    }
    if (!PaintUtilities.equal(this.labelPaint, that.labelPaint)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.labelInsets, that.labelInsets)) {
        return false;
    }
    if (this.labelAngle != that.labelAngle) {
        return false;
    }
    if (!ObjectUtilities.equal(this.labelToolTip, that.labelToolTip)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.labelURL, that.labelURL)) {
        return false;
    }
    if (this.axisLineVisible != that.axisLineVisible) {
        return false;
    }
    if (!ObjectUtilities.equal(this.axisLineStroke, that.axisLineStroke)) {
        return false;
    }
    if (!PaintUtilities.equal(this.axisLinePaint, that.axisLinePaint)) {
        return false;
    }
    if (this.tickLabelsVisible != that.tickLabelsVisible) {
        return false;
    }
    if (!ObjectUtilities.equal(this.tickLabelFont, that.tickLabelFont)) {
        return false;
    }
    if (!PaintUtilities.equal(this.tickLabelPaint, that.tickLabelPaint)) {
        return false;
    }
    if (!ObjectUtilities.equal(
        this.tickLabelInsets, that.tickLabelInsets
    )) {
        return false;
    }
    if (this.tickMarksVisible != that.tickMarksVisible) {
        return false;
    }
    if (this.tickMarkInsideLength != that.tickMarkInsideLength) {
        return false;
    }                  
    if (this.tickMarkOutsideLength != that.tickMarkOutsideLength) {
        return false;
    }                  
    if (!PaintUtilities.equal(this.tickMarkPaint, that.tickMarkPaint)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.tickMarkStroke, that.tickMarkStroke)) {
        return false;
    }
    if (this.fixedDimension != that.fixedDimension) {
        return false;
    }
    return true;
}
 
Example 12
Source File: Cardumen_0086_t.java    From coming with MIT License 4 votes vote down vote up
/**
 * Tests the series for equality with an arbitrary object.
 *
 * @param object  the object to test against (<code>null</code> permitted).
 *
 * @return A boolean.
 */
public boolean equals(Object object) {
    if (object == this) {
        return true;
    }
    if (!(object instanceof TimeSeries) || !super.equals(object)) {
        return false;
    }
    TimeSeries s = (TimeSeries) object;
    if (!ObjectUtilities.equal(getDomainDescription(),
            s.getDomainDescription())) {
        return false;
    }

    if (!ObjectUtilities.equal(getRangeDescription(),
            s.getRangeDescription())) {
        return false;
    }

    if (!getClass().equals(s.getClass())) {
        return false;
    }

    if (getMaximumItemAge() != s.getMaximumItemAge()) {
        return false;
    }

    if (getMaximumItemCount() != s.getMaximumItemCount()) {
        return false;
    }

    int count = getItemCount();
    if (count != s.getItemCount()) {
        return false;
    }
    for (int i = 0; i < count; i++) {
        if (!getDataItem(i).equals(s.getDataItem(i))) {
            return false;
        }
    }
    return true;
}
 
Example 13
Source File: patch1-Chart-1-jMutRepair_patch1-Chart-1-jMutRepair_s.java    From coming with MIT License 4 votes vote down vote up
/**
 * Tests this renderer for equality with another object.
 *
 * @param obj  the object.
 *
 * @return <code>true</code> or <code>false</code>.
 */
public boolean equals(Object obj) {

    if (obj == this) {
        return true;
    }
    if (!(obj instanceof AbstractCategoryItemRenderer)) {
        return false;
    }
    AbstractCategoryItemRenderer that = (AbstractCategoryItemRenderer) obj;

    if (!ObjectUtilities.equal(this.itemLabelGeneratorList,
            that.itemLabelGeneratorList)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.baseItemLabelGenerator,
            that.baseItemLabelGenerator)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.toolTipGeneratorList,
            that.toolTipGeneratorList)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.baseToolTipGenerator,
            that.baseToolTipGenerator)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.urlGeneratorList,
            that.urlGeneratorList)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.baseURLGenerator,
            that.baseURLGenerator)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.legendItemLabelGenerator,
            that.legendItemLabelGenerator)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.legendItemToolTipGenerator,
            that.legendItemToolTipGenerator)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.legendItemURLGenerator,
            that.legendItemURLGenerator)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.backgroundAnnotations,
            that.backgroundAnnotations)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.foregroundAnnotations,
            that.foregroundAnnotations)) {
        return false;
    }
    return super.equals(obj);
}
 
Example 14
Source File: jKali_0052_s.java    From coming with MIT License 4 votes vote down vote up
/**
 * Tests this chart for equality with another object.
 *
 * @param obj  the object (<code>null</code> permitted).
 *
 * @return A boolean.
 */
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof JFreeChart)) {
        return false;
    }
    JFreeChart that = (JFreeChart) obj;
    if (!this.renderingHints.equals(that.renderingHints)) {
        return false;   
    }
    if (this.borderVisible != that.borderVisible) {
        return false;   
    }
    if (!ObjectUtilities.equal(this.borderStroke, that.borderStroke)) {
        return false;   
    }
    if (!PaintUtilities.equal(this.borderPaint, that.borderPaint)) {
        return false;   
    }
    if (!this.padding.equals(that.padding)) {
        return false;   
    }
    if (!ObjectUtilities.equal(this.title, that.title)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.subtitles, that.subtitles)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.plot, that.plot)) {
        return false;
    }
    if (!PaintUtilities.equal(
        this.backgroundPaint, that.backgroundPaint
    )) {
        return false;
    }
    if (!ObjectUtilities.equal(this.backgroundImage, 
            that.backgroundImage)) {
        return false;
    }
    if (this.backgroundImageAlignment != that.backgroundImageAlignment) {
        return false;
    }
    if (this.backgroundImageAlpha != that.backgroundImageAlpha) {
        return false;
    }
    if (this.notify != that.notify) {
        return false;
    }
    return true;
}
 
Example 15
Source File: Cardumen_00195_s.java    From coming with MIT License 4 votes vote down vote up
/**
 * Tests this axis for equality with another object.
 *
 * @param obj  the object (<code>null</code> permitted).
 *
 * @return <code>true</code> or <code>false</code>.
 */
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof Axis)) {
        return false;
    }
    Axis that = (Axis) obj;
    if (this.visible != that.visible) {
        return false;
    }
    if (!ObjectUtilities.equal(this.label, that.label)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.labelFont, that.labelFont)) {
        return false;
    }
    if (!PaintUtilities.equal(this.labelPaint, that.labelPaint)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.labelInsets, that.labelInsets)) {
        return false;
    }
    if (this.labelAngle != that.labelAngle) {
        return false;
    }
    if (!ObjectUtilities.equal(this.labelToolTip, that.labelToolTip)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.labelURL, that.labelURL)) {
        return false;
    }
    if (this.axisLineVisible != that.axisLineVisible) {
        return false;
    }
    if (!ObjectUtilities.equal(this.axisLineStroke, that.axisLineStroke)) {
        return false;
    }
    if (!PaintUtilities.equal(this.axisLinePaint, that.axisLinePaint)) {
        return false;
    }
    if (this.tickLabelsVisible != that.tickLabelsVisible) {
        return false;
    }
    if (!ObjectUtilities.equal(this.tickLabelFont, that.tickLabelFont)) {
        return false;
    }
    if (!PaintUtilities.equal(this.tickLabelPaint, that.tickLabelPaint)) {
        return false;
    }
    if (!ObjectUtilities.equal(
        this.tickLabelInsets, that.tickLabelInsets
    )) {
        return false;
    }
    if (this.tickMarksVisible != that.tickMarksVisible) {
        return false;
    }
    if (this.tickMarkInsideLength != that.tickMarkInsideLength) {
        return false;
    }                  
    if (this.tickMarkOutsideLength != that.tickMarkOutsideLength) {
        return false;
    }                  
    if (!PaintUtilities.equal(this.tickMarkPaint, that.tickMarkPaint)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.tickMarkStroke, that.tickMarkStroke)) {
        return false;
    }
    if (this.fixedDimension != that.fixedDimension) {
        return false;
    }
    return true;
}
 
Example 16
Source File: Cardumen_00191_s.java    From coming with MIT License 4 votes vote down vote up
/**
 * Tests this renderer for equality with another object.
 *
 * @param obj  the object.
 *
 * @return <code>true</code> or <code>false</code>.
 */
public boolean equals(Object obj) {

    if (obj == this) {
        return true;
    }
    if (!(obj instanceof AbstractCategoryItemRenderer)) {
        return false;
    }
    AbstractCategoryItemRenderer that = (AbstractCategoryItemRenderer) obj;

    if (!ObjectUtilities.equal(this.itemLabelGeneratorList,
            that.itemLabelGeneratorList)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.baseItemLabelGenerator,
            that.baseItemLabelGenerator)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.toolTipGeneratorList,
            that.toolTipGeneratorList)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.baseToolTipGenerator,
            that.baseToolTipGenerator)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.urlGeneratorList,
            that.urlGeneratorList)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.baseURLGenerator,
            that.baseURLGenerator)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.legendItemLabelGenerator,
            that.legendItemLabelGenerator)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.legendItemToolTipGenerator,
            that.legendItemToolTipGenerator)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.legendItemURLGenerator,
            that.legendItemURLGenerator)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.backgroundAnnotations,
            that.backgroundAnnotations)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.foregroundAnnotations,
            that.foregroundAnnotations)) {
        return false;
    }
    return super.equals(obj);
}
 
Example 17
Source File: Cardumen_004_t.java    From coming with MIT License 4 votes vote down vote up
/**
 * Tests the series for equality with an arbitrary object.
 *
 * @param object  the object to test against (<code>null</code> permitted).
 *
 * @return A boolean.
 */
public boolean equals(Object object) {
    if (object == this) {
        return true;
    }
    if (!(object instanceof TimeSeries) || !super.equals(object)) {
        return false;
    }
    TimeSeries s = (TimeSeries) object;
    if (!ObjectUtilities.equal(
        getDomainDescription(), s.getDomainDescription()
    )) {
        return false;
    }

    if (!ObjectUtilities.equal(
        getRangeDescription(), s.getRangeDescription()
    )) {
        return false;
    }

    if (!getClass().equals(s.getClass())) {
        return false;
    }

    if (getMaximumItemAge() != s.getMaximumItemAge()) {
        return false;
    }

    if (getMaximumItemCount() != s.getMaximumItemCount()) {
        return false;
    }

    int count = getItemCount();
    if (count != s.getItemCount()) {
        return false;
    }
    for (int i = 0; i < count; i++) {
        if (!getDataItem(i).equals(s.getDataItem(i))) {
            return false;
        }
    }
    return true;
}
 
Example 18
Source File: Arja_0089_s.java    From coming with MIT License 4 votes vote down vote up
/**
 * Tests this renderer for equality with another object.
 *
 * @param obj  the object.
 *
 * @return <code>true</code> or <code>false</code>.
 */
public boolean equals(Object obj) {

    if (obj == this) {
        return true;
    }
    if (!(obj instanceof AbstractCategoryItemRenderer)) {
        return false;
    }
    AbstractCategoryItemRenderer that = (AbstractCategoryItemRenderer) obj;

    if (!ObjectUtilities.equal(this.itemLabelGeneratorList,
            that.itemLabelGeneratorList)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.baseItemLabelGenerator,
            that.baseItemLabelGenerator)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.toolTipGeneratorList,
            that.toolTipGeneratorList)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.baseToolTipGenerator,
            that.baseToolTipGenerator)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.urlGeneratorList,
            that.urlGeneratorList)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.baseURLGenerator,
            that.baseURLGenerator)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.legendItemLabelGenerator,
            that.legendItemLabelGenerator)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.legendItemToolTipGenerator,
            that.legendItemToolTipGenerator)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.legendItemURLGenerator,
            that.legendItemURLGenerator)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.backgroundAnnotations,
            that.backgroundAnnotations)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.foregroundAnnotations,
            that.foregroundAnnotations)) {
        return false;
    }
    return super.equals(obj);
}
 
Example 19
Source File: XYLineAndShapeRenderer.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Tests this renderer for equality with an arbitrary object.
 *
 * @param obj  the object (<code>null</code> permitted).
 *
 * @return <code>true</code> or <code>false</code>.
 */
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof XYLineAndShapeRenderer)) {
        return false;
    }
    if (!super.equals(obj)) {
        return false;
    }
    XYLineAndShapeRenderer that = (XYLineAndShapeRenderer) obj;
    if (!ObjectUtilities.equal(this.seriesLinesVisible,
            that.seriesLinesVisible)) {
        return false;
    }
    if (this.baseLinesVisible != that.baseLinesVisible) {
        return false;
    }
    if (!ShapeUtilities.equal(this.legendLine, that.legendLine)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.seriesShapesVisible,
            that.seriesShapesVisible)) {
        return false;
    }
    if (this.baseShapesVisible != that.baseShapesVisible) {
        return false;
    }
    if (!ObjectUtilities.equal(this.seriesShapesFilled,
            that.seriesShapesFilled)) {
        return false;
    }
    if (this.baseShapesFilled != that.baseShapesFilled) {
        return false;
    }
    if (this.drawOutlines != that.drawOutlines) {
        return false;
    }
    if (this.useOutlinePaint != that.useOutlinePaint) {
        return false;
    }
    if (this.useFillPaint != that.useFillPaint) {
        return false;
    }
    if (this.drawSeriesLineAsPath != that.drawSeriesLineAsPath) {
        return false;
    }
    return true;
}
 
Example 20
Source File: 1_AbstractCategoryItemRenderer.java    From SimFix with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Tests this renderer for equality with another object.
 *
 * @param obj  the object.
 *
 * @return <code>true</code> or <code>false</code>.
 */
public boolean equals(Object obj) {

    if (obj == this) {
        return true;
    }
    if (!(obj instanceof AbstractCategoryItemRenderer)) {
        return false;
    }
    AbstractCategoryItemRenderer that = (AbstractCategoryItemRenderer) obj;

    if (!ObjectUtilities.equal(this.itemLabelGeneratorList,
            that.itemLabelGeneratorList)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.baseItemLabelGenerator,
            that.baseItemLabelGenerator)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.toolTipGeneratorList,
            that.toolTipGeneratorList)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.baseToolTipGenerator,
            that.baseToolTipGenerator)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.urlGeneratorList,
            that.urlGeneratorList)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.baseURLGenerator,
            that.baseURLGenerator)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.legendItemLabelGenerator,
            that.legendItemLabelGenerator)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.legendItemToolTipGenerator,
            that.legendItemToolTipGenerator)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.legendItemURLGenerator,
            that.legendItemURLGenerator)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.backgroundAnnotations,
            that.backgroundAnnotations)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.foregroundAnnotations,
            that.foregroundAnnotations)) {
        return false;
    }
    return super.equals(obj);
}