Java Code Examples for org.jfree.chart.HashUtilities#hashCodeForPaint()

The following examples show how to use org.jfree.chart.HashUtilities#hashCodeForPaint() . 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: XYTextAnnotation.java    From buffer_bci with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Returns a hash code for the object.
 *
 * @return A hash code.
 */
@Override
public int hashCode() {
    int result = 193;
    result = 37 * result + this.text.hashCode();
    result = 37 * result + this.font.hashCode();
    result = 37 * result + HashUtilities.hashCodeForPaint(this.paint);
    long temp = Double.doubleToLongBits(this.x);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    temp = Double.doubleToLongBits(this.y);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    result = 37 * result + this.textAnchor.hashCode();
    result = 37 * result + this.rotationAnchor.hashCode();
    temp = Double.doubleToLongBits(this.rotationAngle);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    return result;
}
 
Example 2
Source File: ArcDialFrame.java    From ccu-historian with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Returns a hash code for this instance.
 *
 * @return The hash code.
 */
@Override
public int hashCode() {
    int result = 193;
    long temp = Double.doubleToLongBits(this.startAngle);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    temp = Double.doubleToLongBits(this.extent);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    temp = Double.doubleToLongBits(this.innerRadius);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    temp = Double.doubleToLongBits(this.outerRadius);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    result = 37 * result + HashUtilities.hashCodeForPaint(
            this.backgroundPaint);
    result = 37 * result + HashUtilities.hashCodeForPaint(
            this.foregroundPaint);
    result = 37 * result + this.stroke.hashCode();
    return result;
}
 
Example 3
Source File: XYPointerAnnotation.java    From openstock with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Returns a hash code for this instance.
 *
 * @return A hash code.
 */
@Override
public int hashCode() {
    int result = super.hashCode();
    long temp = Double.doubleToLongBits(this.angle);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    temp = Double.doubleToLongBits(this.tipRadius);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    temp = Double.doubleToLongBits(this.baseRadius);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    temp = Double.doubleToLongBits(this.arrowLength);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    temp = Double.doubleToLongBits(this.arrowWidth);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    result = result * 37 + HashUtilities.hashCodeForPaint(this.arrowPaint);
    result = result * 37 + this.arrowStroke.hashCode();
    temp = Double.doubleToLongBits(this.labelOffset);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    return result;
}
 
Example 4
Source File: XYPointerAnnotation.java    From ECG-Viewer with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Returns a hash code for this instance.
 *
 * @return A hash code.
 */
@Override
public int hashCode() {
    int result = super.hashCode();
    long temp = Double.doubleToLongBits(this.angle);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    temp = Double.doubleToLongBits(this.tipRadius);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    temp = Double.doubleToLongBits(this.baseRadius);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    temp = Double.doubleToLongBits(this.arrowLength);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    temp = Double.doubleToLongBits(this.arrowWidth);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    result = result * 37 + HashUtilities.hashCodeForPaint(this.arrowPaint);
    result = result * 37 + this.arrowStroke.hashCode();
    temp = Double.doubleToLongBits(this.labelOffset);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    return result;
}
 
Example 5
Source File: ArcDialFrame.java    From SIMVA-SoS with Apache License 2.0 6 votes vote down vote up
/**
 * Returns a hash code for this instance.
 *
 * @return The hash code.
 */
@Override
public int hashCode() {
    int result = 193;
    long temp = Double.doubleToLongBits(this.startAngle);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    temp = Double.doubleToLongBits(this.extent);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    temp = Double.doubleToLongBits(this.innerRadius);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    temp = Double.doubleToLongBits(this.outerRadius);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    result = 37 * result + HashUtilities.hashCodeForPaint(
            this.backgroundPaint);
    result = 37 * result + HashUtilities.hashCodeForPaint(
            this.foregroundPaint);
    result = 37 * result + this.stroke.hashCode();
    return result;
}
 
Example 6
Source File: XYPointerAnnotation.java    From buffer_bci with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Returns a hash code for this instance.
 *
 * @return A hash code.
 */
