File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes how i do get network graph ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "how i do get network graph ?" Watch "how i do get network graph ?" New topic
Author

how i do get network graph ?

thanaphum bannasri
Greenhorn

Joined: Jan 24, 2011
Posts: 5
I've used jpcap + freechart (api for java) but I can't get graph, how i do later?
(sorry my english's not good)
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
What are you trying to graph? In other words, what -exactly- do you mean by "network graph"? Also, what do you have so far,. and where are you stuck making progress?


Ping & DNS - updated with new look and Ping home screen widget
thanaphum bannasri
Greenhorn

Joined: Jan 24, 2011
Posts: 5
Ulf Dittmer wrote:What are you trying to graph? In other words, what -exactly- do you mean by "network graph"? Also, what do you have so far,. and where are you stuck making progress?


I would like to know I will draw network graph xy(Line Graph) realtime . How I do it easy?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
What I meant is: what is a "network graph xy (Line Graph) realtime"? What's along the X axis? What's along the Y axis? TellTheDetails.

Also, is this question about gathering data using jpcap, or about using JFreeChart to draw something?
James Sabre
Ranch Hand

Joined: Sep 07, 2004
Posts: 781

thanaphum bannasri wrote:
I would like to know I will draw network graph xy(Line Graph) realtime . How I do it easy?


I suspect you won't like my answer. JFreeChart is difficult to use effectively without the documentation and the examples that come with that documentation but you have to buy the documentation. Using JFreeChart for creating xy line charts is relatively easy but the detail of what you want to achieve matters. How you use this in conjunction with jpcap is a different matter.

P.S. Be careful in this context to distinguish between charts (xy, pie, histograms etc) and graphs (nodes and links).


Retired horse trader.
 Note: double-underline links may be advertisements automatically added by this site and are probably not endorsed by me.
thanaphum bannasri
Greenhorn

Joined: Jan 24, 2011
Posts: 5
Ulf Dittmer wrote:What I meant is: what is a "network graph xy (Line Graph) realtime"? What's along the X axis? What's along the Y axis? TellTheDetails.

Also, is this question about gathering data using jpcap, or about using JFreeChart to draw something?


X axis is Time It change every 5 second. Y axis is Value of bandwidth that used (kbps).help me please....
thanaphum bannasri
Greenhorn

Joined: Jan 24, 2011
Posts: 5
James Sabre wrote:
thanaphum bannasri wrote:
I would like to know I will draw network graph xy(Line Graph) realtime . How I do it easy?


I suspect you won't like my answer. JFreeChart is difficult to use effectively without the documentation and the examples that come with that documentation but you have to buy the documentation. Using JFreeChart for creating xy line charts is relatively easy but the detail of what you want to achieve matters. How you use this in conjunction with jpcap is a different matter.

P.S. Be careful in this context to distinguish between charts (xy, pie, histograms etc) and graphs (nodes and links).


Oh Sorry I don't know . I talk about charts xy . Have you a great solution for me? . Should I use api that easy to apply?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
OK, so you know how to obtain the data somehow, and this question is solely about how to create a chart from that data?

For data that changes frequently a library like JChart2D may be better suited, but that depends on the environment in which this chart is used - is it displayed on a web page, or in a java desktop app, or someplace else?
James Sabre
Ranch Hand

Joined: Sep 07, 2004
Posts: 781

thanaphum bannasri wrote:
I talk about charts xy .

I gathered that.
Have you a great solution for me? .

If by that you mean am I going to post the code that does exactly what you are going to submit as your homework - no. I will assist in helping you to develop your code but I won't write it for you.

Should I use api that easy to apply?

If you buy the documentation then JFreeChart is fairly easy to use.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how i do get network graph ?
 
Similar Threads
How do I create a scrolling line graph applet?
Realtime graph updates in Java
Garbage Collection
Graph App
passing parameters to applet dynamically