Package ofc4j.model.elements

Examples of ofc4j.model.elements.BarChart


  public Element getVerticalBarChartFromColumn( int col ) {
    if ( isstacked ) {
      return getStackedBarChartFromColumn( col );
    } else {
      BarChart bc;
      if ( issketch ) {
        bc = new SketchBarChart();
        ( (SketchBarChart) bc ).setFunFactor( sketchBarFunFactor );
        ( (SketchBarChart) bc ).setOutlineColour( getOutlineColor( col ) );
      } else {
        bc = new BarChart( this.barchartstyle );
        if ( this.barchartstyle == Style.THREED && threedheight != null ) {
          chart.getXAxis().set3D( threedheight );
        }
      }

      for ( int row = 0; row < getRowCount(); row++ ) {
        double d = ( (Number) getValueAt( row, col ) ).doubleValue();
        bc.addBars( new BarChart.Bar( d ) );
      }

      bc.setColour( getColor( col ) );

      if ( tooltipText != null ) {
        bc.setTooltip( tooltipText );
      }

      // set the title for this series
      bc.setText( getColumnHeader( col ) );

      // set the onclick event to the base url template
      if ( null != baseURLTemplate ) {
        bc.setOn_click( baseURLTemplate );
      }

      if ( alpha != null ) {
        bc.setAlpha( alpha );
      }

      return bc;
    }
  }
View Full Code Here

TOP

Related Classes of ofc4j.model.elements.BarChart

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.