Package gov.nasa.arc.mct.fastplot.view

Examples of gov.nasa.arc.mct.fastplot.view.Pinnable


   
  @Override
  public void actionPerformed(ActionEvent e) {
    if (pauseButton!=null && e.getSource() == pauseButton) {
      Axis timeAxis = plot.getPlotAbstraction().getTimeAxis();
      Pinnable timePin = plot.getPlotAbstraction().getTimeAxisUserPin();
      timePin.setPinned(!timePin.isPinned());
      plot.getPlotAbstraction().updateResetButtons();
      updatePinButton();
      // make the pause button behave as if the unpin time axis button was pressed
      if (!timeAxis.isPinned()) {
              plot.cornerResetButtonManager.informJumpToCurrentTimeSelected()
View Full Code Here


      assert syncTime != null;
      if(state) {
        plot.getPlotAbstraction().initiateGlobalTimeSync(syncTime);
      } else {
        GregorianCalendar time = syncTime;
        Pinnable pin = plot.getPlotAbstraction().createPin();
        pin.setPinned(true);
        plot.notifyGlobalTimeSyncFinished();
        syncTime = time;
        plot.getPlotAbstraction().showTimeSyncLine(syncTime);
        pin.setPinned(false);
      }
    }
  }
View Full Code Here

  public void testPauseCount() {
    PlotView testPlot = new PlotView.Builder(PlotterPlot.class).build();
    testPlot.setManifestation(mockPlotViewManifestation);

    Assert.assertFalse(testPlot.isPinned());
    Pinnable pin1 = testPlot.createPin();
    pin1.setPinned(true);
    Assert.assertTrue(testPlot.isPinned());
    Pinnable pin2 = testPlot.createPin();
    pin2.setPinned(true);
    Assert.assertTrue(testPlot.isPinned());
    pin1.setPinned(false);
    Assert.assertTrue(testPlot.isPinned());
    pin2.setPinned(false);
    Assert.assertFalse(testPlot.isPinned());
  }
View Full Code Here

TOP

Related Classes of gov.nasa.arc.mct.fastplot.view.Pinnable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.