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

void edu::hws::jcm::draw::DrawString::setFrameWidth ( int  width  )  [inline]

Set the width, in pixels, of a frame to draw around the string. If the value is zero, no frame is drawn. The default value is zero. The the value is clamped to the range 0 to 25.

Definition at line 503 of file DrawString.java.

References frameWidth, and edu::hws::jcm::draw::Drawable::needsRedraw().

Referenced by EpsilonDelta::setUpCanvas().

                                        {
      if (width < 0)
         frameWidth = 0;
      else if (width > 25)
         frameWidth = 25;
      else
         frameWidth = width;
      needsRedraw();
   }


Generated by  Doxygen 1.6.0   Back to index