Results 1 to 20 of 25
Thread: HOw to run ant javadoc
- 02-17-2009, 11:40 AM #1
- 02-17-2009, 01:00 PM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Can you explain bit more clearly what you want to do? Looking to generate Javadoc for a library?
- 02-17-2009, 01:07 PM #3
- 02-17-2009, 02:05 PM #4
Most IDE's do it by just clicking an option, but I don't know how to do it manually. Maybe try downloading NetBeans if you can't figure out how to do it manually.
-MK12Tell me if you want a cool Java logo avatar like mine and I'll make you one.
- 02-17-2009, 02:17 PM #5
am actually using netbeans IDE,but for it to work on netbeans u must generate it and add it as you add the class library.I dont know whether you understand what am trying to say?
-----------------
how about the avatar?it looks cool.mk for me one!
- 02-17-2009, 02:24 PM #6
Oh ok I wasn't thinking of the same thing then sorry.
I'll make you a java avatar today though, I'll post it in this thread.
-MK12Tell me if you want a cool Java logo avatar like mine and I'll make you one.
- 02-17-2009, 02:25 PM #7
Member
- Join Date
- Feb 2009
- Location
- Delhi
- Posts
- 63
- Rep Power
- 0
hello manfizy,
i am also using jfreechart with netbeans.
what you exactly want? you want add the javadoc to the IDE? or what?
- 02-17-2009, 03:08 PM #8
Yep,thats what i want to do.
Btw,how do you find jfreechart?are you good in it?
Am trying to create a line graph using vaues read from a file and am in total darkness.
May be we can share ideas on this if u dont mind.
Can you please give me a simple code of plotting a line graph?
- 02-17-2009, 03:18 PM #9
Member
- Join Date
- Feb 2009
- Location
- Delhi
- Posts
- 63
- Rep Power
- 0
i downloaded it from sourceforge.com
its not that much hard.. i usually use it to plot a 3D bar chart for my application.
ya sure, we can share.. actually i too have not used it completely...
see below there is a sample code for a line graph chart
thanksJava Code:// i am having data in double.. you can read your file and manipulate them in double array final double[][] data = new double[][] { {5.0, 12.0, 4.0, 6.0, 16.0, 5.0, 7.0, 15.0}, {6.0, 5.5, 7.0, 5.0, 3.0, 4.0, 0.0, 3.0}, {3.0, 4.0, 3.0, 3.0, 7.0, 4.0, 3.0, 2.0}, {1.0, 2.0, 3.0, 4.0} }; Comparable[] series = {"Series A", "Series B", "Series C", "Series D"}; Comparable[] type = {"N 1","N 2","N 3","N 4","N 5","N 6","N 7","N 8"}; final CategoryDataset dataset = DatasetUtilities.createCategoryDataset(series, type, data); JFreeChart chart = null; // here we plot the graph chart = ChartFactory.createLineChart("Bar Chart", "", "", dataset, PlotOrientation.VERTICAL, true, true, true);
/\/
- 02-17-2009, 03:48 PM #10
thanx for your sample code.its actually working properly but there is something that is not clear to me.why do you have type on the x axis as in can i compare two variables lets say time and power level in a power plant where we have time on the x axis and power level on the y axis
- 02-17-2009, 11:49 PM #11
I'll try to make the Java pic tonight, might be finished in a few hours. check back then. (By the way to make them I'm just using pictures from google and then editing with GIMP)
-MK12Tell me if you want a cool Java logo avatar like mine and I'll make you one.
- 02-18-2009, 06:41 AM #12
Member
- Join Date
- Feb 2009
- Location
- Delhi
- Posts
- 63
- Rep Power
- 0
- 02-18-2009, 07:28 AM #13
Ok,to me the example code that u gave me looks like you were trying to plot a bar chart coz you have comparable type N1 - N8 on the x axis and the variables on the y axis. Now,my question is very simple,what if i want to plot a line graph of two variables,lets say time against powerlevel. How can i modify your code to do that? I hope now am clear enough.
Initially i was working on Scientific graphing tool(SGT), pretty powerful tool but it was alil bit difficult for me coz i couldnt achieve what i wanted. So now have just turned back to jfreechart which i hope we are going to share ideas and achieve something.
thanks for your kind response
- 02-18-2009, 08:21 AM #14
Member
- Join Date
- Feb 2009
- Location
- Delhi
- Posts
- 63
- Rep Power
- 0
- 02-18-2009, 09:19 AM #15
- 02-18-2009, 09:41 AM #16
- 02-18-2009, 10:36 AM #17
Member
- Join Date
- Feb 2009
- Location
- Delhi
- Posts
- 63
- Rep Power
- 0
for xy chart you have to use xyseries
like this
final XYSeries series = new XYSeries("Random Data");
series.add(99, 400.2);
series.add(5.0, 294.1);
then
final XYSeriesCollection dataset = new XYSeriesCollection(series);
here you get the dataset for the graph now do the same with JChartFactory to plot the graph
- 02-18-2009, 12:02 PM #18
This is how i implemented it but i still get an error.
check it out
where am i makin errors?Java Code:package myjfreechart; import org.jfree.chart.ChartFactory; import org.jfree.chart.ChartFrame; import org.jfree.chart.JFreeChart; import org.jfree.chart.plot.PlotOrientation; import org.jfree.data.category.CategoryDataset; import org.jfree.data.xy.XYSeries; import org.jfree.data.xy.XYSeriesCollection; /** * * @author MANFRIZYM */ public class Main { /** * @param args the command line arguments */ public static void main(String[] args) { final XYSeries series = new XYSeries("Random Data"); series.add(99, 400.2); series.add(5.0, 294.1); final XYSeriesCollection dataset = new XYSeriesCollection(series); JFreeChart chart = null; chart = ChartFactory.createLineChart("Line Graph", "Time(Hrs)", "Power Level(%)",(CategoryDataset) dataset, PlotOrientation.VERTICAL, true, true, false); // create and display a frame... ChartFrame frame = new ChartFrame("First", chart); frame.pack(); frame.setVisible(true); } }
thanx
- 02-18-2009, 12:10 PM #19
Member
- Join Date
- Feb 2009
- Location
- Delhi
- Posts
- 63
- Rep Power
- 0
hey dear
you are created dataset with XYSeries and
ploting the LineChart graph .....
plot the xy... chart
thanks
/\/
- 02-18-2009, 12:25 PM #20
Similar Threads
-
Javadoc-tool
By tskumarme in forum New To JavaReplies: 1Last Post: 05-30-2008, 01:31 PM -
JavaDoc
By javarishi in forum EclipseReplies: 1Last Post: 04-10-2008, 08:41 AM -
JavaDoc (method)
By Java Tip in forum Java TipReplies: 0Last Post: 12-04-2007, 10:48 AM -
what can I do with javadoc
By christina in forum Advanced JavaReplies: 1Last Post: 07-25-2007, 11:08 PM -
javadoc question
By orchid in forum New To JavaReplies: 1Last Post: 05-15-2007, 05:23 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks