/** * 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); }