OFC Charts 3.1


com.oxymel.ofc.charts
Class VerticalBarChartRenderer

java.lang.Object
  |
  +--com.oxymel.ofc.charts.ChartRenderer
        |
        +--com.oxymel.ofc.charts.BarChartRenderer
              |
              +--com.oxymel.ofc.charts.VerticalBarChartRenderer
Direct Known Subclasses:
VerticalAreaChartRenderer, VerticalLineChartRenderer, VerticalStackedBarChartRenderer

public class VerticalBarChartRenderer
extends com.oxymel.ofc.charts.BarChartRenderer

This class provides a vertical bar chart renderer


Constructor Summary
VerticalBarChartRenderer(CategoryValueSeriesContainer categoryValueSeriesContainer)
          Constructor
 
Method Summary
 CategoryValueSeriesContainer getCategoryValueSeriesContainer()
          Get the container of couple category-value used to draw chart.
 boolean isBasedOnAxisRight()
          is based on axis right
 void setCategoryValueSeriesContainer(CategoryValueSeriesContainer categoryValueSeriesContainer)
          Change data used to draw chart
 void setIsBasedOnAxisRight(boolean isBasedOnAxisRight)
          set flag is based on axis right
 void setNbPixelToMoveRendererStartPosition(int nbPixelToMoveRendererStartPosition)
          set number of pixel to move renderer from start position
 void setPercentageBarWidthMax(int percentageBarWidthMax)
          Sets the percentage of bar width max. 100% correspond to the size to display one category informations.
 void setPercentageBarWidthMin(int percentageBarWidthMin)
          Sets the percentage of bar width min. 100% correspond to the size to display one category informations.
 void setPercentageBetweenEachBarHisto(int percentageBetweenEachBarHisto)
          Sets the percentage beetween each bar. 100% correspond to the size to display one category informations.
 void setPercentageFreeAfterSeries(int percentageFreeAfterSeries)
          Sets the percentage free after one bar series which correspond to a category. 100% correspond to the size to display one category informations.
 void setPercentageFreeBeforeSeries(int percentageFreeBeforeSeries)
          Sets the percentage free before one bar series which correspond to a category. 100% correspond to the size to display one category informations.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VerticalBarChartRenderer

public VerticalBarChartRenderer(CategoryValueSeriesContainer categoryValueSeriesContainer)
Constructor
Parameters:
categoryValueSeriesContainer - all category value series
Method Detail

setIsBasedOnAxisRight

public void setIsBasedOnAxisRight(boolean isBasedOnAxisRight)
set flag is based on axis right
Parameters:
isBasedOnAxisRight - = true for base renderer on axis right. False or default renderer is based on axis left

isBasedOnAxisRight

public boolean isBasedOnAxisRight()
is based on axis right
Returns:
true if Based On Axis Right

setCategoryValueSeriesContainer

public void setCategoryValueSeriesContainer(CategoryValueSeriesContainer categoryValueSeriesContainer)
Change data used to draw chart
Parameters:
categoryValueSeriesContainer - All series of couple category-value

getCategoryValueSeriesContainer

public CategoryValueSeriesContainer getCategoryValueSeriesContainer()
Get the container of couple category-value used to draw chart.
Returns:
CategoryValueSeriesContainer used to draw chart

setPercentageBetweenEachBarHisto

public void setPercentageBetweenEachBarHisto(int percentageBetweenEachBarHisto)
Sets the percentage beetween each bar. 100% correspond to the size to display one category informations. This percentage value is not necessary accept if the general graphic look is not correct.
Parameters:
percentageBetweenEachBarHisto - the percentage beetween each bar

setPercentageFreeBeforeSeries

public void setPercentageFreeBeforeSeries(int percentageFreeBeforeSeries)
Sets the percentage free before one bar series which correspond to a category. 100% correspond to the size to display one category informations. This percentage value is not necessary accept if the general graphic look is not correct.
Parameters:
percentageFreeBeforeSeries - the percentage free before one bar series

setPercentageFreeAfterSeries

public void setPercentageFreeAfterSeries(int percentageFreeAfterSeries)
Sets the percentage free after one bar series which correspond to a category. 100% correspond to the size to display one category informations. This percentage value is not necessary accept if the general graphic look is not correct.
Parameters:
percentageFreeAfterSeries - the percentage free after one bar series

setPercentageBarWidthMax

public void setPercentageBarWidthMax(int percentageBarWidthMax)
Sets the percentage of bar width max. 100% correspond to the size to display one category informations. This percentage value is not necessary accept if the general graphic look is not correct.
Parameters:
percentageBarWidthMax - the percentage of bar width max

setPercentageBarWidthMin

public void setPercentageBarWidthMin(int percentageBarWidthMin)
Sets the percentage of bar width min. 100% correspond to the size to display one category informations. This percentage value is not necessary accept if the general graphic look is not correct.
Parameters:
percentageBarWidthMin - the percentage of bar width min

setNbPixelToMoveRendererStartPosition

public void setNbPixelToMoveRendererStartPosition(int nbPixelToMoveRendererStartPosition)
set number of pixel to move renderer from start position
Parameters:
nbPixelToMoveRendererStartPosition - number of pixel to move renderer from start position

OFC Charts 3.1


Copyright © 2005 Oxymel SA All Rights Reserved.