Package org.krysalis.jcharts.imageMap

Examples of org.krysalis.jcharts.imageMap.CircleMapArea


            else
            {
              label = null;
            }

            axisChart.getImageMap().addImageMapArea( new CircleMapArea( xMapCoordinate,
                                                    yAxisCoordinates[ i ][ j ],
                                                    iAxisChartDataSet.getValue( i, j ),
                                                    label,
                                                    iAxisChartDataSet.getLegendLabel( i ) ) );
          }
View Full Code Here


      //---if only a single value use a circle map
      //---IMAGE MAP
      if( pieChart2D.getImageMap() != null )
      {
        CircleMapArea circleMapArea = new CircleMapArea( xPieMiddle, yPieMiddle, pieChart2D.iPieChartDataSet.getValue( 0 ), null, pieChart2D.iPieChartDataSet.getLegendLabel( 0 ) );
        circleMapArea.setRadius( (int) pieChart2D.diameter );
        pieChart2D.getImageMap().addImageMapArea( circleMapArea );
      }

//      System.out.println( pieChart2D.pieLabels.getTextTag( 0 ).getText() );
View Full Code Here

      //---if only a single value use a circle map
      //---IMAGE MAP
      if( pieChart3D.getImageMap() != null )
      {
        CircleMapArea circleMapArea = new CircleMapArea( xPieMiddle, yPieMiddle, pieChart3D.iPieChartDataSet.getValue( 0 ), null, pieChart3D.iPieChartDataSet.getLegendLabel( 0 ) );
        circleMapArea.setRadius( (int) pieChart3D.diameter );
        pieChart3D.getImageMap().addImageMapArea( circleMapArea );
      }

//      System.out.println( pieChart3D.pieLabels.getTextTag( 0 ).getText() );
View Full Code Here

//System.out.println( "x= " + xAxisCoordinates[ dataSet ][ index ] + "  y= " + yAxisCoordinates[ dataSet ][ index ] );

          //---if we are generating an ImageMap, store the image coordinates
          if( scatterPlotAxisChart.getGenerateImageMapFlag() )
          {
            scatterPlotAxisChart.getImageMap().addImageMapArea( new CircleMapArea( xAxisCoordinates[ dataSet ][ index ],
                                                            yAxisCoordinates[ dataSet ][ index ],
                                                            iScatterPlotDataSet.getValue( dataSet, index ),
                                                            iScatterPlotDataSet.getLegendLabel( dataSet ) ) );
          }
        }
View Full Code Here

          else
          {
            label = null;
          }

          axisChart.getImageMap().addImageMapArea( new CircleMapArea( xPosition,
                                                  yPosition,
                                                  iAxisChartDataSet.getValue( dataSetIndex, i ),
                                                  label,
                                                  iAxisChartDataSet.getLegendLabel( dataSetIndex ) ) );
        }
View Full Code Here

      }

      //---if we are generating an ImageMap, store the image coordinates
      if( axisChart.getGenerateImageMapFlag() )
      {
        axisChart.getImageMap().addImageMapArea( new CircleMapArea( line.x1,
                                                line.y1,
                                                iStockChartDataSet.getLowValue( i ),
                                                label,
                                                iStockChartDataSet.getLegendLabel( StockChartDataType.LOW.getInt() ) ) );

        axisChart.getImageMap().addImageMapArea( new CircleMapArea( line.x2,
                                                line.y2,
                                                iStockChartDataSet.getHighValue( i ),
                                                label,
                                                iStockChartDataSet.getLegendLabel( StockChartDataType.HIGH.getInt() ) ) );
      }

      g2d.setPaint( iStockChartDataSet.getPaint( StockChartDataType.HIGH.getInt() ) );
      g2d.setStroke( stockChartProperties.getHiLowStroke() );
      g2d.draw( line );

      line.x1+=axisChart.getXAxis().getScalePixelWidth();
      line.x2=line.x1;

      if( openLine != null )
      {
        if( iStockChartDataSet.getOpenValue( i ) != Double.NaN )
        {
          openLine.y1= axisChart.getYAxis().computeAxisCoordinate( axisChart.getYAxis().getOrigin(),
                                                iStockChartDataSet.getOpenValue( i ),
                                                axisChart.getYAxis().getScaleCalculator().getMinValue() );
          openLine.y2=openLine.y1;

          g2d.setPaint( iStockChartDataSet.getPaint( StockChartDataType.OPEN.getInt() ) );
          g2d.setStroke( stockChartProperties.getOpenStroke() );
          g2d.draw( openLine );

          //---if we are generating an ImageMap, store the image coordinates
          if( axisChart.getGenerateImageMapFlag() )
          {
            axisChart.getImageMap().addImageMapArea( new CircleMapArea( openLine.x1,
                                                    openLine.y1,
                                                    iStockChartDataSet.getOpenValue( i ),
                                                    label,
                                                    iStockChartDataSet.getLegendLabel( StockChartDataType.OPEN.getInt() ) ) );
          }

          openLine.x1+=axisChart.getXAxis().getScalePixelWidth();
          openLine.x2+=axisChart.getXAxis().getScalePixelWidth();
        }
      }

      if( closeLine != null )
      {
        if( iStockChartDataSet.getOpenValue( i ) != Double.NaN )
        {
          closeLine.y1= axisChart.getYAxis().computeAxisCoordinate( axisChart.getYAxis().getOrigin(),
                                                 iStockChartDataSet.getCloseValue( i ),
                                                 axisChart.getYAxis().getScaleCalculator().getMinValue() );
          closeLine.y2=closeLine.y1;

          g2d.setPaint( iStockChartDataSet.getPaint( StockChartDataType.CLOSE.getInt() ) );
          g2d.setStroke( stockChartProperties.getCloseStroke() );
          g2d.draw( closeLine );

          //---if we are generating an ImageMap, store the image coordinates
          if( axisChart.getGenerateImageMapFlag() )
          {
            axisChart.getImageMap().addImageMapArea( new CircleMapArea( closeLine.x2,
                                                    closeLine.y2,
                                                    iStockChartDataSet.getCloseValue( i ),
                                                    label,
                                                    iStockChartDataSet.getLegendLabel( StockChartDataType.CLOSE.getInt() ) ) );
          }
View Full Code Here

//System.out.println( "x= " + xAxisCoordinates[ dataSet ][ index ] + "  y= " + yAxisCoordinates[ dataSet ][ index ] );

          //---if we are generating an ImageMap, store the image coordinates
          if( scatterPlotAxisChart.getGenerateImageMapFlag() )
          {
            scatterPlotAxisChart.getImageMap().addImageMapArea( new CircleMapArea( xAxisCoordinates[ dataSet ][ index ],
                                                            yAxisCoordinates[ dataSet ][ index ],
                                                            iScatterPlotDataSet.getValue( dataSet, index ),
                                                            iScatterPlotDataSet.getLegendLabel( dataSet ) ) );
          }
        }
View Full Code Here

          else
          {
            label = null;
          }

          axisChart.getImageMap().addImageMapArea( new CircleMapArea( xPosition,
                                                  yPosition,
                                                  iAxisChartDataSet.getValue( dataSetIndex, i ),
                                                  label,
                                                  iAxisChartDataSet.getLegendLabel( dataSetIndex ) ) );
        }
