当前位置: 首页>>代码示例>>Java>>正文


Java ObjectUtilities类代码示例

本文整理汇总了Java中org.jfree.util.ObjectUtilities的典型用法代码示例。如果您正苦于以下问题:Java ObjectUtilities类的具体用法?Java ObjectUtilities怎么用?Java ObjectUtilities使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ObjectUtilities类属于org.jfree.util包,在下文中一共展示了ObjectUtilities类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: hashCode

import org.jfree.util.ObjectUtilities; //导入依赖的package包/类
/**
 * 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;
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:21,代码来源:DialPlot.java

示例2: equals

import org.jfree.util.ObjectUtilities; //导入依赖的package包/类
/**
 * Tests the entity 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 CategoryItemEntity && super.equals(obj)) {
        CategoryItemEntity cie = (CategoryItemEntity) obj;
        if (this.categoryIndex != cie.categoryIndex) {
            return false;   
        }
        if (this.series != cie.series) {
            return false;   
        }
        if (!ObjectUtilities.equal(this.category, cie.category)) {
            return false;   
        }
        return true;
    }
    return false;
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:27,代码来源:CategoryItemEntity.java

示例3: equals

import org.jfree.util.ObjectUtilities; //导入依赖的package包/类
/**
 * Tests the entity for equality with an arbitrary object.
 * 
 * @param obj  the object to test against (<code>null</code> permitted).
 * 
 * @return A boolean.
 */
