Logo Search packages:      
Sourcecode: wims version File versions  Download package

synchronized void edu::hws::jcm::draw::CoordinateRect::draw ( Graphics  g,
int  left,
int  top,
int  width,
int  height 
) [inline]

Draw in specified rect. This is not ordinarily called directly.

Definition at line 756 of file CoordinateRect.java.

References badData(), changed, and doDraw().

                                                                                       {
      if (badData()) {
         g.setColor(Color.red);
         g.drawRect(left,top,width-1,height-1);
         g.drawString("(undefined limits)",left+6,top+15);
      }
      if (changed || this.left != left || this.top != top 
                               || this.width != width || this.height != height) {
         this.width = width;
         this.height = height;
         this.left = left;
         this.top = top;
         checkLimits();
         changed = true;
      }
      doDraw(g);
      changed = false;
   }


Generated by  Doxygen 1.6.0   Back to index