View Full Code Here

      }

      //---if we are generating an ImageMap, store the image coordinates
      if( axisChart.getGenerateImageMapFlag() )
      {
        axisChart.getImageMap().addImageMapArea( new CircleMapArea( line.x1,
                                                line.y1,
                                                iStockChartDataSet.getLowValue( i ),
                                                label,
                                                iStockChartDataSet.getLegendLabel( StockChartDataType.LOW.getInt() ) ) );

        axisChart.getImageMap().addImageMapArea( new CircleMapArea( line.x2,
                                                line.y2,
                                                iStockChartDataSet.getHighValue( i ),
                                                label,
                                                iStockChartDataSet.getLegendLabel( StockChartDataType.HIGH.getInt() ) ) );
      }

      g2d.setPaint( iStockChartDataSet.getPaint( StockChartDataType.HIGH.getInt() ) );
      g2d.setStroke( stockChartProperties.getHiLowStroke() );
      g2d.draw( line );

      line.x1+=axisChart.getXAxis().getScalePixelWidth();
      line.x2=line.x1;

      if( openLine != null )
      {
        if( iStockChartDataSet.getOpenValue( i ) != Double.NaN )
        {
          openLine.y1= axisChart.getYAxis().computeAxisCoordinate( axisChart.getYAxis().getOrigin(),
                                                iStockChartDataSet.getOpenValue( i ),
                                                axisChart.getYAxis().getScaleCalculator().getMinValue() );
          openLine.y2=openLine.y1;

          g2d.setPaint( iStockChartDataSet.getPaint( StockChartDataType.OPEN.getInt() ) );
          g2d.setStroke( stockChartProperties.getOpenStroke() );
          g2d.draw( openLine );

          //---if we are generating an ImageMap, store the image coordinates
          if( axisChart.getGenerateImageMapFlag() )
          {
            axisChart.getImageMap().addImageMapArea( new CircleMapArea( openLine.x1,
                                                    openLine.y1,
                                                    iStockChartDataSet.getOpenValue( i ),
                                                    label,
                                                    iStockChartDataSet.getLegendLabel( StockChartDataType.OPEN.getInt() ) ) );
          }

          openLine.x1+=axisChart.getXAxis().getScalePixelWidth();
          openLine.x2+=axisChart.getXAxis().getScalePixelWidth();
        }
      }

      if( closeLine != null )
      {
        if( iStockChartDataSet.getOpenValue( i ) != Double.NaN )
        {
          closeLine.y1= axisChart.getYAxis().computeAxisCoordinate( axisChart.getYAxis().getOrigin(),
                                                 iStockChartDataSet.getCloseValue( i ),
                                                 axisChart.getYAxis().getScaleCalculator().getMinValue() );
          closeLine.y2=closeLine.y1;

          g2d.setPaint( iStockChartDataSet.getPaint( StockChartDataType.CLOSE.getInt() ) );
          g2d.setStroke( stockChartProperties.getCloseStroke() );
          g2d.draw( closeLine );

          //---if we are generating an ImageMap, store the image coordinates
          if( axisChart.getGenerateImageMapFlag() )
          {
            axisChart.getImageMap().addImageMapArea( new CircleMapArea( closeLine.x2,
                                                    closeLine.y2,
                                                    iStockChartDataSet.getCloseValue( i ),
                                                    label,
                                                    iStockChartDataSet.getLegendLabel( StockChartDataType.CLOSE.getInt() ) ) );
          }
View Full Code Here

            else
            {
              label = null;
            }

            axisChart.getImageMap().addImageMapArea( new CircleMapArea( xMapCoordinate,
                                                    yAxisCoordinates[ i ][ j ],
                                                    iAxisChartDataSet.getValue( i, j ),
                                                    label,
                                                    iAxisChartDataSet.getLegendLabel( i ) ) );
          }
View Full Code Here

TOP

Related Classes of org.krysalis.jcharts.imageMap.CircleMapArea

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.