public boolean equals(Object obj) {
    if (obj == this) {
        return true;   
    }
    if (obj instanceof ChartEntity) {
        ChartEntity that = (ChartEntity) obj;
        if (!this.area.equals(that.area)) {
            return false;   
        }
        if (!ObjectUtilities.equal(this.toolTipText, that.toolTipText)) {
            return false;   
        }
        if (!ObjectUtilities.equal(this.urlText, that.urlText)) {
            return false;   
        }
        return true;
    }
    return false;
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:27,代码来源:ChartEntity.java

示例4: equals

import org.jfree.util.ObjectUtilities; //导入依赖的package包/类
/**
 * Tests the 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 StackedXYAreaRenderer) || !super.equals(obj)) {
        return false;
    }
    StackedXYAreaRenderer that = (StackedXYAreaRenderer) obj;
    if (!PaintUtilities.equal(this.shapePaint, that.shapePaint)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.shapeStroke, that.shapeStroke)) {
        return false;
    }
    return true;
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:24,代码来源:StackedXYAreaRenderer.java

示例5: equals

import org.jfree.util.ObjectUtilities; //导入依赖的package包/类
/**
 * Tests this <code>LabelBlock</code> for equality with an arbitrary 
 * object.
 * 
 * @param obj  the object (<code>null</code> permitted).
 * 
 * @return A boolean.
 */
public boolean equals(Object obj) {
    if (!(obj instanceof LabelBlock)) {
        return false;
    }
    LabelBlock that = (LabelBlock) obj;
    if (!this.text.equals(that.text)) {
        return false;
    }
    if (!this.font.equals(that.font)) {
        return false;
    }
    if (!PaintUtilities.equal(this.paint, that.paint)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.toolTipText, that.toolTipText)) {
        return false;
    }
    if (!ObjectUtilities.equal(this.urlText, that.urlText)) {
        return false;
    }
    return super.equals(obj);
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:31,代码来源:LabelBlock.java

示例6: equals

import org.jfree.util.ObjectUtilities; //导入依赖的package包/类
/**
 * Tests this border for equality with an arbitrary instance.
 * 
 * @param obj  the object (<code>null</code> permitted).
 * 
 * @return A boolean.
 */
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;
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:27,代码来源:LineBorder.java

示例7: equals

import org.jfree.util.ObjectUtilities; //导入依赖的package包/类
/**
 * Tests this arrangement 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 BorderArrangement)) {
        return false;   
    }
    BorderArrangement that = (BorderArrangement) obj;
    if (!ObjectUtilities.equal(this.topBlock, that.topBlock)) {
        return false;   
    }
    if (!ObjectUtilities.equal(this.bottomBlock, that.bottomBlock)) {
        return false;   
    }
    if (!ObjectUtilities.equal(this.leftBlock, that.leftBlock)) {
        return false;   
    }
    if (!ObjectUtilities.equal(this.rightBlock, that.rightBlock)) {
        return false;   
    }
    if (!ObjectUtilities.equal(this.centerBlock, that.centerBlock)) {
        return false;   
    }
    return true;
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:33,代码来源:BorderArrangement.java

示例8: equals

import org.jfree.util.ObjectUtilities; //导入依赖的package包/类
/**
 * Tests this map 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 StrokeMap)) {
        return false;
    }
    StrokeMap that = (StrokeMap) 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();
        Stroke s1 = getStroke(key);
        Stroke s2 = that.getStroke(key);
        if (!ObjectUtilities.equal(s1, s2)) {
            return false;
        }
    }
    return true;
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:31,代码来源:StrokeMap.java

示例9: equals

import org.jfree.util.ObjectUtilities; //导入依赖的package包/类
/**
 * Tests the map for equality against an arbitrary object.
 * 
 * @param obj  the object to test against (<code>null</code> permitted).
 * 
 * @return A boolean.
 */
public boolean equals(Object obj) {
    if (obj == this) {
        return true;      
    }
    if (!(obj instanceof KeyToGroupMap)) {
        return false;
    }
    KeyToGroupMap that = (KeyToGroupMap) obj;
    if (!ObjectUtilities.equal(this.defaultGroup, that.defaultGroup)) {
        return false;
    }
    if (!this.keyToGroupMap.equals(that.keyToGroupMap)) {
        return false;
    }
    return true;
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:24,代码来源:KeyToGroupMap.java

示例10: clone

import org.jfree.util.ObjectUtilities; //导入依赖的package包/类
/**
 * Returns a clone of the annotation.
 * 
 * @return A clone.
 * 
 * @throws CloneNotSupportedException  this class will not throw this 
 *         exception, but subclasses (if any) might.
 */
public Object clone() throws CloneNotSupportedException {
    
    CombinedDomainXYPlot result = (CombinedDomainXYPlot) super.clone(); 
    result.subplots = (List) ObjectUtilities.deepClone(this.subplots);
    for (Iterator it = result.subplots.iterator(); it.hasNext();) {
        Plot child = (Plot) it.next();
        child.setParent(result);
    }
    
    // after setting up all the subplots, the shared domain axis may need 
    // reconfiguring
    ValueAxis domainAxis = result.getDomainAxis();
    if (domainAxis != null) {
        domainAxis.configure();
    }
    
    return result;
    
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:28,代码来源:CombinedDomainXYPlot.java

示例11: equals

import org.jfree.util.ObjectUtilities; //导入依赖的package包/类
/**
 * Tests this instance for equality against an arbitrary object.
 * 
 * @param obj  the object (<code>null</code> permitted).
 * 
 * @return A boolean.
 */
public boolean equals(Object obj) {
    if (this == obj) {
        return true;   
    }
    if (!(obj instanceof PlotRenderingInfo)) {
        return false;
    }
    PlotRenderingInfo that = (PlotRenderingInfo) obj;
    if (!ObjectUtilities.equal(this.dataArea, that.dataArea)) {
        return false;   
    }
    if (!ObjectUtilities.equal(this.plotArea, that.plotArea)) {
        return false;   
    }
    if (!ObjectUtilities.equal(this.subplotInfo, that.subplotInfo)) {
        return false;   
    }
    return true;   
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:27,代码来源:PlotRenderingInfo.java

示例12: equals

import org.jfree.util.ObjectUtilities; //导入依赖的package包/类
/** 
 * Tests the plot for equality with an arbitrary object.
 * 
 * @param obj  the object (<code>null</code> permitted).
 * 
 * @return <code>true</code> or <code>false</code>.
 */
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof CombinedRangeCategoryPlot)) {
        return false;
    }
    if (!super.equals(obj)) {
        return false;
    }
    CombinedRangeCategoryPlot that = (CombinedRangeCategoryPlot) obj;
    if (!ObjectUtilities.equal(this.subplots, that.subplots)) {
        return false;
    }
    if (this.totalWeight != that.totalWeight) {
        return false;
    }
    if (this.gap != that.gap) {
        return false;
    }
    return true;       
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:30,代码来源:CombinedRangeCategoryPlot.java

示例13: clone

import org.jfree.util.ObjectUtilities; //导入依赖的package包/类
/**
 * Returns a clone of the plot.
 * 
 * @return A clone.
 * 
 * @throws CloneNotSupportedException  this class will not throw this 
 *         exception, but subclasses (if any) might.
 */
public Object clone() throws CloneNotSupportedException {
    CombinedRangeCategoryPlot result 
        = (CombinedRangeCategoryPlot) super.clone(); 
    result.subplots = (List) ObjectUtilities.deepClone(this.subplots);
    for (Iterator it = result.subplots.iterator(); it.hasNext();) {
        Plot child = (Plot) it.next();
        child.setParent(result);
    }
    
    // after setting up all the subplots, the shared range axis may need 
    // reconfiguring
    ValueAxis rangeAxis = result.getRangeAxis();
    if (rangeAxis != null) {
        rangeAxis.configure();
    }
    
    return result;
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:27,代码来源:CombinedRangeCategoryPlot.java

示例14: equals

import org.jfree.util.ObjectUtilities; //导入依赖的package包/类
/**
 * Tests this plot for equality with another object.
 *
 * @param obj  the other object.
 *
 * @return <code>true</code> or <code>false</code>.
 */
public boolean equals(Object obj) {

    if (obj == this) {
        return true;
    }

    if (!(obj instanceof CombinedRangeXYPlot)) {
        return false;
    }
    if (!super.equals(obj)) {
        return false;
    }
    CombinedRangeXYPlot that = (CombinedRangeXYPlot) obj;
    if (!ObjectUtilities.equal(this.subplots, that.subplots)) {
        return false;
    }
    if (this.totalWeight != that.totalWeight) {
        return false;
    }
    if (this.gap != that.gap) {
        return false;
    }
    return true;
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:32,代码来源:CombinedRangeXYPlot.java

示例15: clone

import org.jfree.util.ObjectUtilities; //导入依赖的package包/类
/**
 * Returns a clone of the plot.
 * 
 * @return A clone.
 * 
 * @throws CloneNotSupportedException  this class will not throw this 
 *         exception, but subclasses (if any) might.
 */
public Object clone() throws CloneNotSupportedException {
    
    CombinedRangeXYPlot result = (CombinedRangeXYPlot) super.clone(); 
    result.subplots = (List) ObjectUtilities.deepClone(this.subplots);
    for (Iterator it = result.subplots.iterator(); it.hasNext();) {
        Plot child = (Plot) it.next();
        child.setParent(result);
    }
    
    // after setting up all the subplots, the shared range axis may need 
    // reconfiguring
    ValueAxis rangeAxis = result.getRangeAxis();
    if (rangeAxis != null) {
        rangeAxis.configure();
    }
    
    return result;
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:27,代码来源:CombinedRangeXYPlot.java


注:本文中的org.jfree.util.ObjectUtilities类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。