org.jfree.chart.HashUtilities Java Examples

The following examples show how to use org.jfree.chart.HashUtilities. 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: 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 #2
Source File: Crosshair.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 hash = 7;
    hash = HashUtilities.hashCode(hash, this.visible);
    hash = HashUtilities.hashCode(hash, this.value);
    hash = HashUtilities.hashCode(hash, this.paint);
    hash = HashUtilities.hashCode(hash, this.stroke);
    hash = HashUtilities.hashCode(hash, this.labelVisible);
    hash = HashUtilities.hashCode(hash, this.labelAnchor);
    hash = HashUtilities.hashCode(hash, this.labelGenerator);
    hash = HashUtilities.hashCode(hash, this.labelXOffset);
    hash = HashUtilities.hashCode(hash, this.labelYOffset);
    hash = HashUtilities.hashCode(hash, this.labelFont);
    hash = HashUtilities.hashCode(hash, this.labelPaint);
    hash = HashUtilities.hashCode(hash, this.labelBackgroundPaint);
    hash = HashUtilities.hashCode(hash, this.labelOutlineVisible);
    hash = HashUtilities.hashCode(hash, this.labelOutlineStroke);
    hash = HashUtilities.hashCode(hash, this.labelOutlinePaint);
    return hash;
}
 
Example #3
Source File: XYPointerAnnotation.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 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: Crosshair.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 hash = 7;
    hash = HashUtilities.hashCode(hash, this.visible);
    hash = HashUtilities.hashCode(hash, this.value);
    hash = HashUtilities.hashCode(hash, this.paint);
    hash = HashUtilities.hashCode(hash, this.stroke);
    hash = HashUtilities.hashCode(hash, this.labelVisible);
    hash = HashUtilities.hashCode(hash, this.labelAnchor);
    hash = HashUtilities.hashCode(hash, this.labelGenerator);
    hash = HashUtilities.hashCode(hash, this.labelXOffset);
    hash = HashUtilities.hashCode(hash, this.labelYOffset);
    hash = HashUtilities.hashCode(hash, this.labelFont);
    hash = HashUtilities.hashCode(hash, this.labelPaint);
    hash = HashUtilities.hashCode(hash, this.labelBackgroundPaint);
    hash = HashUtilities.hashCode(hash, this.labelOutlineVisible);
    hash = HashUtilities.hashCode(hash, this.labelOutlineStroke);
    hash = HashUtilities.hashCode(hash, this.labelOutlinePaint);
    return hash;
}
 
Example #5
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 #6
Source File: DialPointer.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 = super.hashCode();
    result = HashUtilities.hashCode(result, this.widthRadius);
    result = HashUtilities.hashCode(result, this.fillPaint);
    result = HashUtilities.hashCode(result, this.outlinePaint);
    return result;
}
 
Example #7
Source File: AbstractRenderer.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Returns a hashcode for the renderer.
 *
 * @return The hashcode.
 */
@Override
public int hashCode() {
    int result = 193;
    result = HashUtilities.hashCode(result, this.seriesVisibleList);
    result = HashUtilities.hashCode(result, this.baseSeriesVisible);
    result = HashUtilities.hashCode(result, this.seriesVisibleInLegendList);
    result = HashUtilities.hashCode(result, this.baseSeriesVisibleInLegend);
    result = HashUtilities.hashCode(result, this.paintList);
    result = HashUtilities.hashCode(result, this.basePaint);
    result = HashUtilities.hashCode(result, this.fillPaintList);
    result = HashUtilities.hashCode(result, this.baseFillPaint);
    result = HashUtilities.hashCode(result, this.outlinePaintList);
    result = HashUtilities.hashCode(result, this.baseOutlinePaint);
    result = HashUtilities.hashCode(result, this.strokeList);
    result = HashUtilities.hashCode(result, this.baseStroke);
    result = HashUtilities.hashCode(result, this.outlineStrokeList);
    result = HashUtilities.hashCode(result, this.baseOutlineStroke);
    // shapeList
    // baseShape
    result = HashUtilities.hashCode(result, this.itemLabelsVisibleList);
    result = HashUtilities.hashCode(result, this.baseItemLabelsVisible);
    // itemLabelFontList
    // baseItemLabelFont
    // itemLabelPaintList
    // baseItemLabelPaint
    // positiveItemLabelPositionList
    // basePositiveItemLabelPosition
    // negativeItemLabelPositionList
    // baseNegativeItemLabelPosition
    // itemLabelAnchorOffset
    // createEntityList
    // baseCreateEntities
    return result;
}
 
Example #8
Source File: StandardDialFrame.java    From SIMVA-SoS with Apache License 2.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;
}
 
Example #9
Source File: GradientBarPainter.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 A hash code.
 */
@Override
public int hashCode() {
    int hash = 37;
    hash = HashUtilities.hashCode(hash, this.g1);
    hash = HashUtilities.hashCode(hash, this.g2);
    hash = HashUtilities.hashCode(hash, this.g3);
    return hash;
}
 
Example #10
Source File: XYAreaRenderer.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 = super.hashCode();
    result = HashUtilities.hashCode(result, this.plotArea);
    result = HashUtilities.hashCode(result, this.plotLines);
    result = HashUtilities.hashCode(result, this.plotShapes);
    result = HashUtilities.hashCode(result, this.useFillPaint);
    return result;
}
 
