1 42 43 package org.jfree.data.xy; 44 45 import java.io.Serializable ; 46 47 53 public class XYInterval implements Serializable { 54 55 56 private double xLow; 57 58 59 private double xHigh; 60 61 62 private double y; 63 64 65 private double yLow; 66 67 68 private double yHigh; 69 70 79 public XYInterval(double xLow, double xHigh, double y, double yLow, 80 double yHigh) { 81 this.xLow = xLow; 82 this.xHigh = xHigh; 83 this.y = y; 84 this.yLow = yLow; 85 this.yHigh = yHigh; 86 } 87 88 93 public double getXLow() { 94 return this.xLow; 95 } 96 97 102 public double getXHigh() { 103 return this.xHigh; 104 } 105 106 111 public double getY() { 112 return this.y; 113 } 114 115 120 public double getYLow() { 121 return this.yLow; 122 } 123 124 129 public double getYHigh() { 130 return this.yHigh; 131 } 132 133 140 public boolean equals(Object obj) { 141 if (obj == this) { 142 return true; 143 } 144 if (!(obj instanceof XYInterval)) { 145 return false; 146 } 147 XYInterval that = (XYInterval) obj; 148 if (this.xLow != that.xLow) { 149 return false; 150 } 151 if (this.xHigh != that.xHigh) { 152 return false; 153 } 154 if (this.y != that.y) { 155 return false; 156 } 157 if (this.yLow != that.yLow) { 158 return false; 159 } 160 if (this.yHigh != that.yHigh) { 161 return false; 162 } 163 return true; 164 } 165 166 } 167 | Popular Tags |