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