Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 18th, 2007, 4:04 PM   #1
Master_Chief
Newbie
 
Join Date: Feb 2007
Posts: 3
Rep Power: 0 Master_Chief is on a distinguished road
Bar graphs running under a seperate class

Hey everyone,

Having a little problem creating some bar graphs.

What I am suppose to do is be able to create some bar for a bar graph, at different heights. With this when you click on it, the bar is select and you are able to change the height using a mouse interface. Also you can add more bars to the bar graph. This is using a gui interface.

for my bar graphs, i need to use a class to create all the bars, but there is another class calling all of these methods.

These methods are:
the constructor

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)

Can anyone help??


-Master Chief will save us all-
Master_Chief is offline   Reply With Quote
Old Feb 18th, 2007, 4:16 PM   #2
titaniumdecoy
Expert Programmer
 
titaniumdecoy's Avatar
 
Join Date: Nov 2005
Posts: 855
Rep Power: 3 titaniumdecoy is on a distinguished road
Send a message via AIM to titaniumdecoy
Show some code.
titaniumdecoy is offline   Reply With Quote
Old Feb 18th, 2007, 4:21 PM   #3
Master_Chief
Newbie
 
Join Date: Feb 2007
Posts: 3
Rep Power: 0 Master_Chief is on a distinguished road
I need some help with the code
Master_Chief is offline   Reply With Quote
Old Feb 18th, 2007, 4:23 PM   #4
Master_Chief
Newbie
 
Join Date: Feb 2007
Posts: 3
Rep Power: 0 Master_Chief is on a distinguished road
im going to be using a rectangle class for the bars, and seperate colors for each of the bars
Master_Chief is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Wierd compile Error. Need help please. Keiyentai Java 7 Aug 19th, 2006 1:35 AM
URL class Eric the Red Java 5 Jun 24th, 2006 9:01 PM
What is: "Oriented programming (OO)?" BrinyCode C++ 12 Nov 22nd, 2005 7:40 AM
User Input for Number Format ericelysia1 Java 0 Jul 21st, 2005 3:41 PM
MFC/OpenGL: problem with 'Document' class brenda C++ 11 May 23rd, 2005 8:10 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:55 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC