Package org.krysalis.jcharts.chartData.processors

Examples of org.krysalis.jcharts.chartData.processors.ScatterPlotDataProcessor


   *
   * @return AxisChartDataProcessor
   ********************************************************************************************/
  public AxisChartDataProcessor createAxisChartDataProcessor()
  {
    return new ScatterPlotDataProcessor();
  }
View Full Code Here


                                    DataAxisProperties dataAxisProperties,
                                    AxisChartDataProcessor axisChartDataProcessor,
                                    FontRenderContext fontRenderContext )
  {
    //---we know this is of this type
    ScatterPlotDataProcessor scatterPlotDataProcessor= (ScatterPlotDataProcessor) axisChartDataProcessor;

    if( dataAxisProperties.getScaleCalculator() == null )
    {
      ScaleCalculator s;

      if( dataAxisProperties.hasUserDefinedScale() )
      {
        s = new UserDefinedScaleCalculator( dataAxisProperties.getUserDefinedMinimumValue(), dataAxisProperties.getUserDefinedIncrement() );
      }
      else
      {
        s = new AutomaticScaleCalculator();
        if( axis instanceof XAxis )
        {
          s.setMaxValue( scatterPlotDataProcessor.getMaxValue() );
          s.setMinValue( scatterPlotDataProcessor.getMinValue() );
        }
        else
        {
          s.setMaxValue( scatterPlotDataProcessor.getyMax() );
          s.setMinValue( scatterPlotDataProcessor.getyMin() );
        }
      }

      axis.setScaleCalculator( s );
    }
    else
    {
      axis.setScaleCalculator( dataAxisProperties.getScaleCalculator() );

      if( axis instanceof XAxis )
      {
        axis.getScaleCalculator().setMaxValue( scatterPlotDataProcessor.getMaxValue() );
        axis.getScaleCalculator().setMinValue( scatterPlotDataProcessor.getMinValue() );
      }
      else
      {
        axis.getScaleCalculator().setMaxValue( scatterPlotDataProcessor.getyMax() );
        axis.getScaleCalculator().setMinValue( scatterPlotDataProcessor.getyMin() );
      }
    }

    axis.getScaleCalculator().setRoundingPowerOfTen( dataAxisProperties.getRoundToNearest() );
    axis.getScaleCalculator().setNumberOfScaleItems( dataAxisProperties.getNumItems() );
View Full Code Here

   *
   * @return AxisChartDataProcessor
   ********************************************************************************************/
  public AxisChartDataProcessor createAxisChartDataProcessor()
  {
    return new ScatterPlotDataProcessor();
  }
View Full Code Here

                                    DataAxisProperties dataAxisProperties,
                                    AxisChartDataProcessor axisChartDataProcessor,
                                    FontRenderContext fontRenderContext )
  {
    //---we know this is of this type
    ScatterPlotDataProcessor scatterPlotDataProcessor= (ScatterPlotDataProcessor) axisChartDataProcessor;

    if( dataAxisProperties.getScaleCalculator() == null )
    {
      ScaleCalculator s;

      if( dataAxisProperties.hasUserDefinedScale() )
      {
        s = new UserDefinedScaleCalculator( dataAxisProperties.getUserDefinedMinimumValue(), dataAxisProperties.getUserDefinedIncrement() );
      }
      else
      {
        s = new AutomaticScaleCalculator();
        if( axis instanceof XAxis )
        {
          s.setMaxValue( scatterPlotDataProcessor.getMaxValue() );
          s.setMinValue( scatterPlotDataProcessor.getMinValue() );
        }
        else
        {
          s.setMaxValue( scatterPlotDataProcessor.getyMax() );
          s.setMinValue( scatterPlotDataProcessor.getyMin() );
        }
      }

      axis.setScaleCalculator( s );
    }
    else
    {
      axis.setScaleCalculator( dataAxisProperties.getScaleCalculator() );

      if( axis instanceof XAxis )
      {
        axis.getScaleCalculator().setMaxValue( scatterPlotDataProcessor.getMaxValue() );
        axis.getScaleCalculator().setMinValue( scatterPlotDataProcessor.getMinValue() );
      }
      else
      {
        axis.getScaleCalculator().setMaxValue( scatterPlotDataProcessor.getyMax() );
        axis.getScaleCalculator().setMinValue( scatterPlotDataProcessor.getyMin() );
      }
    }

    axis.getScaleCalculator().setRoundingPowerOfTen( dataAxisProperties.getRoundToNearest() );
    axis.getScaleCalculator().setNumberOfScaleItems( dataAxisProperties.getNumItems() );
View Full Code Here

TOP

Related Classes of org.krysalis.jcharts.chartData.processors.ScatterPlotDataProcessor

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.