User (Legacy) Posted June 2, 2004 Report Share Posted June 2, 2004 When trying to use the Chart.getTitles(int n) method, I get a 'getTitles() in SoftwareFX.ChartFX.Chart cannot be applied to (int)' error message when compiling It works when I use the undocumented Chart.getTitle(int n) (The 's' is missing) How did you generate this javadoc? Link to comment Share on other sites More sharing options...
Software FX Posted June 2, 2004 Report Share Posted June 2, 2004 Dear Christophe, When you do chart.getTitles () you get a TitleCollection that is a collection of TitleDockables When you do chart.getTitle(int n) that returns you a TitleDockable where n is the index in the TitleCollection. public TitleDockable getTitle(int n) {} public TitleCollection getTitles() {} You are correct that docs are wrong and in fact both functions should be documented! Thank you for pointing out the problem! -CharlesS "Christophe Marquette" <christophe.marquette@silicomp.fr> wrote in message news:l8odtXKSEHA.3080@webserver3.softwarefx.com... > When trying to use the Chart.getTitles(int n) method, I get a > 'getTitles() in SoftwareFX.ChartFX.Chart cannot be applied to (int)' > error message when compiling > > It works when I use the undocumented Chart.getTitle(int n) > (The 's' is missing) > > How did you generate this javadoc? Link to comment Share on other sites More sharing options...
User (Legacy) Posted November 3, 2004 Author Report Share Posted November 3, 2004 Hi, Also the same problem in chart.getPoint(). It returns PointAttributesCollection. Which package is this Collection class in? -arun "Software FX Support" <support@softwarefx.com> wrote in message news:WoNjRzKSEHA.3080@webserver3.softwarefx.com... > Dear Christophe, > When you do chart.getTitles () > you get a TitleCollection that is a collection of TitleDockables > When you do chart.getTitle(int n) that returns you a TitleDockable where n > is the index in the TitleCollection. > public TitleDockable getTitle(int n) {} > public TitleCollection getTitles() {} > > You are correct that docs are wrong and in fact both functions should be > documented! > Thank you for pointing out the problem! > > -CharlesS > > "Christophe Marquette" <christophe.marquette@silicomp.fr> wrote in message > news:l8odtXKSEHA.3080@webserver3.softwarefx.com... >> When trying to use the Chart.getTitles(int n) method, I get a >> 'getTitles() in SoftwareFX.ChartFX.Chart cannot be applied to (int)' >> error message when compiling >> >> It works when I use the undocumented Chart.getTitle(int n) >> (The 's' is missing) >> >> How did you generate this javadoc? > > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.