Examples of AbbreviatingPlotLabelingAlgorithm


Examples of gov.nasa.arc.mct.fastplot.utils.AbbreviatingPlotLabelingAlgorithm

    Assert.assertTrue(plotLabelingAlgorithm.getPanelOrWindowTitle().equals(panelOrWindowTitleTest));
   
    plotLabelingAlgorithm.setCanvasPanelTitle(canvasPanelTitleTest);
    Assert.assertTrue(plotLabelingAlgorithm.getCanvasPanelTitle().equals(canvasPanelTitleTest));
   
    LegendEntry testEntry = new LegendEntry(Color.white, Color.white, new Font("Arial", Font.PLAIN, 12), new AbbreviatingPlotLabelingAlgorithm());
    testEntry.setPlot(new LinearXYPlotLine(new LinearXYAxis(XYDimension.X), new LinearXYAxis(XYDimension.Y), XYDimension.X));
   
    // Empty string.
    testEntry.setBaseDisplayName("");
    Assert.assertTrue(testEntry.getBaseDisplayNameLabel().equalsIgnoreCase(""));
View Full Code Here

Examples of gov.nasa.arc.mct.fastplot.utils.AbbreviatingPlotLabelingAlgorithm

   
    XYAxis xAxis = plotView.getXAxis();
    XYAxis yAxis = plotView.getYAxis();
    LinearXYPlotLine plot = new LinearXYPlotLine(xAxis, yAxis, XYDimension.X);
    Font font = new Font("Arial", Font.PLAIN, 10);
    LegendEntry legend = new LegendEntry(Color.white,  Color.white, font, new AbbreviatingPlotLabelingAlgorithm());
    legend.setPlot(plot);
    PlotDataSeries data = new PlotDataSeries(testPlot, "test", Color.white);
        data.setLegend(legend);   
    Assert.assertEquals(data.getColor(), Color.white);
    data.setPlottingColor(Color.black);
View Full Code Here

Examples of gov.nasa.arc.mct.fastplot.utils.AbbreviatingPlotLabelingAlgorithm

        return viewProps;
      }
    };
    PlotView thePlot = new PlotView.Builder(PlotterPlot.class).build();
   
    AbbreviatingPlotLabelingAlgorithm plotLabelingAlgorithm = new AbbreviatingPlotLabelingAlgorithm();
    final String baseDisplayName = "DSCU PUI1";
    plotLabelingAlgorithm.setCanvasPanelTitle("PUI123");
    plotLabelingAlgorithm.setPanelOrWindowTitle("DSCU");
   
    panel.setPlot(thePlot);
    thePlot.setManifestation(panel);
    Assert.assertEquals(panel.getPlot(), thePlot);
   
View Full Code Here

Examples of gov.nasa.arc.mct.fastplot.utils.AbbreviatingPlotLabelingAlgorithm

  public void testNamingContext() throws Exception{
    PlotViewManifestation manifestation = new PlotViewManifestation(mockComponent, new ViewInfo(PlotViewManifestation.class,"",ViewType.OBJECT));
   
    Field f = PlotViewManifestation.class.getDeclaredField("plotLabelingAlgorithm");
    f.setAccessible(true);
    f.set(manifestation, new AbbreviatingPlotLabelingAlgorithm() {
      @Override
      public void setCanvasContextTitleList(List<String> s) { if(!s.isEmpty()) naming = s.get(0); }
      public void setPanelContextTitleList(List<String> s) { if(!s.isEmpty()) naming = s.get(0); }
    });
   
View Full Code Here

Examples of gov.nasa.arc.mct.fastplot.utils.AbbreviatingPlotLabelingAlgorithm

        Color.BLACK, Color.BLACK,
        "", Color.BLACK,
        Color.BLACK, 10,
        false, false,
        false, abstraction,
        new AbbreviatingPlotLabelingAlgorithm());
  }
View Full Code Here

Examples of gov.nasa.arc.mct.fastplot.utils.AbbreviatingPlotLabelingAlgorithm

    settings.setMaxTime(1000);
   
    thePlot = new PlotView.Builder(PlotterPlot.class).
          numberOfSubPlots(PLOT_COUNT).
          plotSettings(settings).
          plotLabelingAlgorithm(new AbbreviatingPlotLabelingAlgorithm()).build();
   
    thePlot.setManifestation(mockPlotUser);
   
    smallData = new TreeMap<Long, Double>();
    midData = new TreeMap<Long, Double>();
View Full Code Here

Examples of gov.nasa.arc.mct.fastplot.utils.AbbreviatingPlotLabelingAlgorithm

  private AbbreviatingPlotLabelingAlgorithm labelingAlgorithm;
 
  @BeforeMethod
  void setUp() {
    MockitoAnnotations.initMocks(this);
    labelingAlgorithm = new AbbreviatingPlotLabelingAlgorithm();
  }
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.