org.jfree.util.PaintUtilities Java Examples

The following examples show how to use org.jfree.util.PaintUtilities. 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: LineRenderer3D.java    From opensim-gui with Apache License 2.0 6 votes vote down vote up
/**
 * Checks this renderer 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 LineRenderer3D)) {
        return false;
    }
    LineRenderer3D that = (LineRenderer3D) obj;
    if (this.xOffset != that.xOffset) {
        return false;
    }
    if (this.yOffset != that.yOffset) {
        return false;
    }
    if (!PaintUtilities.equal(this.wallPaint, that.wallPaint)) {
        return false;
    }
    return super.equals(obj);
}
 
Example #2
Source File: StatisticalBarRenderer.java    From SIMVA-SoS with Apache License 2.0 6 votes vote down vote up
/**
 * Tests this renderer for equality with an arbitrary object.
 *
 * @param obj  the object (<code>null</code> permitted).
 *
 * @return A boolean.
 */
@Override
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof StatisticalBarRenderer)) {
        return false;
    }
    StatisticalBarRenderer that = (StatisticalBarRenderer) obj;
    if (!PaintUtilities.equal(this.errorIndicatorPaint,
            that.errorIndicatorPaint)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.errorIndicatorStroke,
            that.errorIndicatorStroke)) {
        return false;
    }
    return super.equals(obj);
}
 
Example #3
Source File: LookupPaintScale.java    From buffer_bci with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Tests this item for equality with an arbitrary object.
 *
 * @param obj  the object (<code>null</code> permitted).
 *
 * @return A boolean.
 */
@Override
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof PaintItem)) {
        return false;
    }
    PaintItem that = (PaintItem) obj;
    if (this.value != that.value) {
        return false;
    }
    if (!PaintUtilities.equal(this.paint, that.paint)) {
        return false;
    }
    return true;
}
 
Example #4
Source File: DialBackground.java    From ECG-Viewer with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Tests this instance for equality with an arbitrary object.
 *
 * @param obj  the object (<code>null</code> permitted).
 *
 * @return A boolean.
 */
@Override
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof DialBackground)) {
        return false;
    }
    DialBackground that = (DialBackground) obj;
    if (!PaintUtilities.equal(this.paint, that.paint)) {
        return false;
    }
    if (!this.gradientPaintTransformer.equals(
            that.gradientPaintTransformer)) {
        return false;
    }
    return super.equals(obj);
}
 
Example #5
Source File: DialPointer.java    From buffer_bci with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Tests this pointer for equality with an arbitrary object.
 *
 * @param obj  the object (<code>null</code> permitted).
 *
 * @return A boolean.
 */
@Override
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof DialPointer.Pin)) {
        return false;
    }
    DialPointer.Pin that = (DialPointer.Pin) obj;
    if (!PaintUtilities.equal(this.paint, that.paint)) {
        return false;
    }
    if (!this.stroke.equals(that.stroke)) {
        return false;
    }
    return super.equals(obj);
}
 
Example #6
Source File: BlockBorder.java    From ccu-historian with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Tests this border for equality with an arbitrary instance.
 *
 * @param obj  the object (<code>null</code> permitted).
 *
 * @return A boolean.
 */
@Override
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof BlockBorder)) {
        return false;
    }
    BlockBorder that = (BlockBorder) obj;
    if (!this.insets.equals(that.insets)) {
        return false;
    }
    if (!PaintUtilities.equal(this.paint, that.paint)) {
        return false;
    }
    return true;
}
 
Example #7
Source File: DialPointer.java    From ECG-Viewer with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Tests this pointer for equality with an arbitrary object.
 *
 * @param obj  the object (<code>null</code> permitted).
 *
 * @return A boolean.
 */
@Override
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof DialPointer.Pointer)) {
        return false;
    }
    DialPointer.Pointer that = (DialPointer.Pointer) obj;

    if (this.widthRadius != that.widthRadius) {
        return false;
    }
    if (!PaintUtilities.equal(this.fillPaint, that.fillPaint)) {
        return false;
    }
    if (!PaintUtilities.equal(this.outlinePaint, that.outlinePaint)) {
        return false;
    }
    return super.equals(obj);
}
 
Example #8
Source File: PaintMap.java    From ccu-historian with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Tests this map for equality with an arbitrary object.
 *
 * @param obj  the object (<code>null</code> permitted).
 *
 * @return A boolean.
 */
@Override
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof PaintMap)) {
        return false;
    }
    PaintMap that = (PaintMap) obj;
    if (this.store.size() != that.store.size()) {
        return false;
    }
    Set keys = this.store.keySet();
    Iterator iterator = keys.iterator();
    while (iterator.hasNext()) {
        Comparable key = (Comparable) iterator.next();
        Paint p1 = getPaint(key);
        Paint p2 = that.getPaint(key);
        if (!PaintUtilities.equal(p1, p2)) {
            return false;
        }
    }
    return true;
}
 
Example #9
Source File: PaintMap.java    From buffer_bci with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Tests this map for equality with an arbitrary object.
 *
 * @param obj  the object (<code>null</code> permitted).
 *
 * @return A boolean.
 */
@Override
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof PaintMap)) {
        return false;
    }
    PaintMap that = (PaintMap) obj;
    if (this.store.size() != that.store.size()) {
        return false;
    }
    Set keys = this.store.keySet();
    Iterator iterator = keys.iterator();
    while (iterator.hasNext()) {
        Comparable key = (Comparable) iterator.next();
        Paint p1 = getPaint(key);
        Paint p2 = that.getPaint(key);
        if (!PaintUtilities.equal(p1, p2)) {
            return false;
        }
    }
    return true;
}
 
Example #10
Source File: MeterInterval.java    From opensim-gui with Apache License 2.0 6 votes vote down vote up
/**
 * Checks this instance 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 MeterInterval)) {
        return false;
    }
    MeterInterval that = (MeterInterval) obj;
    if (!this.label.equals(that.label)) {
        return false;
    }
    if (!this.range.equals(that.range)) {
        return false;
    }
    if (!PaintUtilities.equal(this.outlinePaint, that.outlinePaint)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.outlineStroke, that.outlineStroke)) {
        return false;
    }
    if (!PaintUtilities.equal(this.backgroundPaint, that.backgroundPaint)) {
        return false;
    }
    return true;
}
 
Example #11
Source File: StatisticalBarRenderer.java    From buffer_bci with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Tests this renderer for equality with an arbitrary object.
 *
 * @param obj  the object (<code>null</code> permitted).
 *
 * @return A boolean.
 */
@Override
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof StatisticalBarRenderer)) {
        return false;
    }
    StatisticalBarRenderer that = (StatisticalBarRenderer) obj;
    if (!PaintUtilities.equal(this.errorIndicatorPaint,
            that.errorIndicatorPaint)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.errorIndicatorStroke,
            that.errorIndicatorStroke)) {
        return false;
    }
    return super.equals(obj);
}
 
Example #12
Source File: DialPointer.java    From ccu-historian with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Tests this pointer for equality with an arbitrary object.
 *
 * @param obj  the object (<code>null</code> permitted).
 *
 * @return A boolean.
 */
@Override
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof DialPointer.Pin)) {
        return false;
    }
    DialPointer.Pin that = (DialPointer.Pin) obj;
    if (!PaintUtilities.equal(this.paint, that.paint)) {
        return false;
    }
    if (!this.stroke.equals(that.stroke)) {
        return false;
    }
    return super.equals(obj);
}
 
Example #13
Source File: DialCap.java    From SIMVA-SoS with Apache License 2.0 6 votes vote down vote up
/**
 * Tests this instance for equality with an arbitrary object.
 *
 * @param obj  the object (<code>null</code> permitted).
 *
 * @return A boolean.
 */
@Override
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof DialCap)) {
        return false;
    }
    DialCap that = (DialCap) obj;
    if (this.radius != that.radius) {
        return false;
    }
    if (!PaintUtilities.equal(this.fillPaint, that.fillPaint)) {
        return false;
    }
    if (!PaintUtilities.equal(this.outlinePaint, that.outlinePaint)) {
        return false;
    }
    if (!this.outlineStroke.equals(that.outlineStroke)) {
        return false;
    }
    return super.equals(obj);
}
 
