Package gov.nasa.arc.mct.plot.bridge

Source Code of gov.nasa.arc.mct.plot.bridge.ScatterPlotLineFactory

package gov.nasa.arc.mct.plot.bridge;

import plotter.xy.ScatterXYPlotLine;
import plotter.xy.SimpleXYDataset;
import gov.nasa.arc.mct.plot.adapter.PlotLine;

public class ScatterPlotLineFactory implements PlotLineFactory {
  private PlotterPlot plot;
  private boolean     rotated;
 
  protected ScatterPlotLineFactory(PlotterPlot plot, boolean rotated) {
    this.plot = plot;
    this.rotated = rotated;
  }
 
  @Override
  public PlotLine createLine() {
    ScatterXYPlotLine plotLine = new ScatterXYPlotLine(plot.getXAxis(), plot.getYAxis());
    SimpleXYDataset data = new SimpleXYDataset(plotLine);
    return new PlotterPlotLine(plotLine, data, rotated);
  }
}
TOP

Related Classes of gov.nasa.arc.mct.plot.bridge.ScatterPlotLineFactory

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.