Package gov.nasa.arc.mct.plot.settings.PlotConstants

Examples of gov.nasa.arc.mct.plot.settings.PlotConstants.PlotLineDrawingFlags


  /* (non-Javadoc)
   * @see gov.nasa.arc.mct.fastplot.settings.PlotConfiguration#getPlotLineDraw()
   */
  @Override
  public PlotLineDrawingFlags getPlotLineDraw() {
    return new PlotLineDrawingFlags(this.get(PlotConstants.DRAW_LINES,   Boolean.class),
                                this.get(PlotConstants.DRAW_MARKERS, Boolean.class));
  }
View Full Code Here


  }

  private PlotLineDrawingFlags getSelectedDrawingFlags() {
    boolean drawLines   = linesOnly.isSelected()   || markersAndLines.isSelected();
    boolean drawMarkers = markersOnly.isSelected() || markersAndLines.isSelected();
    return new PlotLineDrawingFlags(drawLines, drawMarkers);
  }
View Full Code Here

     
      linesOnly.setSelected(drawLines && !drawMarkers);
      markersOnly.setSelected(!drawLines && drawMarkers);
      markersAndLines.setSelected(drawLines && drawMarkers);
     
      cachedFlags = new PlotLineDrawingFlags(drawLines, drawMarkers);
      cachedConnectionType = settings.getPlotLineConnectionType();
     
      direct.setSelected(cachedConnectionType == PlotLineConnectionType.DIRECT);
      step.setSelected(cachedConnectionType == PlotLineConnectionType.STEP_X_THEN_Y);
    }   
View Full Code Here



  @Override
  public boolean isDirty() {
    PlotLineDrawingFlags selected = getSelectedDrawingFlags();
    return cachedFlags.drawLine()    != selected.drawLine()    ||
           cachedFlags.drawMarkers() != selected.drawMarkers() ||
           cachedConnectionType      != getSelectedConnectionType();
  }
View Full Code Here

TOP

Related Classes of gov.nasa.arc.mct.plot.settings.PlotConstants.PlotLineDrawingFlags

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.