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

The following examples show how to use org.jfree.chart.util.ObjectUtilities#hashCode() . 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: DialPlot.java    From astor with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Returns a hash code for this instance.
 *
 * @return The hash code.
 */
public int hashCode() {
    int result = 193;
    result = 37 * result + ObjectUtilities.hashCode(this.background);
    result = 37 * result + ObjectUtilities.hashCode(this.cap);
    result = 37 * result + this.dialFrame.hashCode();
    long temp = Double.doubleToLongBits(this.viewX);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    temp = Double.doubleToLongBits(this.viewY);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    temp = Double.doubleToLongBits(this.viewW);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    temp = Double.doubleToLongBits(this.viewH);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    return result;
}
 
Example 2
Source File: DialPlot.java    From astor with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Returns a hash code for this instance.
 * 
 * @return The hash code.
 */
public int hashCode() {
    int result = 193;
    result = 37 * result + ObjectUtilities.hashCode(this.background);
    result = 37 * result + ObjectUtilities.hashCode(this.cap);
    result = 37 * result + this.dialFrame.hashCode();
    long temp = Double.doubleToLongBits(this.viewX);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    temp = Double.doubleToLongBits(this.viewY);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    temp = Double.doubleToLongBits(this.viewW);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    temp = Double.doubleToLongBits(this.viewH);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    return result;
}
 
Example 3
Source File: Title.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Returns a hashcode for the title.
 *
 * @return The hashcode.
 */
public int hashCode() {
    int result = 193;
    result = 37 * result + ObjectUtilities.hashCode(this.position);
    result = 37 * result
            + ObjectUtilities.hashCode(this.horizontalAlignment);
    result = 37 * result + ObjectUtilities.hashCode(this.verticalAlignment);
    return result;
}
 
Example 4
Source File: LegendGraphic.java    From astor with GNU General Public License v2.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 + ObjectUtilities.hashCode(this.fillPaint);
    // FIXME: use other fields too
    return result;
}
 
Example 5
Source File: Title.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Returns a hashcode for the title.
 * 
 * @return The hashcode.
 */
public int hashCode() {
    int result = 193;
    result = 37 * result + ObjectUtilities.hashCode(this.position);    
    result = 37 * result 
            + ObjectUtilities.hashCode(this.horizontalAlignment);    
    result = 37 * result + ObjectUtilities.hashCode(this.verticalAlignment);
    return result;
}
 
Example 6
Source File: LegendGraphic.java    From astor with GNU General Public License v2.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 + ObjectUtilities.hashCode(this.fillPaint);
    // FIXME: use other fields too
    return result;
}