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

void edu::hws::jcm::draw::CoordinateRect::setLimits ( double  xmin,
double  xmax,
double  ymin,
double  ymax 
) [inline]

Set the limits on the CoordinteRect

Parameters:
xmin the minimum x-coordinate on the CoordinateRect
xmax the maximum x-coordinate on the CoordinateRect
ymin the minimum y-coordinate on the CoordinateRect
ymax the maximum y-coordinate on the CoordinateRect

Definition at line 175 of file CoordinateRect.java.

References changed, edu::hws::jcm::awt::Tie::check(), edu::hws::jcm::awt::Controller::compute(), getLimits(), onChange, and syncWith.

Referenced by edu::hws::jcm::draw::ScatterPlot::compute(), edu::hws::jcm::draw::DataPlot::compute(), CoordinateRect(), EpsilonDelta::doLoadExample(), equalizeAxes(), edu::hws::jcm::draw::Panner::mouseDragged(), restore(), setLimits(), GenericGraphApplet::setUpMainPanel(), zoomIn(), zoomInOnPixel(), zoomOut(), and zoomOutFromPixel().

                                                                             { 
      double[] oldLimits = getLimits();
      this.xmin = xmin;
      this.xmax = xmax;
      this.ymin = ymin;
      this.ymax = ymax;
      checkLimits();
      double[] newLimits = getLimits();
      if (oldLimits[0] == newLimits[0] && oldLimits[1] == newLimits[1] &&
             oldLimits[2] == newLimits[2] && oldLimits[3] == newLimits[3])
         return;
      changed = true;
      serialNumber++;
      if (syncWith != null)
         syncWith.check();
      if (onChange != null)
         onChange.compute();
      needsRedraw();
   }


Generated by  Doxygen 1.6.0   Back to index