Package org.krysalis.jcharts.properties

Examples of org.krysalis.jcharts.properties.LegendProperties


    ChartFont axisTitleFont= new ChartFont( new Font( "Arial Narrow", Font.PLAIN, 12 ), Color.black );
    axisProperties.getXAxisProperties().setAxisTitleChartFont( axisTitleFont );
    axisProperties.getYAxisProperties().setAxisTitleChartFont( axisTitleFont );

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

      return axisChart;
  }
View Full Code Here


  /**********************************************************************************************
   *
   **********************************************************************************************/
  public void init()
  {
    this.legendProperties = new LegendProperties();
    this.chartProperties = new ChartProperties();
    this.axisProperties = new AxisProperties( true );
    ChartFont axisScaleFont = new ChartFont( new Font( "Georgia Negreta cursiva", Font.PLAIN, 13 ), Color.black );
    axisProperties.getXAxisProperties().setScaleChartFont( axisScaleFont );
    axisProperties.getYAxisProperties().setScaleChartFont( axisScaleFont );
View Full Code Here

      yAxisProperties.setNumItems( 10 );
      yAxisProperties.setRoundToNearest( 1 );

      AxisProperties axisProperties = new AxisProperties( xAxisProperties, yAxisProperties );
      ChartProperties chartProperties = new ChartProperties();
      LegendProperties legendProperties = new LegendProperties();

      ScatterPlotAxisChart scatterPlotAxisChart = new ScatterPlotAxisChart( scatterPlotDataSeries,
                                                     chartProperties,
                                                     axisProperties,
                                                     legendProperties,
View Full Code Here

    String[] labels= { "BMW M5", "BMW M3", "Viper GTS-R", "Corvette Z06" };
    Paint[] paints= { Color.lightGray, Color.green, Color.blue, Color.red };

    PieChartDataSet pieChartDataSet= new PieChartDataSet( "Cars That Own", data, labels, paints, pieChart2DProperties );

    PieChart2D pieChart2D= new PieChart2D( pieChartDataSet, new LegendProperties(), new ChartProperties(), 400, 350 );
    super.exportImage( pieChart2D, name );
  }
View Full Code Here


  /*************************************************************************************************/
  private void basicLegend() throws Throwable
  {
    LegendProperties legendProperties= new LegendProperties();

    super.exportImage( this.getChart( legendProperties ), "legendBasic" );
  }
View Full Code Here


  /*************************************************************************************************/
  private void noLegend() throws Throwable
  {
    LegendProperties legendProperties= null;

    super.exportImage( this.getChart( legendProperties ), "noLegend" );
  }
View Full Code Here


  /*************************************************************************************************/
  private void rightSide() throws Throwable
  {
    LegendProperties legendProperties= new LegendProperties();
    legendProperties.setPlacement( LegendAreaProperties.RIGHT );

    super.exportImage( this.getChart( legendProperties ), "legendOnRight" );
  }
View Full Code Here


  /*************************************************************************************************/
  private void layout() throws Throwable
  {
    LegendProperties legendProperties= new LegendProperties();
    legendProperties.setPlacement( LegendAreaProperties.LEFT );
    legendProperties.setNumColumns( 1 );

    super.exportImage( this.getChart( legendProperties ), "oneColumn" );
  }
View Full Code Here


  /*************************************************************************************************/
  private void fonts() throws Throwable
  {
    LegendProperties legendProperties= new LegendProperties();
    legendProperties.setChartFont( new ChartFont( new Font( "Georgia Negreta cursiva", Font.PLAIN, 13 ), Color.red ) );

    super.exportImage( this.getChart( legendProperties ), "legendFonts" );
  }
View Full Code Here


  /*************************************************************************************************/
  private void backgroundPaint() throws Throwable
  {
    LegendProperties legendProperties= new LegendProperties();
    legendProperties.setBackgroundPaint( Color.lightGray );

    super.exportImage( this.getChart( legendProperties ), "legendBackgroundPaint" );
  }
View Full Code Here

TOP

Related Classes of org.krysalis.jcharts.properties.LegendProperties

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.