Exemple #1
0
 public void refresh() {
   GraphData.Bounds bounds = panel_.getGraphBounds();
   if (fldXMin.getText().length() > 0
       && fldYMin.getText().length() > 0
       && fldXMax.getText().length() > 0
       && fldYMax.getText().length() > 0) {
     bounds.xMin = Double.parseDouble(fldXMin.getText());
     bounds.xMax = Double.parseDouble(fldXMax.getText());
     bounds.yMin = Double.parseDouble(fldYMin.getText());
     bounds.yMax = Double.parseDouble(fldYMax.getText());
   }
   panel_.setBounds(bounds);
   panel_.repaint();
 }
Exemple #2
0
 // This is a temporary hack to allow the setting of xlimits manually as the
 // auto identification is buggy. --Prashanth (14th May 2009)
 public void SetXLimits(double xmin, double xmax) {
   GraphData.Bounds bounds = panel_.getGraphBounds();
   if (fldXMin.getText().length() > 0
       && fldYMin.getText().length() > 0
       && fldXMax.getText().length() > 0
       && fldYMax.getText().length() > 0) {
     bounds.xMin = xmin;
     bounds.xMax = xmax;
     bounds.yMin = Double.parseDouble(fldYMin.getText());
     bounds.yMax = Double.parseDouble(fldYMax.getText());
   }
   panel_.setBounds(bounds);
   panel_.repaint();
 }