1 39 40 package org.krysalis.jcharts.properties; 41 42 43 import org.krysalis.jcharts.chartData.interfaces.IAxisPlotDataSet; 44 import org.krysalis.jcharts.properties.util.ChartStroke; 45 import org.krysalis.jcharts.test.HTMLGenerator; 46 47 48 public class BarChartProperties extends AxisChartTypeProperties { 49 private float widthPercentage = 0.85f; 51 52 private boolean showOutlines = true; 53 private ChartStroke barOutlineStroke = ChartStroke.DEFAULT_BAR_OUTLINE; 54 55 56 60 public BarChartProperties() { 61 super(); 62 } 63 64 65 public void setShowOutlinesFlag( boolean showOutlines ) { 66 this.showOutlines = showOutlines; 67 } 68 69 70 public boolean getShowOutlinesFlag() { 71 return this.showOutlines; 72 } 73 74 75 public void setWidthPercentage( float widthPercentage ) { 76 this.widthPercentage = widthPercentage; 77 } 78 79 80 public float getPercentage() { 81 return this.widthPercentage; 82 } 83 84 85 public ChartStroke getBarOutlineStroke() { 86 return barOutlineStroke; 87 } 88 89 90 public void setBarOutlineStroke( ChartStroke barOutlineStroke ) { 91 this.barOutlineStroke = barOutlineStroke; 92 } 93 94 95 100 public void toHTML( HTMLGenerator htmlGenerator ) { 101 htmlGenerator.addTableRow( "Width Percentage", Float.toString( this.widthPercentage ) ); 102 htmlGenerator.addTableRow( "Show Outlines", new Boolean ( this.showOutlines ) ); 103 htmlGenerator.addTableRow( "Bar Outline", this.barOutlineStroke ); 104 } 105 106 107 113 public void validate( IAxisPlotDataSet iAxisPlotDataSet ) throws PropertyException { 114 117 } 118 119 } 120 | Popular Tags |