| 1 21 22 package org.lobobrowser.html.renderer; 23 24 import java.awt.Point ; 25 26 29 public class RenderableSpot { 30 public final BoundableRenderable renderable; 31 public final int x; 32 public final int y; 33 34 39 public RenderableSpot(BoundableRenderable renderable, int x, int y) { 40 super(); 41 this.renderable = renderable; 42 this.x = x; 43 this.y = y; 44 } 45 46 public Point getPoint() { 47 return new Point (this.x, this.y); 48 } 49 50 public boolean equals(Object other) { 51 if(!(other instanceof RenderableSpot)) { 52 return false; 53 } 54 RenderableSpot otherRp = (RenderableSpot) other; 55 return otherRp.renderable == this.renderable && 56 otherRp.x == this.x && 57 otherRp.y == this.y; 58 } 59 } 60 | Popular Tags |