Examples of PlotSettings


Examples of gov.nasa.arc.mct.fastplot.settings.PlotSettings

    abstraction = new PlotView.Builder(ScatterPlot.class).plotSettings(settings).build();
  }
 
  @Test
  public void testScatterPlotMatchesSettingsViaPlotView() {
    PlotSettings s = new PlotSettings();
    PlotView basePlot = new PlotView.Builder(ScatterPlot.class).plotSettings(s).build();   
    Assert.assertTrue(basePlot.plotMatchesSetting(s));
  }
View Full Code Here

Examples of gov.nasa.arc.mct.fastplot.settings.PlotSettings

  }

 
  @Test
  public void testGetPlotAbstraction() {
    PlotSettings s = new PlotSettings();
    PlotView basePlot = new PlotView.Builder(ScatterPlot.class).plotSettings(s).build();   
    ScatterPlot p = new ScatterPlot();
    p.setPlotAbstraction(basePlot);
    Assert.assertEquals(p.getPlotAbstraction(), basePlot);
View Full Code Here

Examples of gov.nasa.arc.mct.fastplot.settings.PlotSettings

  private double oldMinNonTime = Double.POSITIVE_INFINITY;
  private double oldMaxNonTime = Double.NEGATIVE_INFINITY;


  public PlotterPlot() {
    super(new PlotSettings());
    plotPanel.setBackground(PlotConstants.DEFAULT_PLOT_FRAME_BACKGROUND_COLOR);
  }
View Full Code Here

Examples of gov.nasa.arc.mct.fastplot.settings.PlotSettings

 
  private Map<AxisVisibleOrientation, Collection<AbstractAxisBoundManager>> boundManagers =
    new HashMap<AxisVisibleOrientation, Collection<AbstractAxisBoundManager>>();
 
  public ScatterPlot() {
    this (new PlotSettings());
  }
View Full Code Here

Examples of gov.nasa.arc.mct.fastplot.settings.PlotSettings

  @Test
  public void testMinAlarmOnly() {
    // Create a simple in fix non time max and min modes with defined min/max bounds.
    long currentTime = 0;
   
    PlotSettings settings = new PlotSettings();
    settings.setNonTimeAxisSubsequentMinSetting(NonTimeAxisSubsequentBoundsSetting.FIXED);
    settings.setNonTimeAxisSubsequentMaxSetting(NonTimeAxisSubsequentBoundsSetting.FIXED);
    settings.setMaxNonTime(10);
    settings.setMinNonTime(0);
    settings.setMaxTime(currentTime + 3600000);
    settings.setMinTime(currentTime - 3600000);
   
    PlotView testPlot = new PlotView.Builder(PlotterPlot.class)
    .plotSettings(settings)
    .build()
    testPlot.setManifestation(mockPlotViewManifestation);
View Full Code Here

Examples of gov.nasa.arc.mct.fastplot.settings.PlotSettings

  @Test
  void testBothAlarms() {
    // Create a simple in fix non time max and min modes with defined min/max bounds.
    GregorianCalendar now = new GregorianCalendar();
   
    PlotSettings settings = new PlotSettings();
    settings.setNonTimeAxisSubsequentMinSetting(NonTimeAxisSubsequentBoundsSetting.FIXED);
    settings.setNonTimeAxisSubsequentMaxSetting(NonTimeAxisSubsequentBoundsSetting.FIXED);
    settings.setMaxNonTime(10.00);
    settings.setMinNonTime(0);
    settings.setMaxTime(now.getTimeInMillis() + 3600000);
    settings.setMinTime(now.getTimeInMillis() - 3600000);
   
    PlotView testPlot = new PlotView.Builder(PlotterPlot.class)
    .plotSettings(settings)
    .build();
     
View Full Code Here

Examples of gov.nasa.arc.mct.fastplot.settings.PlotSettings

 
 
  @Test void testAlarmsDontGoOffWhenNotInFixedOrSemiFixedMode() {
    // Create a simple in fix non time max and min modes with defined min/max bounds.
   
    PlotSettings settings = new PlotSettings();
    settings.setNonTimeAxisSubsequentMinSetting(NonTimeAxisSubsequentBoundsSetting.AUTO);
    settings.setNonTimeAxisSubsequentMaxSetting(NonTimeAxisSubsequentBoundsSetting.AUTO);
    settings.setMaxNonTime(10);
    settings.setMinNonTime(0);
   
    PlotView testPlot = new PlotView.Builder(PlotterPlot.class)
    .plotSettings(settings)
    .build()
    testPlot.setManifestation(mockPlotViewManifestation);
View Full Code Here

Examples of gov.nasa.arc.mct.fastplot.settings.PlotSettings

 
  @Test
  void testAlarmTransitionSquenceMaxFixedMode() {
    GregorianCalendar now = new GregorianCalendar();
   
    PlotSettings settings = new PlotSettings();
    settings.setNonTimeAxisSubsequentMinSetting(NonTimeAxisSubsequentBoundsSetting.FIXED);
    settings.setNonTimeAxisSubsequentMaxSetting(NonTimeAxisSubsequentBoundsSetting.FIXED);
    settings.setMaxNonTime(7.5);
    settings.setMinNonTime(0);
    settings.setMaxTime(now.getTimeInMillis() + 3600000);
    settings.setMinTime(now.getTimeInMillis() - 3600000);
   
    // Create a simple in fix non time max and min modes with defined min/max bounds.
    PlotView testPlot = new PlotView.Builder(PlotterPlot.class)
    .plotSettings(settings)
    .build();
View Full Code Here

Examples of gov.nasa.arc.mct.fastplot.settings.PlotSettings

 
  @Test
  void testAlarmTransitionSquenceMinFixedMode() {
    GregorianCalendar now = new GregorianCalendar();

    PlotSettings settings = new PlotSettings();
    settings.setNonTimeAxisSubsequentMinSetting(NonTimeAxisSubsequentBoundsSetting.FIXED);
    settings.setNonTimeAxisSubsequentMaxSetting(NonTimeAxisSubsequentBoundsSetting.SEMI_FIXED);
    settings.setMaxNonTime(10.01);
    settings.setMinNonTime(0);
    settings.setMaxTime(now.getTimeInMillis() + 3600000);
    settings.setMinTime(now.getTimeInMillis() - 3600000);
   
    PlotView testPlot = new PlotView.Builder(PlotterPlot.class)
    .plotSettings(settings)
    .build();
   
View Full Code Here

Examples of gov.nasa.arc.mct.fastplot.settings.PlotSettings

  @Test
  void testAlarmTransitionSquenceMaxSemiFixedMode() {
    // Create a simple in fix non time max and min modes with defined min/max bounds.
    GregorianCalendar now = new GregorianCalendar();
   
    PlotSettings settings = new PlotSettings();
    settings.setNonTimeAxisSubsequentMinSetting(NonTimeAxisSubsequentBoundsSetting.FIXED);
    settings.setNonTimeAxisSubsequentMaxSetting(NonTimeAxisSubsequentBoundsSetting.SEMI_FIXED);
    settings.setMaxNonTime(10.01);
    settings.setMinNonTime(0);
    settings.setMaxTime(now.getTimeInMillis() + 3600000);
    settings.setMinTime(now.getTimeInMillis() - 3600000);
   
    PlotView testPlot = new PlotView.Builder(PlotterPlot.class)
    .plotSettings(settings)
    .build()
    testPlot.setManifestation(mockPlotViewManifestation);
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.