Jump to content
Software FX Community

Error in javadoc?


User (Legacy)

Recommended Posts

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

  • 5 months later...

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...