Examples of ChartFont


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

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

        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
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.