Package org.krysalis.jcharts.properties.util

Examples of org.krysalis.jcharts.properties.util.ChartFont


    legendProperties.setPlacement( (int) TestDataGenerator.getRandomNumber( 4 ) );

    fontSize=(int) TestDataGenerator.getRandomNumber( 6, 20 );
    font=ALL_FONTS[ (int) TestDataGenerator.getRandomNumber( ALL_FONTS.length ) ];
    font=font.deriveFont( (float) fontSize );
    legendProperties.setChartFont( new ChartFont( font, TestDataGenerator.getRandomPaint() ) );


    //---random between null and having a color.
    if( (int) TestDataGenerator.getRandomNumber( 2 ) == 0 )
    {
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

    AxisChart axisChart = new AxisChart( dataSeries, new ChartProperties(), new AxisProperties(), new LegendProperties(), width, height );
    super.exportImage( axisChart, "axisTitles" );

    AxisProperties axisProperties = new AxisProperties();
    ChartFont yAxisFont = new ChartFont( new Font( "Arial Narrow", Font.BOLD, 14 ), Color.blue );
    axisProperties.getYAxisProperties().setAxisTitleChartFont( yAxisFont );

    axisChart = new AxisChart( dataSeries, new ChartProperties(), axisProperties, new LegendProperties(), width, height );
    super.exportImage( axisChart, "axisTitleFont" );
  }
View Full Code Here

  /*****************************************************************************************/
  private void scaleFont() throws ChartDataException
  {
    AxisProperties axisProperties = new AxisProperties();
    ChartFont xScaleChartFont = new ChartFont( new Font( "Georgia Negreta cursiva", Font.PLAIN, 13 ), Color.blue );
    axisProperties.getXAxisProperties().setScaleChartFont( xScaleChartFont );
    super.exportImage( this.getChart( axisProperties ), "scaleFont" );
  }
View Full Code Here

    legendProperties.setPlacement( (int) TestDataGenerator.getRandomNumber( 4 ) );

    fontSize=(int) TestDataGenerator.getRandomNumber( 6, 20 );
    font=ALL_FONTS[ (int) TestDataGenerator.getRandomNumber( ALL_FONTS.length ) ];
    font=font.deriveFont( (float) fontSize );
    legendProperties.setChartFont( new ChartFont( font, TestDataGenerator.getRandomPaint() ) );


    //---random between null and having a color.
    if( (int) TestDataGenerator.getRandomNumber( 2 ) == 0 )
    {
View Full Code Here

        getY( index, 1 ) );

      Rectangle2D bounds = g.getFontMetrics().getStringBounds( label, g );

      // draw axis label
      ChartFont cfont = props.getTitleChartFont();
      if( cfont != null )
      {
        g.setFont( cfont.getFont() );

      }
      g.drawString(
        label,
        (int) ( getX( index + 1, 1 ) - bounds.getWidth() / 2 ),
View Full Code Here

TOP

Related Classes of org.krysalis.jcharts.properties.util.ChartFont

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.