Package gov.nasa.arc.mct.fastplot.settings

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


  }

  @Test
  public void testPlotMatchSettings(){   
   
    PlotConfiguration plotSettings = new PlotSettings();

    // Create a second set of settings with defaults...
    PlotConfiguration otherPlotSettings = new PlotSettings();
    // ...but explicitly make sure min/max times match
    // (these are defined relative to "now", resulting in intermittent test failures otherwise)
    otherPlotSettings.setMinTime(plotSettings.getMinTime());
    otherPlotSettings.setMaxTime(plotSettings.getMaxTime());
    PlotView basePlot = new PlotView.Builder(PlotterPlot.class).plotSettings(otherPlotSettings).build();

   
    Assert.assertTrue(basePlot.plotMatchesSetting(plotSettings));
   
View Full Code Here


      for (XAxisMaximumLocationSetting xAxisMax: XAxisMaximumLocationSetting.values()) {
        for (YAxisMaximumLocationSetting  yAxisMax: YAxisMaximumLocationSetting.values()) {
          for (TimeAxisSubsequentBoundsSetting timeSubsequent: TimeAxisSubsequentBoundsSetting.values()) {
            for (NonTimeAxisSubsequentBoundsSetting nonTimeMinSubsequent: NonTimeAxisSubsequentBoundsSetting.values()) {
              for (NonTimeAxisSubsequentBoundsSetting nonTimeMaxSubsequent: NonTimeAxisSubsequentBoundsSetting.values()) {
                PlotSettings settings = new PlotSettings();
                settings.setAxisOrientationSetting(axisO);
                settings.setYAxisMaximumLocation(yAxisMax);
                settings.setXAxisMaximumLocation(xAxisMax);
                settings.setTimeAxisSubsequentSetting(timeSubsequent);
                settings.setNonTimeAxisSubsequentMinSetting(nonTimeMinSubsequent);
                settings.setNonTimeAxisSubsequentMaxSetting(nonTimeMaxSubsequent);
                settings.setTimePadding(0.05);
                settings.setMinNonTime(0);
                settings.setMaxNonTime(10);
               
               
                PlotAbstraction coverage = new PlotView.Builder(PlotterPlot.class)
                .plotName("name")
                .timeAxisFontSize(10)
View Full Code Here

TOP

Related Classes of gov.nasa.arc.mct.fastplot.settings.PlotSettings

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.