Exemple #1
0
 private void drag(WebPlotView pv, ScreenPt spt) {
   WebPlot plot = pv.getPrimaryPlot();
   _mouseInfo.setEnableAllPersistent(true);
   _mouseInfo.setEnableAllExclusive(false);
   _currentPt = plot.getImageWorkSpaceCoords(spt);
   _dataConnect.setData(makeSelectedObj(plot));
   _drawMan.redraw();
 }
Exemple #2
0
 private void changeMode(Mode newMode) {
   _mode = newMode;
   switch (_mode) {
     case SELECT:
       setIconProperty(_onIcon);
       _drawMan.setHelp(_selHelpText);
       addDrawMan();
       _drawMan.showMouseHelp(getPlotView());
       break;
     case EDIT:
       setIconProperty(_onIcon);
       _drawMan.setHelp(_editHelpText);
       _drawMan.showMouseHelp(getPlotView());
       addDrawMan();
       break;
     case OFF:
       if (_drawMan != null) removeDrawMan();
       setIconProperty(_offIcon);
       break;
     default:
       WebAssert.argTst(false, "only support for SelectType of SELECT or EDIT");
       break;
   }
 }
Exemple #3
0
 private void clearPlotViews() {
   List<MiniPlotWidget> mpwList = getGroupActiveList();
   for (MiniPlotWidget mpw : mpwList) {
     _drawMan.removePlotView(mpw.getPlotView());
   }
 }
Exemple #4
0
 private void addDrawMan() {
   List<MiniPlotWidget> mpwList = getGroupActiveList();
   for (MiniPlotWidget mpw : mpwList) _drawMan.addPlotView(mpw.getPlotView());
 }
Exemple #5
0
 private void removeDrawMan() {
   _drawMan.clear();
   _dataConnect.setData(null);
 }