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

double edu::hws::jcm::draw::CoordinateRect::pixelToX ( int  h  )  [inline]

Convert a horizontal pixel coordinate into an x-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 434 of file CoordinateRect.java.

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

      return xmin + ((h-left-gap)*(xmax-xmin)) / (width-2*gap-1);

Generated by  Doxygen 1.6.0   Back to index