Package org.krysalis.jcharts.axisChart

Examples of org.krysalis.jcharts.axisChart.AxisChart


   *
   * @param axisValueRenderEvent
   ***********************************************************************************/
  public void postRender( AxisValueRenderEvent axisValueRenderEvent )
  {
    AxisChart axisChart = (AxisChart) axisValueRenderEvent.getSource();
    TextTag valueTag;
    float x;
    float y;


    if( axisValueRenderEvent.getiAxisPlotDataSet() instanceof IAxisChartDataSet )
    {
      IAxisChartDataSet iAxisChartDataSet = (IAxisChartDataSet) axisValueRenderEvent.getiAxisPlotDataSet();
      double value = iAxisChartDataSet.getValue( axisValueRenderEvent.getDataSetIndex(), axisValueRenderEvent.getValueIndex() );

      valueTag = new TextTag( this.numberFormat.format( value ),
                      this.valueChartFont.getFont(),
                      this.derivedFont,
                      axisValueRenderEvent.getFontRenderContext() );

      if( axisChart.getAxisProperties().isPlotHorizontal() )
      {
        x = this.calculateXHorizontalPlot( axisValueRenderEvent, valueTag, (value < 0) );
        y = this.calculateYHorizontalPlot( axisValueRenderEvent, valueTag );
      }
      else
View Full Code Here


    ChartProperties chartProperties= new ChartProperties();
    AxisProperties axisProperties= new AxisProperties();
    LegendProperties legendProperties= new LegendProperties();

    AxisChart axisChart= new AxisChart( dataSeries, chartProperties, axisProperties, legendProperties, AxisChartsGuide.width, AxisChartsGuide.height );

    super.exportImage( axisChart, "basicChart" );
  }
View Full Code Here

    ChartProperties chartProperties= new ChartProperties();
    AxisProperties axisProperties= new AxisProperties();
    LegendProperties legendProperties= new LegendProperties();

    AxisChart axisChart= new AxisChart( dataSeries, chartProperties, axisProperties, legendProperties, AxisChartsGuide.width, AxisChartsGuide.height );

    super.exportImage( axisChart, "strokes" );
  }
View Full Code Here

    ChartProperties chartProperties= new ChartProperties();
    AxisProperties axisProperties= new AxisProperties();
    LegendProperties legendProperties= new LegendProperties();

    AxisChart axisChart= new AxisChart( dataSeries, chartProperties, axisProperties, legendProperties, AxisChartsGuide.width, AxisChartsGuide.height );

    super.exportImage( axisChart, "missingValues" );
  }
View Full Code Here

    xAxis.setUserDefinedScale( -300, 200 );
*/

    LegendProperties legendProperties = new LegendProperties();

    AxisChart axisChart = new AxisChart( dataSeries, chartProperties, axisProperties, legendProperties, 500, 400 );

    axisChart.renderWithImageMap();

    ChartTestDriver.exportImage( axisChart, "StackedBarChartTest.png" );
  }
View Full Code Here

    ChartProperties chartProperties= new ChartProperties();
    AxisProperties axisProperties= new AxisProperties();
    LegendProperties legendProperties= new LegendProperties();

    AxisChart axisChart= new AxisChart( dataSeries, chartProperties, axisProperties, legendProperties, AxisChartsGuide.width, AxisChartsGuide.height );

    super.exportImage( axisChart, "areaChart" );
  }
View Full Code Here

    ChartProperties chartProperties= new ChartProperties();
    AxisProperties axisProperties= new AxisProperties();
    LegendProperties legendProperties= new LegendProperties();

    AxisChart axisChart= new AxisChart( dataSeries, chartProperties, axisProperties, legendProperties, AxisChartsGuide.width, AxisChartsGuide.height );

    super.exportImage( axisChart, "stackedArea" );
  }
View Full Code Here

    yAxis.setRoundToNearest( 1 );
    //xAxis.setUserDefinedScale( -300, 200 );

    LegendProperties legendProperties = null; //new LegendProperties();

    AxisChart axisChart = new AxisChart( dataSeries, chartProperties, axisProperties, legendProperties, 500, 400 );

    ChartTestDriver.exportImage( axisChart, "ClusteredBarChartTest.png" );
  }
View Full Code Here

    ChartProperties chartProperties= new ChartProperties();
    AxisProperties axisProperties= new AxisProperties();
    LegendProperties legendProperties= new LegendProperties();

    AxisChart axisChart= new AxisChart( dataSeries, chartProperties, axisProperties, legendProperties, AxisChartsGuide.width, AxisChartsGuide.height );

    return axisChart;
  }
View Full Code Here

    dataSeries.addIAxisPlotDataSet( axisChartDataSet );

    ChartProperties chartProperties= new ChartProperties();
    AxisProperties axisProperties= new AxisProperties();
    LegendProperties legendProperties= new LegendProperties();
    AxisChart axisChart= new AxisChart( dataSeries, chartProperties, axisProperties, legendProperties, AxisChartsGuide.width, AxisChartsGuide.height );

    super.exportImage( axisChart, "barChart" );
  }
View Full Code Here

TOP

Related Classes of org.krysalis.jcharts.axisChart.AxisChart

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.