@Override
public int hashCode() {
    int result = super.hashCode();
    long temp = Double.doubleToLongBits(this.angle);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    temp = Double.doubleToLongBits(this.tipRadius);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    temp = Double.doubleToLongBits(this.baseRadius);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    temp = Double.doubleToLongBits(this.arrowLength);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    temp = Double.doubleToLongBits(this.arrowWidth);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    result = result * 37 + HashUtilities.hashCodeForPaint(this.arrowPaint);
    result = result * 37 + this.arrowStroke.hashCode();
    temp = Double.doubleToLongBits(this.labelOffset);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    return result;
}
 
Example 7
Source File: ArcDialFrame.java    From buffer_bci with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Returns a hash code for this instance.
 *
 * @return The hash code.
 */
@Override
public int hashCode() {
    int result = 193;
    long temp = Double.doubleToLongBits(this.startAngle);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    temp = Double.doubleToLongBits(this.extent);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    temp = Double.doubleToLongBits(this.innerRadius);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    temp = Double.doubleToLongBits(this.outerRadius);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    result = 37 * result + HashUtilities.hashCodeForPaint(
            this.backgroundPaint);
    result = 37 * result + HashUtilities.hashCodeForPaint(
            this.foregroundPaint);
    result = 37 * result + this.stroke.hashCode();
    return result;
}
 
Example 8
Source File: XYPolygonAnnotation.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Returns a hash code for this instance.
 *
 * @return A hash code.
 */
@Override
public int hashCode() {
    int result = 193;
    result = 37 * result + HashUtilities.hashCodeForDoubleArray(
            this.polygon);
    result = 37 * result + HashUtilities.hashCodeForPaint(this.fillPaint);
    result = 37 * result + HashUtilities.hashCodeForPaint(
            this.outlinePaint);
    if (this.stroke != null) {
        result = 37 * result + this.stroke.hashCode();
    }
    return result;
}
 
Example 9
Source File: TextAnnotation.java    From opensim-gui with Apache License 2.0 5 votes vote down vote up
/**
 * Returns a hash code for this instance.
 * 
 * @return A hash code.
 */
public int hashCode() {
    int result = 193;
    result = 37 * result + this.font.hashCode();
    result = 37 * result + HashUtilities.hashCodeForPaint(this.paint);
    result = 37 * result + this.rotationAnchor.hashCode();
    long temp = Double.doubleToLongBits(this.rotationAngle);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    result = 37 * result + this.text.hashCode();
    result = 37 * result + this.textAnchor.hashCode();
    return result;
}
 
Example 10
Source File: DialTextAnnotation.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Returns a hash code for this instance.
 *
 * @return The hash code.
 */
@Override
public int hashCode() {
    int result = 193;
    result = 37 * result + HashUtilities.hashCodeForPaint(this.paint);
    result = 37 * result + this.font.hashCode();
    result = 37 * result + this.label.hashCode();
    result = 37 * result + this.anchor.hashCode();
    long temp = Double.doubleToLongBits(this.angle);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    temp = Double.doubleToLongBits(this.radius);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    return result;
}
 
Example 11
Source File: StandardDialRange.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Returns a hash code for this instance.
 *
 * @return The hash code.
 */
@Override
public int hashCode() {
    int result = 193;
    long temp = Double.doubleToLongBits(this.lowerBound);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    temp = Double.doubleToLongBits(this.upperBound);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    temp = Double.doubleToLongBits(this.innerRadius);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    temp = Double.doubleToLongBits(this.outerRadius);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    result = 37 * result + HashUtilities.hashCodeForPaint(this.paint);
    return result;
}
 
Example 12
Source File: XYPolygonAnnotation.java    From ECG-Viewer with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Returns a hash code for this instance.
 *
 * @return A hash code.
 */
@Override
public int hashCode() {
    int result = 193;
    result = 37 * result + HashUtilities.hashCodeForDoubleArray(
            this.polygon);
    result = 37 * result + HashUtilities.hashCodeForPaint(this.fillPaint);
    result = 37 * result + HashUtilities.hashCodeForPaint(
            this.outlinePaint);
    if (this.stroke != null) {
        result = 37 * result + this.stroke.hashCode();
    }
    return result;
}
 
Example 13
Source File: DialCap.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Returns a hash code for this instance.
 *
 * @return The hash code.
 */
