Examples of PlotLineDrawingFlags


Examples of gov.nasa.arc.mct.fastplot.bridge.PlotConstants.PlotLineDrawingFlags

                for (YAxisMaximumLocationSetting yMax : YAxisMaximumLocationSetting.values()) {
                  if (orientation != AxisOrientationSetting.Z_AXIS_AS_TIME) { // Not compatible with PlotterPlot
                    PlotSettings p = new PlotSettings();
                    p.setOrdinalPositionForStackedPlots(ordinal);
                    p.setPinTimeAxis(pin);
                    p.setPlotLineDraw(new PlotLineDrawingFlags(true, drawMarkers));
                    p.setAxisOrientationSetting(orientation);
                    p.setPlotLineConnectionType(connection);
                    p.setXAxisMaximumLocation(xMax);
                    p.setYAxisMaximumLocation(yMax);
                    l.add(new Object[]{p});
View Full Code Here

Examples of gov.nasa.arc.mct.fastplot.bridge.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

Examples of gov.nasa.arc.mct.fastplot.bridge.PlotConstants.PlotLineDrawingFlags

  }

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

Examples of gov.nasa.arc.mct.fastplot.bridge.PlotConstants.PlotLineDrawingFlags

     
      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

Examples of gov.nasa.arc.mct.fastplot.bridge.PlotConstants.PlotLineDrawingFlags



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

Examples of gov.nasa.arc.mct.fastplot.bridge.PlotConstants.PlotLineDrawingFlags

    PinSupport pins = new PinSupport();
   
    Mockito.when(plotAbstraction.getCurrentMCTTime()).thenReturn(new GregorianCalendar().getTimeInMillis());
    Mockito.when(plotAbstraction.getTimeAxis()).thenReturn(new Axis());
    Mockito.when(plotAbstraction.getTimeAxisUserPin()).thenReturn(pins.createPin());
    Mockito.when(plotAbstraction.getPlotLineDraw()).thenReturn(new PlotLineDrawingFlags(true,false));

    PlotSettings settings = new PlotSettings();
    settings.setAxisOrientationSetting(AxisOrientationSetting.X_AXIS_AS_TIME);
    settings.setMaxNonTime(100);
    settings.setMinNonTime(0);
View Full Code Here

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

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

  }

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

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

     
      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

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



  @Override
  public boolean isDirty() {
    PlotLineDrawingFlags selected = getSelectedDrawingFlags();
    return cachedFlags.drawLine()    != selected.drawLine()    ||
           cachedFlags.drawMarkers() != selected.drawMarkers() ||
           cachedConnectionType      != getSelectedConnectionType();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.