View Single Post
  #1 (permalink)  
Old 08-07-2007, 05:34 AM
coco coco is offline
Member
 
Join Date: Jul 2007
Posts: 39
coco is on a distinguished road
Help with graph's bar
Hi, For my bar graphs, i need tot use a class to create all the bars, but there is another class calling all of these methods.

These methods are:
the constructor

Code:
public void setValuesAndLabels(double []values, String []labels, int nbr) public int getCurrentBar(int value) public void setCurrentBar(int value) public int getNbrBars() public int getMaxBars() public double getBarValue(int idx public void setBarValue(int idx, double value) public String getBarLabel(int idx) public void setBarLabel(int idx, String value) public void addBar(double val, String lbl) public void paintComponent(Graphics g) public Boolean addBarChartListener(BarChartListener b)
That example given before was great, but i am having trouble understanding how i can apply that information into methods like these.
Thanks.
Reply With Quote
Sponsored Links