@Override
public int hashCode() {
    int result = 193;
    result = 37 * result + HashUtilities.hashCodeForPaint(this.fillPaint);
    result = 37 * result + HashUtilities.hashCodeForPaint(
            this.outlinePaint);
    result = 37 * result + this.outlineStroke.hashCode();
    return result;
}
 
Example 14
Source File: XYPolygonAnnotation.java    From SIMVA-SoS with Apache License 2.0 5 votes vote down vote up
/**
 * Returns a hash code for this instance.
 *
 * @return A hash code.
 */
@Override
public int hashCode() {
    int result = 193;
    result = 37 * result + HashUtilities.hashCodeForDoubleArray(
            this.polygon);
    result = 37 * result + HashUtilities.hashCodeForPaint(this.fillPaint);
    result = 37 * result + HashUtilities.hashCodeForPaint(
            this.outlinePaint);
    if (this.stroke != null) {
        result = 37 * result + this.stroke.hashCode();
    }
    return result;
}
 
Example 15
Source File: DialValueIndicator.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Returns a hash code for this instance.
 *
 * @return The hash code.
 */
@Override
public int hashCode() {
    int result = 193;
    result = 37 * result + HashUtilities.hashCodeForPaint(this.paint);
    result = 37 * result + HashUtilities.hashCodeForPaint(
            this.backgroundPaint);
    result = 37 * result + HashUtilities.hashCodeForPaint(
            this.outlinePaint);
    result = 37 * result + this.outlineStroke.hashCode();
    return result;
}
 
Example 16
Source File: DialCap.java    From ccu-historian with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Returns a hash code for this instance.
 *
 * @return The hash code.
 */
@Override
public int hashCode() {
    int result = 193;
    result = 37 * result + HashUtilities.hashCodeForPaint(this.fillPaint);
    result = 37 * result + HashUtilities.hashCodeForPaint(
            this.outlinePaint);
    result = 37 * result + this.outlineStroke.hashCode();
    return result;
}
 
Example 17
Source File: CategoryLineAnnotation.java    From ECG-Viewer with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Returns a hash code for this instance.
 *
 * @return A hash code.
 */
@Override
public int hashCode() {
    int result = 193;
    result = 37 * result + this.category1.hashCode();
    long temp = Double.doubleToLongBits(this.value1);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    result = 37 * result + this.category2.hashCode();
    temp = Double.doubleToLongBits(this.value2);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    result = 37 * result + HashUtilities.hashCodeForPaint(this.paint);
    result = 37 * result + this.stroke.hashCode();
    return result;
}
 
Example 18
Source File: DialTextAnnotation.java    From ccu-historian with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Returns a hash code for this instance.
 *
 * @return The hash code.
 */
@Override
public int hashCode() {
    int result = 193;
    result = 37 * result + HashUtilities.hashCodeForPaint(this.paint);
    result = 37 * result + this.font.hashCode();
    result = 37 * result + this.label.hashCode();
    result = 37 * result + this.anchor.hashCode();
    long temp = Double.doubleToLongBits(this.angle);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    temp = Double.doubleToLongBits(this.radius);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    return result;
}
 
Example 19
Source File: XYShapeAnnotation.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Returns a hash code for this instance.
 *
 * @return A hash code.
 */
@Override
public int hashCode() {
    int result = 193;
    result = 37 * result + this.shape.hashCode();
    if (this.stroke != null) {
        result = 37 * result + this.stroke.hashCode();
    }
    result = 37 * result + HashUtilities.hashCodeForPaint(
            this.outlinePaint);
    result = 37 * result + HashUtilities.hashCodeForPaint(this.fillPaint);
    return result;
}
 
Example 20
Source File: StandardDialFrame.java    From ccu-historian with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Returns a hash code for this instance.
 *
 * @return The hash code.
 */
@Override
public int hashCode() {
    int result = 193;
    long temp = Double.doubleToLongBits(this.radius);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    result = 37 * result + HashUtilities.hashCodeForPaint(
            this.backgroundPaint);
    result = 37 * result + HashUtilities.hashCodeForPaint(
            this.foregroundPaint);
    result = 37 * result + this.stroke.hashCode();
    return result;
}