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