/**
  * Checks whether two <code>AnalyzedData</code> objects have equal values.
  *
  * @return true if the specified object and this <code>AnalyzedData</code> object are equal.
  * @see java.lang.Object#equals(java.lang.Object)
  */
 public boolean equals(Object obj) {
   if (obj == this) {
     return true;
   }
   if (obj instanceof AnalyzedData) {
     AnalyzedData ad = (AnalyzedData) obj;
     return (this.getYName().equals(ad.getYName())
         && this.getXName().equals(ad.getXName())
         && Arrays.equals(this.yData, ad.yData)
         && Arrays.equals(this.xData, ad.xData));
   }
   return false;
 }
示例#2
0
  public void setScaledForSonification(boolean scaledForSonification) {
    for (int i = 0; i < solutionList.size(); i++) {
      Solution s = (Solution) solutionList.get(i);
      AnalyzedItem ai = s.getAnalyzedItem();

      if (ai instanceof AnalyzedData)
        ((AnalyzedData) ai).setScaledForSonification(scaledForSonification);
    } // end for i
  } // end setScaledForSonification
示例#3
0
  public void setScaleGraphTrailsToFitBounds(boolean scaleGraphTrailsToFitBounds) {
    for (int i = 0; i < solutionList.size(); i++) {
      Solution s = (Solution) solutionList.get(i);
      AnalyzedItem ai = s.getAnalyzedItem();

      if (ai instanceof AnalyzedData)
        ((AnalyzedData) ai).setScaledGraphTrailsToFitBounds(scaleGraphTrailsToFitBounds);
    } // end for i
  } // end setScaleGraphTrailsToFitBounds