Example #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();
 }
Example #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;
   }
 }
Example #3
0
 private void clearPlotViews() {
   List<MiniPlotWidget> mpwList = getGroupActiveList();
   for (MiniPlotWidget mpw : mpwList) {
     _drawMan.removePlotView(mpw.getPlotView());
   }
 }
Example #4
0
 private void addDrawMan() {
   List<MiniPlotWidget> mpwList = getGroupActiveList();
   for (MiniPlotWidget mpw : mpwList) _drawMan.addPlotView(mpw.getPlotView());
 }
Example #5
0
 private void removeDrawMan() {
   _drawMan.clear();
   _dataConnect.setData(null);
 }