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

void edu::hws::jcm::draw::DisplayCanvas::add ( Drawable  d  )  [inline]

Add the specified Drawable item to the first CoordinateRect in this DisplayCanvas. If no CoordinateRect is associated with the canvas, one is created to fill the entire canvas.

Definition at line 172 of file DisplayCanvas.java.

References edu::hws::jcm::draw::CoordinateRect::add(), and addCoordinateRect().

Referenced by GenericGraphApplet::addCanvasBorder(), GenericGraphApplet::setUpCanvas(), EpsilonDelta::setUpCanvas(), and edu::hws::jcm::functions::TableFunctionInput::TableFunctionInput().

                               {
      if (coordinateRects == null)
         addCoordinateRect(new CoordinateRect());
      CoordinateRect c = ((CRData)coordinateRects.elementAt(0)).coords;
      c.add(d);
   }


Generated by  Doxygen 1.6.0   Back to index