Package org.krysalis.jcharts.imageMap

Examples of org.krysalis.jcharts.imageMap.RectMapArea


          String label = null;
          if( axisChart.getYAxis().getAxisLabelsGroup() != null )
          {
            label = axisChart.getYAxis().getAxisLabelsGroup().getTextTag( imageMapLabelIndex ).getText();
          }
          axisChart.getImageMap().addImageMapArea( new RectMapArea( rectangle,
                                                 iAxisChartDataSet.getValue( j, i ),
                                                 label,
                                                 iAxisChartDataSet.getLegendLabel( j ) ) );
        }
View Full Code Here


          String label = null;
          if( axisChart.getXAxis().getAxisLabelsGroup() != null )
          {
            label = axisChart.getXAxis().getAxisLabelsGroup().getTextTag( i ).getText();
          }
          axisChart.getImageMap().addImageMapArea( new RectMapArea( rectangle,
                                                 iAxisChartDataSet.getValue( j, i ),
                                                 label,
                                                 iAxisChartDataSet.getLegendLabel( j ) ) );
        }
View Full Code Here

              else
              {
                label= null;
              }

              axisChart.getImageMap().addImageMapArea( new RectMapArea( rectangle,
                                                     iAxisChartDataSet.getValue( j, i ),
                                                     label,
                                                     iAxisChartDataSet.getLegendLabel( j ) ) );
            }
          }
View Full Code Here

              else
              {
                label= null;
              }

              axisChart.getImageMap().addImageMapArea( new RectMapArea( rectangle,
                                                     iAxisChartDataSet.getValue( j, i ),
                                                     label,
                                                     iAxisChartDataSet.getLegendLabel( j ) ) );
            }
          }
View Full Code Here

          }

          //---if we are generating an ImageMap, store the image coordinates
          if( axisChart.getGenerateImageMapFlag() )
          {
            RectMapArea rectMapArea= createImageMapArea( axisChart.getYAxis().getAxisLabelsGroup(),
                                          imageMapLabelIndex,
                                          rectangle,
                                          iAxisChartDataSet.getValue( 0, i ),
                                          iAxisChartDataSet.getLegendLabel( 0 ) );
            axisChart.getImageMap().addImageMapArea( rectMapArea );
           
            imageMapLabelIndex--;
          }
        }
      }
      else
      {
        //---else, value is zero.

        //---if we are generating an ImageMap, store the image coordinates
        if( axisChart.getGenerateImageMapFlag() )
        {
          //---check if zero scale line is visible
          //---make sure zero is even visible on the scale.
          //---If zero is not visible on scale nothing will be clickable for that item
          if( axisChart.getXAxis().getScaleCalculator().getMaxValue() >= 0
              && axisChart.getXAxis().getScaleCalculator().getMinValue() <= 0 )
          {
            rectangle.x = startingX;
            rectangle.width = 1;
             
            RectMapArea rectMapArea = createImageMapArea( axisChart.getYAxis().getAxisLabelsGroup(),
                                            imageMapLabelIndex,
                                            rectangle,
                                            iAxisChartDataSet.getValue( 0, i ),
                                            iAxisChartDataSet.getLegendLabel( 0 ) );
View Full Code Here

        }

        //---even if the bar is not visible, we still need to generate an ImageMapArea
        if( axisChart.getGenerateImageMapFlag() )
        {
          RectMapArea rectMapArea = createImageMapArea( axisChart.getXAxis().getAxisLabelsGroup(),
                                          i,
                                          rectangle,
                                          iAxisChartDataSet.getValue( 0, i ),
                                          iAxisChartDataSet.getLegendLabel( 0 ) );

          axisChart.getImageMap().addImageMapArea( rectMapArea );
        }
      }
      else
      {
        //---if we are generating an ImageMap, store the image coordinates
        if( axisChart.getGenerateImageMapFlag() )
        {
          //---make sure zero is even visible on the scale.
          //---If zero is not visible on scale nothing will be clickable for that item
          if( axisChart.getYAxis().getScaleCalculator().getMaxValue() >= 0
              && axisChart.getYAxis().getScaleCalculator().getMinValue() <= 0 )
          {
            rectangle.y = startingY;
            rectangle.height = 1;
             
            RectMapArea rectMapArea = createImageMapArea( axisChart.getXAxis().getAxisLabelsGroup(),
                                            i,
                                            rectangle,
                                            iAxisChartDataSet.getValue( 0, i ),
                                            iAxisChartDataSet.getLegendLabel( 0 ) );
View Full Code Here

    else
    {
      label = "";
    }

    return new RectMapArea( rectangle, value, label, legendLabel );
  }
View Full Code Here

          String label = null;
          if( axisChart.getYAxis().getAxisLabelsGroup() != null )
          {
            label = axisChart.getYAxis().getAxisLabelsGroup().getTextTag( imageMapLabelIndex ).getText();
          }
          axisChart.getImageMap().addImageMapArea( new RectMapArea( rectangle,
                                                 iAxisChartDataSet.getValue( j, i ),
                                                 label,
                                                 iAxisChartDataSet.getLegendLabel( j ) ) );
        }
View Full Code Here

          String label = null;
          if( axisChart.getXAxis().getAxisLabelsGroup() != null )
          {
            label = axisChart.getXAxis().getAxisLabelsGroup().getTextTag( i ).getText();
          }
          axisChart.getImageMap().addImageMapArea( new RectMapArea( rectangle,
                                                 iAxisChartDataSet.getValue( j, i ),
                                                 label,
                                                 iAxisChartDataSet.getLegendLabel( j ) ) );
        }
View Full Code Here

              else
              {
                label= null;
              }

              axisChart.getImageMap().addImageMapArea( new RectMapArea( rectangle,
                                                     iAxisChartDataSet.getValue( j, i ),
                                                     label,
                                                     iAxisChartDataSet.getLegendLabel( j ) ) );
            }
          }
View Full Code Here

TOP

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

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.