Package org.krysalis.jcharts.properties.util

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


  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 );

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

    ChartFont titleFont = new ChartFont( new Font( "Georgia Negreta cursiva", Font.PLAIN, 14 ), Color.black );
    this.chartProperties.setTitleFont( titleFont );

    this.barChartProperties = new BarChartProperties();
  }
View Full Code Here


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

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

    ChartFont titleFont = new ChartFont( new Font( "Georgia Negreta cursiva", Font.PLAIN, 14 ), Color.black );
    this.chartProperties.setTitleFont( titleFont );


    Stroke[] strokes = {LineChartProperties.DEFAULT_LINE_STROKE};
    Shape[] shapes = {PointChartProperties.SHAPE_DIAMOND};
View Full Code Here

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

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

    DataAxisProperties dataAxisProperties = (DataAxisProperties) axisProperties.getYAxisProperties();

    try
    {
      dataAxisProperties.setUserDefinedScale( -3000, 3000 );
    }
    catch( PropertyException propertyException )
    {
      propertyException.printStackTrace();
    }

    dataAxisProperties.setRoundToNearest( 2 );

    ChartFont titleFont = new ChartFont( new Font( "Georgia Negreta cursiva", Font.PLAIN, 14 ), Color.black );
    this.chartProperties.setTitleFont( titleFont );

    this.barChartProperties = new BarChartProperties();

    ValueLabelRenderer valueLabelRenderer = new ValueLabelRenderer( false, false, true, -1 );
View Full Code Here

    }


    Font font= new Font( this.fontCombo.getSelected(), this.styleCombo.getSelectedIndex(), Integer.parseInt( this.size.getText() ) );
//todo Paint implementation?
      ChartFont chartFont= new ChartFont( font, Color.black );
    return chartFont;
  }
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

    legendProperties = new LegendProperties();
    chartProperties = new ChartProperties();
    axisProperties = new AxisProperties(false);

    ChartFont axisScaleFont = new ChartFont(new Font("Arial Narrow", Font.PLAIN, 10), Color.black);
    axisProperties.getXAxisProperties().setScaleChartFont(axisScaleFont);
    axisProperties.getYAxisProperties().setScaleChartFont(axisScaleFont);

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

    ChartFont titleFont = new ChartFont(new Font("Georgia Negreta cursiva", Font.PLAIN, 15), Color.black);
    chartProperties.setTitleFont(titleFont);

    //On fixe la marge avec le cadre
    // Set the margin within the frame
    chartProperties.setEdgePadding(2f);

    //On met le graphe sur un fond gris clair
    // Set the chart against a plain grey background
    axisProperties.setBackgroundPaint(new Color (245, 245, 245));

    //Param�trage de la bo�te de l�gende
    //Parameters for the legend box
    //legendProperties.setPlacement(LegendAreaProperties.RIGHT);
    //legendProperties.setNumColumns(1);
    //legendProperties.setFont( new Font("Arial Narrow", Font.PLAIN, 13) );
    //legendProperties.setFontPaint(Color.black);
    ChartFont legendFont = new ChartFont(new Font("Arial Narrow", Font.PLAIN, 13), Color.black);
    legendProperties.setChartFont(legendFont);
    legendProperties.setChartPadding(10);

    //Arrondi � la puissance 10
    //Round up to the power of 10
View Full Code Here

      //magnitude greater
      if (maxDataClustAbs>10*maxDataLineAbs) {   
        axisProperties.getYAxisProperties().setShowRightAxis(true);
        secondScale=Math.round(maxDataClustAbs/(maxDataLineAbs));
        axisProperties.getYAxisProperties().setSecondScaleRight((float) (secondScale) );
        ChartFont axisScaleFontRight = new ChartFont( new Font("Arial Narrow", Font.PLAIN, 10), Color.green.darker() );
        axisProperties.getYAxisProperties().setScaleChartFontRight( axisScaleFontRight );
      }

      //On v�rifie s'il y a des valeurs n�gatives
      // Check if there are negative numbers
View Full Code Here

    DataSeries dataSeries = new DataSeries( xAxisLabels, "Years", "Incidence", "Micro$oft At Work"  );
    dataSeries.addIAxisPlotDataSet( axisChartDataSet );

    ChartProperties chartProperties= new ChartProperties();
    chartProperties.setEdgePadding( 20 );
    chartProperties.setTitleFont( new ChartFont( new Font( "Georgia Negreta cursiva", Font.PLAIN, 14 ), Color.black ) );

    AxisProperties axisProperties= new AxisProperties( false );
    axisProperties.setXAxisLabelsAreVertical( true );
    axisProperties.getYAxisProperties().setShowGridLines( AxisTypeProperties.GRID_LINES_ALL );

    ChartFont scaleFont= new ChartFont( new Font( "Georgia Negreta cursiva", Font.PLAIN, 13 ), Color.black );
    axisProperties.getXAxisProperties().setScaleChartFont( scaleFont );
    axisProperties.getYAxisProperties().setScaleChartFont( scaleFont );

    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 );
View Full Code Here

    DataSeries dataSeries = new DataSeries( xAxisLabels, "Years", "Incidence", "Micro$oft At Work"  );
    dataSeries.addIAxisPlotDataSet( axisChartDataSet );

    ChartProperties chartProperties= new ChartProperties();
    chartProperties.setEdgePadding( 20 );
    chartProperties.setTitleFont( new ChartFont( new Font( "Georgia Negreta cursiva", Font.PLAIN, 14 ), Color.black ) );

    AxisProperties axisProperties= new AxisProperties( false );
    axisProperties.setXAxisLabelsAreVertical( true );
    axisProperties.getYAxisProperties().setShowGridLines( AxisTypeProperties.GRID_LINES_ALL );

    ChartFont scaleFont= new ChartFont( new Font( "Georgia Negreta cursiva", Font.PLAIN, 13 ), Color.black );
    axisProperties.getXAxisProperties().setScaleChartFont( scaleFont );
    axisProperties.getYAxisProperties().setScaleChartFont( scaleFont );

    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 );
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 );

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

    ChartFont titleFont = new ChartFont( new Font( "Georgia Negreta cursiva", Font.PLAIN, 14 ), Color.black );
    this.chartProperties.setTitleFont( titleFont );
  }
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.