Package org.krysalis.jcharts.axisChart.axis.scale

Examples of org.krysalis.jcharts.axisChart.axis.scale.ScaleCalculator


                                   AxisChartDataProcessor axisChartDataProcessor,
                                   FontRenderContext fontRenderContext )
  {
    if( dataAxisProperties.getScaleCalculator() == null )
    {
      ScaleCalculator s;

      if( dataAxisProperties.hasUserDefinedScale() )
      {
        s = new UserDefinedScaleCalculator( dataAxisProperties.getUserDefinedMinimumValue(), dataAxisProperties.getUserDefinedIncrement() );
      }
      else
      {
        s = new AutomaticScaleCalculator();
                                // Dual Y axis changes integrated CMC 25Aug03
//        s.setMaxValue( axisChartDataProcessor.getMaxValue() );
//        s.setMinValue( axisChartDataProcessor.getMinValue() );
                                if (this.axisProperties.getYAxisProperties().getMaxRightAxis()>0)
                                {
                                  s.setMaxValue( this.axisProperties.getYAxisProperties().getMaxRightAxis() );
                                }
                                else
                                {
                                  s.setMaxValue( axisChartDataProcessor.getMaxValue() );
                                }

                                                        if (this.axisProperties.getYAxisProperties().getMinRightAxis()<0)
                                {
                                  s.setMinValue( this.axisProperties.getYAxisProperties().getMinRightAxis() );
                                }
                                else
                                {
                                  s.setMinValue( axisChartDataProcessor.getMinValue() );
                                }
                        }
                        axis.setScaleCalculator( s );
    }
    else
View Full Code Here


                                   AxisChartDataProcessor axisChartDataProcessor,
                                   FontRenderContext fontRenderContext )
  {
    if( dataAxisProperties.getScaleCalculator() == null )
    {
      ScaleCalculator s;

      if( dataAxisProperties.hasUserDefinedScale() )
      {
        s = new UserDefinedScaleCalculator( dataAxisProperties.getUserDefinedMinimumValue(), dataAxisProperties.getUserDefinedIncrement() );
      }
      else
      {
        s = new AutomaticScaleCalculator();
                                // Dual Y axis changes integrated CMC 25Aug03
//        s.setMaxValue( axisChartDataProcessor.getMaxValue() );
//        s.setMinValue( axisChartDataProcessor.getMinValue() );
                                if (this.axisProperties.getYAxisProperties().getMaxRightAxis()>0)
                                {
                                  s.setMaxValue( this.axisProperties.getYAxisProperties().getMaxRightAxis() );
                                }
                                else
                                {
                                  s.setMaxValue( axisChartDataProcessor.getMaxValue() );
                                }

                                                        if (this.axisProperties.getYAxisProperties().getMinRightAxis()<0)
                                {
                                  s.setMinValue( this.axisProperties.getYAxisProperties().getMinRightAxis() );
                                }
                                else
                                {
                                  s.setMinValue( axisChartDataProcessor.getMinValue() );
                                }
                        }
                        axis.setScaleCalculator( s );
    }
    else
View Full Code Here

TOP

Related Classes of org.krysalis.jcharts.axisChart.axis.scale.ScaleCalculator

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.