Пример #1
0
 /** 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);
 }
Пример #2
0
 /**
  * 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);
 }
Пример #3
0
 public void setMINWIDTH(final int MINWIDTH) {
   this.MINWIDTH = MINWIDTH;
   if (r != null && r.width < MINWIDTH) r.width = MINWIDTH;
 }
Пример #4
0
 public void setMINHEIGHT(final int MINHEIGHT) {
   this.MINHEIGHT = MINHEIGHT;
   if (r != null && r.height < MINHEIGHT) r.height = MINHEIGHT;
 }
Пример #5
0
 public void move(final int x, final int y) {
   r.setLocation(x, y);
 }
Пример #6
0
 public void setBounds(int x, int y, int w, int h) {
   r.setBounds(x, y, Math.max(w, MINWIDTH), Math.max(h, MINHEIGHT));
 }