Example #11
Source File: XYAreaRenderer.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 = super.hashCode();
    result = HashUtilities.hashCode(result, this.plotArea);
    result = HashUtilities.hashCode(result, this.plotLines);
    result = HashUtilities.hashCode(result, this.plotShapes);
    result = HashUtilities.hashCode(result, this.useFillPaint);
    return result;
}
 
Example #12
Source File: DialValueIndicator.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 + HashUtilities.hashCodeForPaint(
            this.backgroundPaint);
    result = 37 * result + HashUtilities.hashCodeForPaint(
            this.outlinePaint);
    result = 37 * result + this.outlineStroke.hashCode();
    return result;
}
 
Example #13
Source File: PieSectionEntity.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 A hash code.
 */
@Override
public int hashCode() {
    int result = super.hashCode();
    result = HashUtilities.hashCode(result, this.pieIndex);
    result = HashUtilities.hashCode(result, this.sectionIndex);
    return result;
}
 
Example #14
Source File: PlotEntity.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 A hash code.
 */
@Override
public int hashCode() {
    int result = 39;
    result = HashUtilities.hashCode(result, getToolTipText());
    result = HashUtilities.hashCode(result, getURLText());
    return result;
}
 
Example #15
Source File: LevelRenderer.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 hash = super.hashCode();
    hash = HashUtilities.hashCode(hash, this.itemMargin);
    hash = HashUtilities.hashCode(hash, this.maxItemWidth);
    return hash;
}
 
Example #16
Source File: DialPointer.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 A hash code.
 */
@Override
public int hashCode() {
    int result = super.hashCode();
    result = HashUtilities.hashCode(result, this.widthRadius);
    result = HashUtilities.hashCode(result, this.fillPaint);
    result = HashUtilities.hashCode(result, this.outlinePaint);
    return result;
}
 
Example #17
Source File: JFreeChartEntity.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 = 39;
    result = HashUtilities.hashCode(result, getToolTipText());
    result = HashUtilities.hashCode(result, getURLText());
    return result;
}
 
Example #18
Source File: CategoryLabelEntity.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 = super.hashCode();
    result = HashUtilities.hashCode(result, this.key);
    return result;
}
 
Example #19
Source File: DialPointer.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 = super.hashCode();
    result = HashUtilities.hashCode(result, this.paint);
    result = HashUtilities.hashCode(result, this.stroke);
    return result;
}
 
Example #20
Source File: DialBackground.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 The hash code.
 */
@Override
public int hashCode() {
    int result = 193;
    result = 37 * result + HashUtilities.hashCodeForPaint(this.paint);
    result = 37 * result + this.gradientPaintTransformer.hashCode();
    return result;
}
 
Example #21
Source File: DefaultShadowGenerator.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 hash = HashUtilities.hashCode(17, this.shadowSize);
    hash = HashUtilities.hashCode(hash, this.shadowColor);
    hash = HashUtilities.hashCode(hash, this.shadowOpacity);
    hash = HashUtilities.hashCode(hash, this.distance);
    hash = HashUtilities.hashCode(hash, this.angle);
    return hash;
}
 
Example #22
Source File: OHLC.java    From openstock 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 = HashUtilities.hashCode(result, this.open);
    result = HashUtilities.hashCode(result, this.high);
    result = HashUtilities.hashCode(result, this.low);
    result = HashUtilities.hashCode(result, this.close);
    return result;
}
 
Example #23
Source File: StandardXYSeriesLabelGenerator.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 = 127;
    result = HashUtilities.hashCode(result, this.formatPattern);
    return result;
}
 
Example #24
Source File: LineFunction2D.java    From openstock 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 = 29;
    result = HashUtilities.hashCode(result, this.a);
    result = HashUtilities.hashCode(result, this.b);
    return result;
}
 
Example #25
Source File: PowerFunction2D.java    From openstock 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 = 29;
    result = HashUtilities.hashCode(result, this.a);
    result = HashUtilities.hashCode(result, this.b);
    return result;
}
 
Example #26
Source File: PowerFunction2D.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 = 29;
    result = HashUtilities.hashCode(result, this.a);
    result = HashUtilities.hashCode(result, this.b);
    return result;
}
 
Example #27
Source File: MultipleXYSeriesLabelGenerator.java    From openstock 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 = 127;
    result = HashUtilities.hashCode(result, this.formatPattern);
    result = HashUtilities.hashCode(result, this.additionalFormatPattern);
    result = HashUtilities.hashCode(result, this.seriesLabelLists);
    return result;
}
 
Example #28
Source File: DialPointer.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 = super.hashCode();
    result = HashUtilities.hashCode(result, this.paint);
    result = HashUtilities.hashCode(result, this.stroke);
    return result;
}
 
Example #29
Source File: PieSectionEntity.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 = super.hashCode();
    result = HashUtilities.hashCode(result, this.pieIndex);
    result = HashUtilities.hashCode(result, this.sectionIndex);
    return result;
}
 
Example #30
Source File: AbstractPieItemLabelGenerator.java    From openstock 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 = 127;
    result = HashUtilities.hashCode(result, this.labelFormat);
    result = HashUtilities.hashCode(result, this.numberFormat);
    result = HashUtilities.hashCode(result, this.percentFormat);
    return result;
}