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

The following examples show how to use org.jfree.util.ArrayUtilities#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: FastScatterPlot.java    From openstock with GNU General Public License v3.0 4 votes vote down vote up
/**
 * Tests an arbitrary object for equality with this plot.  Note that
 * <code>FastScatterPlot</code> carries its data around with it (rather
 * than referencing a dataset), and the data is included in the
 * equality test.
 *
 * @param obj  the object (<code>null</code> permitted).
 *
 * @return A boolean.
 */
@Override
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!super.equals(obj)) {
        return false;
    }
    if (!(obj instanceof FastScatterPlot)) {
        return false;
    }
    FastScatterPlot that = (FastScatterPlot) obj;
    if (this.domainPannable != that.domainPannable) {
        return false;
    }
    if (this.rangePannable != that.rangePannable) {
        return false;
    }
    if (!ArrayUtilities.equal(this.data, that.data)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.domainAxis, that.domainAxis)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.rangeAxis, that.rangeAxis)) {
        return false;
    }
    if (!PaintUtilities.equal(this.paint, that.paint)) {
        return false;
    }
    if (this.domainGridlinesVisible != that.domainGridlinesVisible) {
        return false;
    }
    if (!PaintUtilities.equal(this.domainGridlinePaint,
            that.domainGridlinePaint)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.domainGridlineStroke,
            that.domainGridlineStroke)) {
        return false;
    }
    if (!this.rangeGridlinesVisible == that.rangeGridlinesVisible) {
        return false;
    }
    if (!PaintUtilities.equal(this.rangeGridlinePaint,
            that.rangeGridlinePaint)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.rangeGridlineStroke,
            that.rangeGridlineStroke)) {
        return false;
    }
    return true;
}
 
Example 2
Source File: FastScatterPlot.java    From ccu-historian with GNU General Public License v3.0 4 votes vote down vote up
/**
 * Tests an arbitrary object for equality with this plot.  Note that
 * <code>FastScatterPlot</code> carries its data around with it (rather
 * than referencing a dataset), and the data is included in the
 * equality test.
 *
 * @param obj  the object (<code>null</code> permitted).
 *
 * @return A boolean.
 */
@Override
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!super.equals(obj)) {
        return false;
    }
    if (!(obj instanceof FastScatterPlot)) {
        return false;
    }
    FastScatterPlot that = (FastScatterPlot) obj;
    if (this.domainPannable != that.domainPannable) {
        return false;
    }
    if (this.rangePannable != that.rangePannable) {
        return false;
    }
    if (!ArrayUtilities.equal(this.data, that.data)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.domainAxis, that.domainAxis)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.rangeAxis, that.rangeAxis)) {
        return false;
    }
    if (!PaintUtilities.equal(this.paint, that.paint)) {
        return false;
    }
    if (this.domainGridlinesVisible != that.domainGridlinesVisible) {
        return false;
    }
    if (!PaintUtilities.equal(this.domainGridlinePaint,
            that.domainGridlinePaint)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.domainGridlineStroke,
            that.domainGridlineStroke)) {
        return false;
    }
    if (!this.rangeGridlinesVisible == that.rangeGridlinesVisible) {
        return false;
    }
    if (!PaintUtilities.equal(this.rangeGridlinePaint,
            that.rangeGridlinePaint)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.rangeGridlineStroke,
            that.rangeGridlineStroke)) {
        return false;
    }
    return true;
}
 
Example 3
Source File: FastScatterPlot.java    From SIMVA-SoS with Apache License 2.0 4 votes vote down vote up
/**
 * Tests an arbitrary object for equality with this plot.  Note that
 * <code>FastScatterPlot</code> carries its data around with it (rather
 * than referencing a dataset), and the data is included in the
 * equality test.
 *
 * @param obj  the object (<code>null</code> permitted).
 *
 * @return A boolean.
 */
@Override
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!super.equals(obj)) {
        return false;
    }
    if (!(obj instanceof FastScatterPlot)) {
        return false;
    }
    FastScatterPlot that = (FastScatterPlot) obj;
    if (this.domainPannable != that.domainPannable) {
        return false;
    }
    if (this.rangePannable != that.rangePannable) {
        return false;
    }
    if (!ArrayUtilities.equal(this.data, that.data)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.domainAxis, that.domainAxis)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.rangeAxis, that.rangeAxis)) {
        return false;
    }
    if (!PaintUtilities.equal(this.paint, that.paint)) {
        return false;
    }
    if (this.domainGridlinesVisible != that.domainGridlinesVisible) {
        return false;
    }
    if (!PaintUtilities.equal(this.domainGridlinePaint,
            that.domainGridlinePaint)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.domainGridlineStroke,
            that.domainGridlineStroke)) {
        return false;
    }
    if (!this.rangeGridlinesVisible == that.rangeGridlinesVisible) {
        return false;
    }
    if (!PaintUtilities.equal(this.rangeGridlinePaint,
            that.rangeGridlinePaint)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.rangeGridlineStroke,
            that.rangeGridlineStroke)) {
        return false;
    }
    return true;
}
 
Example 4
Source File: FastScatterPlot.java    From ECG-Viewer with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Tests an arbitrary object for equality with this plot.  Note that
 * <code>FastScatterPlot</code> carries its data around with it (rather
 * than referencing a dataset), and the data is included in the
 * equality test.
 *
 * @param obj  the object (<code>null</code> permitted).
 *
 * @return A boolean.
 */
