Package org.krysalis.jcharts.axisChart.axis

Examples of org.krysalis.jcharts.axisChart.axis.YAxis


      this.xAxis.setAxisLabelsGroup( numericTagGroup );


      //---Y AXIS---------------------------------------------------------------------------
      AxisTypeProperties axisTypeProperties = this.getAxisProperties().getYAxisProperties();
      this.yAxis = new YAxis( this, axisChartDataProcessor.getNumberOfElementsInADataSet() );
      if( axisTypeProperties.showAxisLabels() )
      {
        TextTagGroup textTagGroup = new TextTagGroup( axisTypeProperties.getScaleChartFont(), fontRenderContext );

        //LOOP
        for( int i = 0; i < iDataSeries.getNumberOfAxisLabels(); i++ )
        {
          if( iDataSeries.getAxisLabel( i ) == null )
          {
            throw new ChartDataException( "None of the axis labels can be NULL." );
          }
          textTagGroup.addLabel( iDataSeries.getAxisLabel( i ) );
        }

        this.yAxis.setAxisLabelsGroup( textTagGroup );
      }
    }
    else
    {
      //---X AXIS---------------------------------------------------------------------------
      AxisTypeProperties axisTypeProperties = this.getAxisProperties().getXAxisProperties();
      this.xAxis = new XAxis( this, axisChartDataProcessor.getNumberOfElementsInADataSet() );
      if( axisTypeProperties.showAxisLabels() )
      {
        TextTagGroup textTagGroup = new TextTagGroup( axisTypeProperties.getScaleChartFont(), fontRenderContext );

        //LOOP
        for( int i = 0; i < iDataSeries.getNumberOfAxisLabels(); i++ )
        {
          if( iDataSeries.getAxisLabel( i ) == null )
          {
            throw new ChartDataException( "None of the axis labels can be NULL." );
          }
          textTagGroup.addLabel( iDataSeries.getAxisLabel( i ) );
        }

        this.xAxis.setAxisLabelsGroup( textTagGroup );
      }

      //---Y AXIS---------------------------------------------------------------------------
      DataAxisProperties dataAxisProperties = ( DataAxisProperties ) this.getAxisProperties().getYAxisProperties();
      this.yAxis = new YAxis( this, dataAxisProperties.getNumItems() );
      NumericTagGroup numericTagGroup= setupDataAxisProperties( this.yAxis, dataAxisProperties, axisChartDataProcessor, fontRenderContext );
      this.yAxis.setAxisLabelsGroup( numericTagGroup );
                        // Dual Y axis changes integrated CMC 25Aug03
                        // compute the labels of the right axis if necessary
                        if ( this.axisProperties.getYAxisProperties().getSecondScaleRight()!=1 )
View Full Code Here


      this.xAxis.setAxisLabelsGroup( numericTagGroup );


      //---Y AXIS---------------------------------------------------------------------------
      AxisTypeProperties axisTypeProperties = this.getAxisProperties().getYAxisProperties();
      this.yAxis = new YAxis( this, axisChartDataProcessor.getNumberOfElementsInADataSet() );
      if( axisTypeProperties.showAxisLabels() )
      {
        TextTagGroup textTagGroup = new TextTagGroup( axisTypeProperties.getScaleChartFont(), fontRenderContext );

        //LOOP
        for( int i = 0; i < iDataSeries.getNumberOfAxisLabels(); i++ )
        {
          if( iDataSeries.getAxisLabel( i ) == null )
          {
            throw new ChartDataException( "None of the axis labels can be NULL." );
          }
          textTagGroup.addLabel( iDataSeries.getAxisLabel( i ) );
        }

        this.yAxis.setAxisLabelsGroup( textTagGroup );
      }
    }
    else
    {
      //---X AXIS---------------------------------------------------------------------------
      AxisTypeProperties axisTypeProperties = this.getAxisProperties().getXAxisProperties();
      this.xAxis = new XAxis( this, axisChartDataProcessor.getNumberOfElementsInADataSet() );
      if( axisTypeProperties.showAxisLabels() )
      {
        TextTagGroup textTagGroup = new TextTagGroup( axisTypeProperties.getScaleChartFont(), fontRenderContext );

        //LOOP
        for( int i = 0; i < iDataSeries.getNumberOfAxisLabels(); i++ )
        {
          if( iDataSeries.getAxisLabel( i ) == null )
          {
            throw new ChartDataException( "None of the axis labels can be NULL." );
          }
          textTagGroup.addLabel( iDataSeries.getAxisLabel( i ) );
        }

        this.xAxis.setAxisLabelsGroup( textTagGroup );
      }

      //---Y AXIS---------------------------------------------------------------------------
      DataAxisProperties dataAxisProperties = ( DataAxisProperties ) this.getAxisProperties().getYAxisProperties();
      this.yAxis = new YAxis( this, dataAxisProperties.getNumItems() );
      NumericTagGroup numericTagGroup= setupDataAxisProperties( this.yAxis, dataAxisProperties, axisChartDataProcessor, fontRenderContext );
      this.yAxis.setAxisLabelsGroup( numericTagGroup );
                        // Dual Y axis changes integrated CMC 25Aug03
                        // compute the labels of the right axis if necessary
                        if ( this.axisProperties.getYAxisProperties().getSecondScaleRight()!=1 )
View Full Code Here

TOP

Related Classes of org.krysalis.jcharts.axisChart.axis.YAxis

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.