Package org.krysalis.jcharts.properties.util

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


  /*******************************************************************************************/
  private void chartBorder() throws Throwable
  {
    ChartProperties chartProperties= this.getChartProperties();

    ChartStroke borderStroke= new ChartStroke( new BasicStroke( 2.0f ), Color.red );
    chartProperties.setBorderStroke( borderStroke );

    AxisProperties axisProperties= new AxisProperties();
    axisProperties.setXAxisLabelsAreVertical( true );
    LegendProperties legendProperties= new LegendProperties();
View Full Code Here


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

    axisProperties.getYAxisProperties().setShowGridLines( AxisTypeProperties.GRID_LINES_NONE );
    axisProperties.getYAxisProperties().setAxisStroke( new ChartStroke( new BasicStroke( 1.5f ), Color.red ) );


    DataAxisProperties yAxis = (DataAxisProperties) axisProperties.getYAxisProperties();
    yAxis.setRoundToNearest( 1 );
    //xAxis.setUserDefinedScale( -300, 200 );
View Full Code Here

  public ChartStroke getChartStroke()
  {
    Stroke stroke= new BasicStroke( Float.valueOf( this.widthField.getText() ).floatValue(),
                          this.endCaps.getEndCapsConstant(),
                          this.lineJoins.getLineJoinsConstant() );
    return new ChartStroke( stroke, Color.BLACK );
    //TODO need to get the Paint
  }
View Full Code Here

  /******************************************************************************************/
  private void borderStroke() throws Throwable
  {
    PieChart2DProperties pieChart2DProperties= new PieChart2DProperties();
    pieChart2DProperties.setBorderChartStroke( new ChartStroke( new BasicStroke( 4f ), Color.black ) );
    this.outputChart( pieChart2DProperties, "pieChartBorderStroke" );
  }
View Full Code Here

//    axisProperties.setScaleFont( TestDataGenerator.getRandomFont( 12.0, 15.0 ) );
    //axisProperties.setScaleFontColor( TestDataGenerator.getRandomPaint() );

    //axisProperties.setAxisTitleFont( TestDataGenerator.getRandomFont( 6.0, 20.0 ) );

    axisProperties.getXAxisProperties().setAxisStroke( new ChartStroke( new BasicStroke( 1.5f ), TestDataGenerator.getRandomPaint() ) );
    axisProperties.getYAxisProperties().setAxisStroke( new ChartStroke( new BasicStroke( 1.5f ), TestDataGenerator.getRandomPaint() ) );


    //axisProperties.setBackgroundPaint( TestDataGenerator.getRandomPaint() );
  }
View Full Code Here

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

    ChartStroke borderStroke= new ChartStroke( new BasicStroke( 2.0f ), Color.blue );
    legendProperties.setBorderStroke( borderStroke );

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

  /******************************************************************************************/
  private void borderStroke() throws Throwable
  {
    PieChart3DProperties pieChart3DProperties= new PieChart3DProperties();
    pieChart3DProperties.setBorderChartStroke( new ChartStroke( new BasicStroke( 4f ), Color.black ) );
    this.outputChart( pieChart3DProperties, "pieChart3DBorderStroke" );
  }
View Full Code Here

  /******************************************************************************************/
  private void barOutlines() throws ChartDataException
  {
    BarChartProperties barChartProperties= new BarChartProperties();
    barChartProperties.setShowOutlinesFlag( true );
    ChartStroke outlineChartStroke= new ChartStroke( new BasicStroke( 2.0f ), Color.red );
    barChartProperties.setBarOutlineStroke( outlineChartStroke );

    AxisChart axisChart= this.getBarChart( barChartProperties );

    super.exportImage( axisChart, "barChartOutlines" );
View Full Code Here

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

    axisProperties.getYAxisProperties().setShowGridLines( AxisTypeProperties.GRID_LINES_ALL );
    axisProperties.getYAxisProperties().setAxisStroke( new ChartStroke( new BasicStroke( 1.5f ), Color.red ) );
      axisProperties.getYAxisProperties().setGridLineChartStroke( new ChartStroke( new BasicStroke( 1.5f ), Color.red ) );

    //axisProperties.setXAxisLabelsAreVertical( true );


    DataAxisProperties yAxis = (DataAxisProperties) axisProperties.getYAxisProperties();
View Full Code Here

   ******************************************************************************************/
  private static PieChartDataSet getPieChartDataSet( int numToCreate, int minValue, int maxValue ) throws ChartDataException
  {
    PieChart2DProperties properties = new PieChart2DProperties();
    //properties.setZeroDegreeOffset( (float) TestDataGenerator.getRandomNumber( 0, 500 ) );
    properties.setBorderChartStroke( new ChartStroke( new BasicStroke( 1.0f ), TestDataGenerator.getRandomPaint() ) );

    String[] labels = TestDataGenerator.getRandomStrings( numToCreate, (int) TestDataGenerator.getRandomNumber( 3, 20 ), false );
    Paint[] paints = TestDataGenerator.getRandomPaints( numToCreate );

    return new PieChartDataSet( "This is a test title", TestDataGenerator.getRandomNumbers( numToCreate, minValue, maxValue ), labels, paints, properties );
View Full Code Here

TOP

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

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.