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

double edu::hws::jcm::draw::CoordinateRect::pixelToY ( int  y  )  [inline]

Convert a vertical pixel coordinate into a y-coordinate. (This is only valid when the CoordinateRect has actually been displayed. It is meant mainly to be used by Drawables in this CoordinateRect.)

Definition at line 444 of file CoordinateRect.java.

Referenced by edu::hws::jcm::draw::MouseTracker::checkInput(), edu::hws::jcm::draw::DraggablePoint::continueDrag(), edu::hws::jcm::functions::TableFunctionInput::mouseDragged(), edu::hws::jcm::functions::TableFunctionGraph::mouseDragged(), zoomInOnPixel(), and zoomOutFromPixel().

                                 {
      return ymax - ((y-top-gap)*(ymax-ymin)) / (height-2*gap-1);
   }


Generated by  Doxygen 1.6.0   Back to index