Examples of YAxis


Examples of ofc4j.model.axis.YAxis

    } else {
      orientation = ORIENTATION_DEFAULT;
    }

    if ( HORIZONTAL_ORIENTATION.equals( orientation ) ) {
      YAxis yaxis = new YAxis();
      if ( labels != null ) {
        // BISERVER-3075: must reverse the category labels on hbar
        // charts due to bug in OFC2.
        String[] reversedLabels = new String[labels.length];
        int reversedLabelCount = 0;
        for ( int i = reversedLabels.length - 1; i >= 0; i-- ) {
          reversedLabels[reversedLabelCount++] = labels[i];
        }

        yaxis.setLabels( reversedLabels );
      }

      yaxis.setStroke( domainStroke );
      yaxis.setColour( domainColor );
      yaxis.setGridColour( domainGridColor );

      if ( domainMin != null && domainMax != null ) {
        yaxis.setRange( domainMin.intValue(), domainMax.intValue(), stepforchart );
      }

      chart.setYAxis( yaxis );
      return yaxis;
    } else {
View Full Code Here

Examples of ofc4j.model.axis.YAxis

      xaxis.setColour( rangeColor );
      xaxis.setGridColour( rangeGridColor );
      chart.setXAxis( xaxis );
      return xaxis;
    } else {
      YAxis yaxis = new YAxis();
      yaxis.setRange( rangeMin, rangeMax, stepforchart );
      yaxis.setStroke( rangeStroke );
      yaxis.setColour( rangeColor );
      yaxis.setGridColour( rangeGridColor );
      chart.setYAxis( yaxis );
      return yaxis;
    }
  }
View Full Code Here

Examples of ofc4j.model.axis.YAxis

    }
    if ( !maxDefined ) {
      rangeMax = rangeMin + ( chunksize * ( steps + 2 ) );
    }

    YAxis yaxis = new YAxis();
    yaxis.setRange( rangeMin, rangeMax, stepforchart );
    yaxis.setStroke( rangeStroke );
    yaxis.setColour( rangeColor );
    yaxis.setGridColour( rangeGridColor );
    chart.setYAxisRight( yaxis );
  }
View Full Code Here

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

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
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.