Package ofc4j.model.elements

Examples of ofc4j.model.elements.HorizontalBarChart


      return bc;
    }
  }

  public Element getHorizontalBarChartFromColumn( int col ) {
    HorizontalBarChart hbc = new HorizontalBarChart();
    for ( int row = 0; row < getRowCount(); row++ ) {
      double d = ( (Number) getValueAt( row, col ) ).doubleValue();
      hbc.addBars( new HorizontalBarChart.Bar( d ) );
    }
    hbc.setColour( getColor( col ) );
    if ( tooltipText != null ) {
      hbc.setTooltip( tooltipText );
    }

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

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

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

    return hbc;
  }
View Full Code Here

TOP

Related Classes of ofc4j.model.elements.HorizontalBarChart

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.