@Override
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!super.equals(obj)) {
        return false;
    }
    if (!(obj instanceof FastScatterPlot)) {
        return false;
    }
    FastScatterPlot that = (FastScatterPlot) obj;
    if (this.domainPannable != that.domainPannable) {
        return false;
    }
    if (this.rangePannable != that.rangePannable) {
        return false;
    }
    if (!ArrayUtilities.equal(this.data, that.data)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.domainAxis, that.domainAxis)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.rangeAxis, that.rangeAxis)) {
        return false;
    }
    if (!PaintUtilities.equal(this.paint, that.paint)) {
        return false;
    }
    if (this.domainGridlinesVisible != that.domainGridlinesVisible) {
        return false;
    }
    if (!PaintUtilities.equal(this.domainGridlinePaint,
            that.domainGridlinePaint)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.domainGridlineStroke,
            that.domainGridlineStroke)) {
        return false;
    }
    if (!this.rangeGridlinesVisible == that.rangeGridlinesVisible) {
        return false;
    }
    if (!PaintUtilities.equal(this.rangeGridlinePaint,
            that.rangeGridlinePaint)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.rangeGridlineStroke,
            that.rangeGridlineStroke)) {
        return false;
    }
    return true;
}
 
Example 5
Source File: FastScatterPlot.java    From opensim-gui with Apache License 2.0 4 votes vote down vote up
/**
 * Tests an object for equality with this instance.
 * 
 * @param obj  the object (<code>null</code> permitted).
 * 
 * @return A boolean.
 */
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!super.equals(obj)) {
        return false;
    }
    if (!(obj instanceof FastScatterPlot)) {
        return false;
    }
    FastScatterPlot that = (FastScatterPlot) obj;
    if (!ArrayUtilities.equal(this.data, that.data)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.domainAxis, that.domainAxis)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.rangeAxis, that.rangeAxis)) {
        return false;
    }
    if (!PaintUtilities.equal(this.paint, that.paint)) {
        return false;
    }
    if (this.domainGridlinesVisible != that.domainGridlinesVisible) {
        return false;
    }
    if (!PaintUtilities.equal(this.domainGridlinePaint, 
            that.domainGridlinePaint)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.domainGridlineStroke, 
            that.domainGridlineStroke)) {
        return false;
    }  
    if (!this.rangeGridlinesVisible == that.rangeGridlinesVisible) {
        return false;
    }
    if (!PaintUtilities.equal(this.rangeGridlinePaint, 
            that.rangeGridlinePaint)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.rangeGridlineStroke, 
            that.rangeGridlineStroke)) {
        return false;
    }              
    return true;
}
 
Example 6
Source File: FastScatterPlot.java    From buffer_bci with GNU General Public License v3.0 4 votes vote down vote up
/**
 * Tests an arbitrary object for equality with this plot.  Note that
 * <code>FastScatterPlot</code> carries its data around with it (rather
 * than referencing a dataset), and the data is included in the
 * equality test.
 *
 * @param obj  the object (<code>null</code> permitted).
 *
 * @return A boolean.
 */
@Override
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!super.equals(obj)) {
        return false;
    }
    if (!(obj instanceof FastScatterPlot)) {
        return false;
    }
    FastScatterPlot that = (FastScatterPlot) obj;
    if (this.domainPannable != that.domainPannable) {
        return false;
    }
    if (this.rangePannable != that.rangePannable) {
        return false;
    }
    if (!ArrayUtilities.equal(this.data, that.data)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.domainAxis, that.domainAxis)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.rangeAxis, that.rangeAxis)) {
        return false;
    }
    if (!PaintUtilities.equal(this.paint, that.paint)) {
        return false;
    }
    if (this.domainGridlinesVisible != that.domainGridlinesVisible) {
        return false;
    }
    if (!PaintUtilities.equal(this.domainGridlinePaint,
            that.domainGridlinePaint)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.domainGridlineStroke,
            that.domainGridlineStroke)) {
        return false;
    }
    if (!this.rangeGridlinesVisible == that.rangeGridlinesVisible) {
        return false;
    }
    if (!PaintUtilities.equal(this.rangeGridlinePaint,
            that.rangeGridlinePaint)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.rangeGridlineStroke,
            that.rangeGridlineStroke)) {
        return false;
    }
    return true;
}
 
Example 7
Source File: FastScatterPlot.java    From buffer_bci with GNU General Public License v3.0 4 votes vote down vote up
/**
 * Tests an arbitrary object for equality with this plot.  Note that
 * <code>FastScatterPlot</code> carries its data around with it (rather
 * than referencing a dataset), and the data is included in the
 * equality test.
 *
 * @param obj  the object (<code>null</code> permitted).
 *
 * @return A boolean.
 */
@Override
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!super.equals(obj)) {
        return false;
    }
    if (!(obj instanceof FastScatterPlot)) {
        return false;
    }
    FastScatterPlot that = (FastScatterPlot) obj;
    if (this.domainPannable != that.domainPannable) {
        return false;
    }
    if (this.rangePannable != that.rangePannable) {
        return false;
    }
    if (!ArrayUtilities.equal(this.data, that.data)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.domainAxis, that.domainAxis)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.rangeAxis, that.rangeAxis)) {
        return false;
    }
    if (!PaintUtilities.equal(this.paint, that.paint)) {
        return false;
    }
    if (this.domainGridlinesVisible != that.domainGridlinesVisible) {
        return false;
    }
    if (!PaintUtilities.equal(this.domainGridlinePaint,
            that.domainGridlinePaint)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.domainGridlineStroke,
            that.domainGridlineStroke)) {
        return false;
    }
    if (!this.rangeGridlinesVisible == that.rangeGridlinesVisible) {
        return false;
    }
    if (!PaintUtilities.equal(this.rangeGridlinePaint,
            that.rangeGridlinePaint)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.rangeGridlineStroke,
            that.rangeGridlineStroke)) {
        return false;
    }
    return true;
}