Esempio n. 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);
 }
Esempio n. 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);
 }
Esempio n. 3
0
 public void setMINWIDTH(final int MINWIDTH) {
   this.MINWIDTH = MINWIDTH;
   if (r != null && r.width < MINWIDTH) r.width = MINWIDTH;
 }
Esempio n. 4
0
 public void setMINHEIGHT(final int MINHEIGHT) {
   this.MINHEIGHT = MINHEIGHT;
   if (r != null && r.height < MINHEIGHT) r.height = MINHEIGHT;
 }
Esempio n. 5
0
 public void move(final int x, final int y) {
   r.setLocation(x, y);
 }
Esempio n. 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));
 }