Examples of IAxisPlotDataSet


Examples of org.krysalis.jcharts.chartData.interfaces.IAxisPlotDataSet

    }


    //---need to set the number of items on the scale in case there are no labels displayed
    Iterator iterator = axisChart.getIAxisDataSeries().getIAxisPlotDataSetIterator();
    IAxisPlotDataSet iAxisPlotDataSet = ( IAxisPlotDataSet ) iterator.next();
    this.numberOfElementsInADataSet= iAxisPlotDataSet.getNumberOfDataItems();


//todo does it make sense to do the legend label processing here?
    /*
    if( axisChart.hasLegend() )
View Full Code Here

Examples of org.krysalis.jcharts.chartData.interfaces.IAxisPlotDataSet

   *
   * @param iDataSeries
   ******************************************************************************************/
  private void processDataSet( IDataSeries iDataSeries )
  {
    IAxisPlotDataSet iAxisPlotDataSet;
    Iterator iterator = iDataSeries.getIAxisPlotDataSetIterator();

    //LOOP
    while( iterator.hasNext() )
    {
      iAxisPlotDataSet = ( IAxisPlotDataSet ) iterator.next();

      if( iAxisPlotDataSet.getChartType().isStacked() )
      {
        //---StockChartDataSet is NEVER stacked!!!!
        StackedDataProcessor.processData( ( IAxisChartDataSet ) iAxisPlotDataSet, this );
      }
      else
      {
        //---stock charts dont fit well here as the data comes in structured.
        //---in this case only care about the high and low; no need to search close, open, volume
        if( iAxisPlotDataSet.getChartType().equals( ChartType.STOCK ) )
        {
          StockDataProcessor.processData( ( IStockChartDataSet ) iAxisPlotDataSet, this );
        }
        else
        {
View Full Code Here

Examples of org.krysalis.jcharts.chartData.interfaces.IAxisPlotDataSet

   *
   * @throws PropertyException
   ******************************************************************************************/
  protected void overlayCharts() throws PropertyException, ChartDataException
  {
    IAxisPlotDataSet iAxisPlotDataSet;

    iAxisPlotDataSet = this.iAxisDataSeries.getIAxisPlotDataSet( ChartType.AREA_STACKED );
    if( iAxisPlotDataSet != null )
    {
      StackedAreaChart.render( this, ( IAxisChartDataSet ) iAxisPlotDataSet );
View Full Code Here

Examples of org.krysalis.jcharts.chartData.interfaces.IAxisPlotDataSet

    else
    {
      this.startTicksAtAxis= true;

      //---else, there are a couple of plots we do not start x-axis values at the y-axis
      IAxisPlotDataSet iAxisPlotDataSet;
      Iterator iterator= iAxisDataSeries.getIAxisPlotDataSetIterator();
//todo what about combo charts?
      while( iterator.hasNext() )
      {
        iAxisPlotDataSet= (IAxisPlotDataSet) iterator.next();
        if( iAxisPlotDataSet.getChartType().equals( ChartType.BAR )
          || iAxisPlotDataSet.getChartType().equals( ChartType.BAR_CLUSTERED )
          || iAxisPlotDataSet.getChartType().equals( ChartType.BAR_STACKED )
          || iAxisPlotDataSet.getChartType().equals( ChartType.LINE )
          || iAxisPlotDataSet.getChartType().equals( ChartType.POINT )
          || iAxisPlotDataSet.getChartType().equals( ChartType.STOCK ) )
        {
          this.startTicksAtAxis= false;
          break;
        }
      }
View Full Code Here

Examples of org.krysalis.jcharts.chartData.interfaces.IAxisPlotDataSet

    else
    {
      this.startTicksAtAxis= true;

      //---else, there are a couple of plots we do not start x-axis values at the y-axis
      IAxisPlotDataSet iAxisPlotDataSet;
      Iterator iterator= iAxisDataSeries.getIAxisPlotDataSetIterator();
//todo what about combo charts?
      while( iterator.hasNext() )
      {
        iAxisPlotDataSet= (IAxisPlotDataSet) iterator.next();
        if( iAxisPlotDataSet.getChartType().equals( ChartType.BAR )
          || iAxisPlotDataSet.getChartType().equals( ChartType.BAR_CLUSTERED )
          || iAxisPlotDataSet.getChartType().equals( ChartType.BAR_STACKED )
          || iAxisPlotDataSet.getChartType().equals( ChartType.LINE )
          || iAxisPlotDataSet.getChartType().equals( ChartType.POINT )
          || iAxisPlotDataSet.getChartType().equals( ChartType.STOCK ) )
        {
          this.startTicksAtAxis= false;
          break;
        }
      }
View Full Code Here

Examples of org.krysalis.jcharts.chartData.interfaces.IAxisPlotDataSet

    }


    //---need to set the number of items on the scale in case there are no labels displayed
    Iterator iterator = axisChart.getIAxisDataSeries().getIAxisPlotDataSetIterator();
    IAxisPlotDataSet iAxisPlotDataSet = ( IAxisPlotDataSet ) iterator.next();
    this.numberOfElementsInADataSet= iAxisPlotDataSet.getNumberOfDataItems();


//todo does it make sense to do the legend label processing here?
    /*
    if( axisChart.hasLegend() )
View Full Code Here

Examples of org.krysalis.jcharts.chartData.interfaces.IAxisPlotDataSet

   *
   * @param iDataSeries
   ******************************************************************************************/
  private void processDataSet( IDataSeries iDataSeries )
  {
    IAxisPlotDataSet iAxisPlotDataSet;
    Iterator iterator = iDataSeries.getIAxisPlotDataSetIterator();

    //LOOP
    while( iterator.hasNext() )
    {
      iAxisPlotDataSet = ( IAxisPlotDataSet ) iterator.next();

      if( iAxisPlotDataSet.getChartType().isStacked() )
      {
        //---StockChartDataSet is NEVER stacked!!!!
        StackedDataProcessor.processData( ( IAxisChartDataSet ) iAxisPlotDataSet, this );
      }
      else
      {
        //---stock charts dont fit well here as the data comes in structured.
        //---in this case only care about the high and low; no need to search close, open, volume
        if( iAxisPlotDataSet.getChartType().equals( ChartType.STOCK ) )
        {
          StockDataProcessor.processData( ( IStockChartDataSet ) iAxisPlotDataSet, this );
        }
        else
        {
View Full Code Here

Examples of org.krysalis.jcharts.chartData.interfaces.IAxisPlotDataSet

   *
   * @throws PropertyException
   ******************************************************************************************/
  protected void overlayCharts() throws PropertyException, ChartDataException
  {
    IAxisPlotDataSet iAxisPlotDataSet;

    iAxisPlotDataSet = this.iAxisDataSeries.getIAxisPlotDataSet( ChartType.AREA_STACKED );
    if( iAxisPlotDataSet != null )
    {
      StackedAreaChart.render( this, ( IAxisChartDataSet ) iAxisPlotDataSet );
View Full Code Here

Examples of org.krysalis.jcharts.chartData.interfaces.IAxisPlotDataSet

   * @throws ChartDataException
   * @throws PropertyException
   ***************************************************************************************/
  public void validate() throws ChartDataException, PropertyException
  {
    IAxisPlotDataSet iAxisPlotDataSet;
    Iterator iterator= this.getIAxisPlotDataSetIterator();

    while( iterator.hasNext() )
    {
       iAxisPlotDataSet= (IAxisPlotDataSet) iterator.next();
      iAxisPlotDataSet.validate();

      if( iAxisPlotDataSet.getNumberOfDataItems() != this.sizeOfEachDataSet )
      {
        throw new ChartDataException( "All IAxisPlotDataSet implementations must contain an equal number of elements in a Combo Chart" );
      }
    }
  }
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.