/** checks whether the PlotPrimitive intersects (or is contained) in the given rectangle. */ public boolean intersects(final Rectangle rt) { return (r == null) ? false : r.intersects(rt); }
/** * checks whether the PlotPrimitive contains (or in case of a point primitive equals to) the given * point. */ public boolean contains(final int x, final int y) { return (r == null) ? false : r.contains(x, y); }
public void setMINWIDTH(final int MINWIDTH) { this.MINWIDTH = MINWIDTH; if (r != null && r.width < MINWIDTH) r.width = MINWIDTH; }
public void setMINHEIGHT(final int MINHEIGHT) { this.MINHEIGHT = MINHEIGHT; if (r != null && r.height < MINHEIGHT) r.height = MINHEIGHT; }
public void move(final int x, final int y) { r.setLocation(x, y); }
public void setBounds(int x, int y, int w, int h) { r.setBounds(x, y, Math.max(w, MINWIDTH), Math.max(h, MINHEIGHT)); }