1 23 24 package org.objectweb.fractal.gui.graph.model; 25 26 29 30 public class Rect { 31 32 35 36 public final double x0; 37 38 41 42 public final double y0; 43 44 47 48 public final double x1; 49 50 53 54 public final double y1; 55 56 64 65 public Rect ( 66 final double x0, 67 final double y0, 68 final double x1, 69 final double y1) 70 { 71 this.x0 = x0; 72 this.y0 = y0; 73 this.x1 = x1; 74 this.y1 = y1; 75 } 76 77 public boolean equals (final Object o) { 78 if (o instanceof Rect) { 79 Rect r = (Rect)o; 80 return x0 == r.x0 && y0 == r.y0 && x1 == r.x1 && y1 == r.y1; 81 } 82 return false; 83 } 84 } 85 | Popular Tags |