Example #14
Source File: DialPointer.java    From buffer_bci with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Tests this pointer for equality with an arbitrary object.
 *
 * @param obj  the object (<code>null</code> permitted).
 *
 * @return A boolean.
 */
@Override
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof DialPointer.Pointer)) {
        return false;
    }
    DialPointer.Pointer that = (DialPointer.Pointer) obj;

    if (this.widthRadius != that.widthRadius) {
        return false;
    }
    if (!PaintUtilities.equal(this.fillPaint, that.fillPaint)) {
        return false;
    }
    if (!PaintUtilities.equal(this.outlinePaint, that.outlinePaint)) {
        return false;
    }
    return super.equals(obj);
}
 
Example #15
Source File: MinMaxCategoryRenderer.java    From ccu-historian with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Tests this instance for equality with an arbitrary object.  The icon
 * fields are NOT included in the test, so this implementation is a little
 * weak.
 *
 * @param obj  the object (<code>null</code> permitted).
 *
 * @return A boolean.
 *
 * @since 1.0.7
 */
@Override
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof MinMaxCategoryRenderer)) {
        return false;
    }
    MinMaxCategoryRenderer that = (MinMaxCategoryRenderer) obj;
    if (this.plotLines != that.plotLines) {
        return false;
    }
    if (!PaintUtilities.equal(this.groupPaint, that.groupPaint)) {
        return false;
    }
    if (!this.groupStroke.equals(that.groupStroke)) {
        return false;
    }
    return super.equals(obj);
}
 
Example #16
Source File: SymbolAxis.java    From buffer_bci with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Tests this axis for equality with an arbitrary object.
 *
 * @param obj  the object (<code>null</code> permitted).
 *
 * @return A boolean.
 */
@Override
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof SymbolAxis)) {
        return false;
    }
    SymbolAxis that = (SymbolAxis) obj;
    if (!this.symbols.equals(that.symbols)) {
        return false;
    }
    if (this.gridBandsVisible != that.gridBandsVisible) {
        return false;
    }
    if (!PaintUtilities.equal(this.gridBandPaint, that.gridBandPaint)) {
        return false;
    }
    if (!PaintUtilities.equal(this.gridBandAlternatePaint,
            that.gridBandAlternatePaint)) {
        return false;
    }
    return super.equals(obj);
}
 
Example #17
Source File: LookupPaintScale.java    From buffer_bci with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Tests this instance for equality with an arbitrary object.
 *
 * @param obj  the object (<code>null</code> permitted).
 *
 * @return A boolean.
 */
@Override
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof LookupPaintScale)) {
        return false;
    }
    LookupPaintScale that = (LookupPaintScale) obj;
    if (this.lowerBound != that.lowerBound) {
        return false;
    }
    if (this.upperBound != that.upperBound) {
        return false;
    }
    if (!PaintUtilities.equal(this.defaultPaint, that.defaultPaint)) {
        return false;
    }
    if (!this.lookupTable.equals(that.lookupTable)) {
        return false;
    }
    return true;
}
 
Example #18
Source File: LineBorder.java    From buffer_bci with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Tests this border for equality with an arbitrary instance.
 *
 * @param obj  the object ({@code null} permitted).
 *
 * @return A boolean.
 */
@Override
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof LineBorder)) {
        return false;
    }
    LineBorder that = (LineBorder) obj;
    if (!PaintUtilities.equal(this.paint, that.paint)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.stroke, that.stroke)) {
        return false;
    }
    if (!this.insets.equals(that.insets)) {
        return false;
    }
    return true;
}
 
Example #19
Source File: BlockBorder.java    From buffer_bci with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Tests this border for equality with an arbitrary instance.
 *
 * @param obj  the object (<code>null</code> permitted).
 *
 * @return A boolean.
 */
@Override
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof BlockBorder)) {
        return false;
    }
    BlockBorder that = (BlockBorder) obj;
    if (!this.insets.equals(that.insets)) {
        return false;
    }
    if (!PaintUtilities.equal(this.paint, that.paint)) {
        return false;
    }
    return true;
}
 
Example #20
Source File: GanttRenderer.java    From buffer_bci with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Tests this renderer for equality with an arbitrary object.
 *
 * @param obj  the object (<code>null</code> permitted).
 *
 * @return A boolean.
 */
@Override
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof GanttRenderer)) {
        return false;
    }
    GanttRenderer that = (GanttRenderer) obj;
    if (!PaintUtilities.equal(this.completePaint, that.completePaint)) {
        return false;
    }
    if (!PaintUtilities.equal(this.incompletePaint, that.incompletePaint)) {
        return false;
    }
    if (this.startPercent != that.startPercent) {
        return false;
    }
    if (this.endPercent != that.endPercent) {
        return false;
    }
    return super.equals(obj);
}
 
Example #21
Source File: CategoryAxis.java    From SIMVA-SoS with Apache License 2.0 6 votes vote down vote up
/**
 * Tests two maps containing (<code>Comparable</code>, <code>Paint</code>)
 * elements for equality.
 *
 * @param map1  the first map (<code>null</code> not permitted).
 * @param map2  the second map (<code>null</code> not permitted).
 *
 * @return A boolean.
 */
private boolean equalPaintMaps(Map map1, Map map2) {
    if (map1.size() != map2.size()) {
        return false;
    }
    Set entries = map1.entrySet();
    Iterator iterator = entries.iterator();
    while (iterator.hasNext()) {
        Map.Entry entry = (Map.Entry) iterator.next();
        Paint p1 = (Paint) entry.getValue();
        Paint p2 = (Paint) map2.get(entry.getKey());
        if (!PaintUtilities.equal(p1, p2)) {
            return false;
        }
    }
    return true;
}
 
Example #22
Source File: XYLine3DRenderer.java    From openstock with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Tests this renderer for equality with an arbitrary object.
 *
 * @param obj  the object (<code>null</code> permitted).
 *
 * @return A boolean.
 */
@Override
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof XYLine3DRenderer)) {
        return false;
    }
    XYLine3DRenderer that = (XYLine3DRenderer) obj;
    if (this.xOffset != that.xOffset) {
        return false;
    }
    if (this.yOffset != that.yOffset) {
        return false;
    }
    if (!PaintUtilities.equal(this.wallPaint, that.wallPaint)) {
        return false;
    }
    return super.equals(obj);
}
 
Example #23
Source File: StatisticalBarRenderer.java    From buffer_bci with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Tests this renderer for equality with an arbitrary object.
 *
 * @param obj  the object (<code>null</code> permitted).
 *
 * @return A boolean.
 */
@Override
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof StatisticalBarRenderer)) {
        return false;
    }
    StatisticalBarRenderer that = (StatisticalBarRenderer) obj;
    if (!PaintUtilities.equal(this.errorIndicatorPaint,
            that.errorIndicatorPaint)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.errorIndicatorStroke,
            that.errorIndicatorStroke)) {
        return false;
    }
    return super.equals(obj);
}
 
Example #24
Source File: XYDifferenceRenderer.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Tests this renderer for equality with an arbitrary object.
 *
 * @param obj  the object (<code>null</code> permitted).
 *
 * @return A boolean.
 */
@Override
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof XYDifferenceRenderer)) {
        return false;
    }
    if (!super.equals(obj)) {
        return false;
    }
    XYDifferenceRenderer that = (XYDifferenceRenderer) obj;
    if (!PaintUtilities.equal(this.positivePaint, that.positivePaint)) {
        return false;
    }
    if (!PaintUtilities.equal(this.negativePaint, that.negativePaint)) {
        return false;
    }
    if (this.shapesVisible != that.shapesVisible) {
        return false;
    }
    if (!ShapeUtilities.equal(this.legendLine, that.legendLine)) {
        return false;
    }
    if (this.roundXCoordinates != that.roundXCoordinates) {
        return false;
    }
    return true;
}
 
Example #25
Source File: BoxAndWhiskerRenderer.java    From buffer_bci with GNU General Public License v3.0 5 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>.
 */
@Override
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof BoxAndWhiskerRenderer)) {
        return false;
    }
    BoxAndWhiskerRenderer that = (BoxAndWhiskerRenderer) obj;
    if (this.fillBox != that.fillBox) {
        return false;
    }
    if (this.itemMargin != that.itemMargin) {
        return false;
    }
    if (this.maximumBarWidth != that.maximumBarWidth) {
        return false;
    }
    if (this.meanVisible != that.meanVisible) {
        return false;
    }
    if (this.medianVisible != that.medianVisible) {
        return false;
    }
    if (this.useOutlinePaintForWhiskers
            != that.useOutlinePaintForWhiskers) {
        return false;
    }
    if (this.whiskerWidth != that.whiskerWidth) {
        return false;
    }
    if (!PaintUtilities.equal(this.artifactPaint, that.artifactPaint)) {
        return false;
    }
    return super.equals(obj);
}
 
Example #26
Source File: CyclicNumberAxis.java    From SIMVA-SoS with Apache License 2.0 5 votes vote down vote up
/**
 * Tests the axis for equality with another object.
 *
 * @param obj  the object to test against.
 *
 * @return A boolean.
 */
@Override
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof CyclicNumberAxis)) {
        return false;
    }
    if (!super.equals(obj)) {
        return false;
    }
    CyclicNumberAxis that = (CyclicNumberAxis) obj;
    if (this.period != that.period) {
        return false;
    }
    if (this.offset != that.offset) {
        return false;
    }
    if (!PaintUtilities.equal(this.advanceLinePaint,
            that.advanceLinePaint)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.advanceLineStroke,
            that.advanceLineStroke)) {
        return false;
    }
    if (this.advanceLineVisible != that.advanceLineVisible) {
        return false;
    }
    if (this.boundMappedToLastCycle != that.boundMappedToLastCycle) {
        return false;
    }
    return true;
}
 
Example #27
Source File: MeterNeedle.java    From buffer_bci with GNU General Public License v3.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.
 */
@Override
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 #28
Source File: ColorBlock.java    From ccu-historian with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Tests this block for equality with an arbitrary object.
 *
 * @param obj  the object (<code>null</code> permitted).
 *
 * @return A boolean.
 */
@Override
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof ColorBlock)) {
        return false;
    }
    ColorBlock that = (ColorBlock) obj;
    if (!PaintUtilities.equal(this.paint, that.paint)) {
        return false;
    }
    return super.equals(obj);
}
 
Example #29
Source File: CyclicNumberAxis.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Tests the axis for equality with another object.
 *
 * @param obj  the object to test against.
 *
 * @return A boolean.
 */
@Override
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof CyclicNumberAxis)) {
        return false;
    }
    if (!super.equals(obj)) {
        return false;
    }
    CyclicNumberAxis that = (CyclicNumberAxis) obj;
    if (this.period != that.period) {
        return false;
    }
    if (this.offset != that.offset) {
        return false;
    }
    if (!PaintUtilities.equal(this.advanceLinePaint,
            that.advanceLinePaint)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.advanceLineStroke,
            that.advanceLineStroke)) {
        return false;
    }
    if (this.advanceLineVisible != that.advanceLineVisible) {
        return false;
    }
    if (this.boundMappedToLastCycle != that.boundMappedToLastCycle) {
        return false;
    }
    return true;
}
 
Example #30
Source File: TextTitle.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Tests this title for equality with another object.
 *
 * @param obj  the object (<code>null</code> permitted).
 *
 * @return <code>true</code> or <code>false</code>.
 */
@Override
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof TextTitle)) {
        return false;
    }
    TextTitle that = (TextTitle) obj;
    if (!ObjectUtilities.equal(this.text, that.text)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.font, that.font)) {
        return false;
    }
    if (!PaintUtilities.equal(this.paint, that.paint)) {
        return false;
    }
    if (this.textAlignment != that.textAlignment) {
        return false;
    }
    if (!PaintUtilities.equal(this.backgroundPaint, that.backgroundPaint)) {
        return false;
    }
    if (this.maximumLinesToDisplay != that.maximumLinesToDisplay) {
        return false;
    }
    if (this.expandToFitSpace != that.expandToFitSpace) {
        return false;
    }
    if (!ObjectUtilities.equal(this.toolTipText, that.toolTipText)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.urlText, that.urlText)) {
        return false;
    }
    return super.equals(obj);
}