A List is a List. There has to be some other explanation for the
weirdness. Even with your code, you're not passing a List, you're
passing an ArrayList. Did you try constructing an ArrayList and pass
in your CF "array" (aka a Vector)? I have no idea why an ArrayList
would work but a Vector wouldn't, as they have exactly the same type
structure (aside from the terminal class, of course), so without an
explicit check for a Vector they should be indistinguishable. Perhaps
it might be the contained Double instances that are causing problems?
cheers,
barneyb
On Sun, Apr 6, 2008 at 4:42 PM, Paul Hastings <[EMAIL PROTECTED]> wrote:
> C S wrote:
> > Just curious, what is the method signature? I would have expected
> ArrayList,
> > Vector, etcetera to work, since they all implement java.util.List.
>
> me too but as i said it's incredibly picky ("it" being jfreechart). it wants
> a
> java.util.List & nothing else. it's signature:
>
> public static BoxAndWhiskerItem
> calculateBoxAndWhiskerStatistics(java.util.List
> values)
>
> the wrapper's basically:
>
> public static List toList(double[] inArray) {
> List result = new java.util.ArrayList();
> for (int i = 0; i < inArray.length; i++) {
> result.add(new Double(inArray[i]));
> }
> return result;
> }
>
> i have to say that jfreechart beats cfchart for the scientific charts i
> normally
> have to deal with but man is it picky.
>
> thanks.
--
Barney Boisvert
[EMAIL PROTECTED]
http://www.barneyb.com/
Got Gmail? I have 100 invites.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302815
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4