RE: JFreeChart component

2008-10-30 Thread jwray


Good idea, I wasn't aware the wiki was open.

http://cwiki.apache.org/confluence/display/WICKET/JFreeChart+with+clickable+imagemap




Hoover, William wrote:
> 
> Why not post your solution to the wiki?
> 
> -Original Message-
> From: jwray [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, October 29, 2008 5:19 PM
> To: users@wicket.apache.org
> Subject: Re: JFreeChart component
> 
> 
> 
> Err, sort of confused about the last few messages.
> 
> I submitted the component as I thought it would be useful for other
> people, and from the emails I've got I guess it was. 
> 
> When I had the need to implement a clickable chart a few weeks ago I
> looked around for an existing solution, and found none. There were one
> or two mentions of dynamic image generation using JFreeChart and, as the
> other code posted shows, it's relatively easy to do (eg. from the wicket
> wiki http://cwiki.apache.org/WICKET/jfreechart-and-wicket-example.html).
> 
> What I didn't find, and took me a little time to figure out the best way
> to do, was generation of an image map from the chart thus allowing the
> chart to by clickable and integrated with a wicket AjaxLink, and
> associated callbacks. That's what this component provides, and I hope
> people find it useful.
> 
> Jonny
> --
> View this message in context:
> http://www.nabble.com/JFreeChart-component-tp20200322p20236096.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/JFreeChart-component-tp20200322p20250967.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JFreeChart component

2008-10-30 Thread Hoover, William
Why not post your solution to the wiki?

-Original Message-
From: jwray [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 29, 2008 5:19 PM
To: users@wicket.apache.org
Subject: Re: JFreeChart component



Err, sort of confused about the last few messages.

I submitted the component as I thought it would be useful for other
people, and from the emails I've got I guess it was. 

When I had the need to implement a clickable chart a few weeks ago I
looked around for an existing solution, and found none. There were one
or two mentions of dynamic image generation using JFreeChart and, as the
other code posted shows, it's relatively easy to do (eg. from the wicket
wiki http://cwiki.apache.org/WICKET/jfreechart-and-wicket-example.html).

What I didn't find, and took me a little time to figure out the best way
to do, was generation of an image map from the chart thus allowing the
chart to by clickable and integrated with a wicket AjaxLink, and
associated callbacks. That's what this component provides, and I hope
people find it useful.

Jonny
--
View this message in context:
http://www.nabble.com/JFreeChart-component-tp20200322p20236096.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JFreeChart component

2008-10-29 Thread James Carman
Yeah, I didn't notice the clickable requirement.  That's pretty cool.
I'm going to have to check it out.

On Wed, Oct 29, 2008 at 5:19 PM, jwray <[EMAIL PROTECTED]> wrote:
>
>
> Err, sort of confused about the last few messages.
>
> I submitted the component as I thought it would be useful for other people,
> and from the emails I've got I guess it was.
>
> When I had the need to implement a clickable chart a few weeks ago I looked
> around for an existing solution, and found none. There were one or two
> mentions of dynamic image generation using JFreeChart and, as the other code
> posted shows, it's relatively easy to do (eg. from the wicket wiki
> http://cwiki.apache.org/WICKET/jfreechart-and-wicket-example.html).
>
> What I didn't find, and took me a little time to figure out the best way to
> do, was generation of an image map from the chart thus allowing the chart to
> by clickable and integrated with a wicket AjaxLink, and associated
> callbacks. That's what this component provides, and I hope people find it
> useful.
>
> Jonny
> --
> View this message in context: 
> http://www.nabble.com/JFreeChart-component-tp20200322p20236096.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JFreeChart component

2008-10-29 Thread jwray


Err, sort of confused about the last few messages.

I submitted the component as I thought it would be useful for other people,
and from the emails I've got I guess it was. 

When I had the need to implement a clickable chart a few weeks ago I looked
around for an existing solution, and found none. There were one or two
mentions of dynamic image generation using JFreeChart and, as the other code
posted shows, it's relatively easy to do (eg. from the wicket wiki
http://cwiki.apache.org/WICKET/jfreechart-and-wicket-example.html).

What I didn't find, and took me a little time to figure out the best way to
do, was generation of an image map from the chart thus allowing the chart to
by clickable and integrated with a wicket AjaxLink, and associated
callbacks. That's what this component provides, and I hope people find it
useful.

Jonny
-- 
View this message in context: 
http://www.nabble.com/JFreeChart-component-tp20200322p20236096.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JFreeChart component

2008-10-29 Thread Nino Saturnino Martinez Vazquez Wael
Theres no problem.. The guy just implemented a clickable chart, and 
wanted to share..


James Carman wrote:

I wasn't giving a place to put stuff.  I was just offering up an
alternative solution to the problem.

I don't let anyone put stuff in my SVN! :)

On Wed, Oct 29, 2008 at 12:07 PM, Nino Saturnino Martinez Vazquez Wael
<[EMAIL PROTECTED]> wrote:
  

James, slow down (and read the thread) :)

The guy actually asked for a place to commit some integration stuff.. Unless
you want him to put it in your svn? :)

James Carman wrote:


I wrote a simple resource-based implementation:


http://svn.carmanconsulting.com/public/wicket-advanced/trunk/src/main/java/com/carmanconsulting/wicket/advanced/web/common/resource/ChartImageResource.java

and an example of using it:


http://svn.carmanconsulting.com/public/wicket-advanced/trunk/src/main/java/com/carmanconsulting/wicket/advanced/web/story10/resource/StudentPerRankChart.java


On Tue, Oct 28, 2008 at 10:48 PM, jwray <[EMAIL PROTECTED]> wrote:

  

I looked around wicket stuff and didn't see anything related to
JFreeChart.

If you think it is suitable for inclusion in wicket-stuff, or elsewhere,
then by all means upload it. It's only four classes so I don't think it
is
worth creating a new project for, and I don't know where it would fit
right
not.

Jonny
--
View this message in context:
http://www.nabble.com/JFreeChart-component-tp20200322p20220047.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  

--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JFreeChart component

2008-10-29 Thread James Carman
I wasn't giving a place to put stuff.  I was just offering up an
alternative solution to the problem.

I don't let anyone put stuff in my SVN! :)

On Wed, Oct 29, 2008 at 12:07 PM, Nino Saturnino Martinez Vazquez Wael
<[EMAIL PROTECTED]> wrote:
> James, slow down (and read the thread) :)
>
> The guy actually asked for a place to commit some integration stuff.. Unless
> you want him to put it in your svn? :)
>
> James Carman wrote:
>>
>> I wrote a simple resource-based implementation:
>>
>>
>> http://svn.carmanconsulting.com/public/wicket-advanced/trunk/src/main/java/com/carmanconsulting/wicket/advanced/web/common/resource/ChartImageResource.java
>>
>> and an example of using it:
>>
>>
>> http://svn.carmanconsulting.com/public/wicket-advanced/trunk/src/main/java/com/carmanconsulting/wicket/advanced/web/story10/resource/StudentPerRankChart.java
>>
>>
>> On Tue, Oct 28, 2008 at 10:48 PM, jwray <[EMAIL PROTECTED]> wrote:
>>
>>>
>>> I looked around wicket stuff and didn't see anything related to
>>> JFreeChart.
>>>
>>> If you think it is suitable for inclusion in wicket-stuff, or elsewhere,
>>> then by all means upload it. It's only four classes so I don't think it
>>> is
>>> worth creating a new project for, and I don't know where it would fit
>>> right
>>> not.
>>>
>>> Jonny
>>> --
>>> View this message in context:
>>> http://www.nabble.com/JFreeChart-component-tp20200322p20220047.html
>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> --
> -Wicket for love
>
> Nino Martinez Wael
> Java Specialist @ Jayway DK
> http://www.jayway.dk
> +45 2936 7684
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JFreeChart component

2008-10-29 Thread Nino Saturnino Martinez Vazquez Wael

James, slow down (and read the thread) :)

The guy actually asked for a place to commit some integration stuff.. 
Unless you want him to put it in your svn? :)


James Carman wrote:

I wrote a simple resource-based implementation:

http://svn.carmanconsulting.com/public/wicket-advanced/trunk/src/main/java/com/carmanconsulting/wicket/advanced/web/common/resource/ChartImageResource.java

and an example of using it:

http://svn.carmanconsulting.com/public/wicket-advanced/trunk/src/main/java/com/carmanconsulting/wicket/advanced/web/story10/resource/StudentPerRankChart.java


On Tue, Oct 28, 2008 at 10:48 PM, jwray <[EMAIL PROTECTED]> wrote:
  

I looked around wicket stuff and didn't see anything related to JFreeChart.

If you think it is suitable for inclusion in wicket-stuff, or elsewhere,
then by all means upload it. It's only four classes so I don't think it is
worth creating a new project for, and I don't know where it would fit right
not.

Jonny
--
View this message in context: 
http://www.nabble.com/JFreeChart-component-tp20200322p20220047.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JFreeChart component

2008-10-29 Thread James Carman
I wrote a simple resource-based implementation:

http://svn.carmanconsulting.com/public/wicket-advanced/trunk/src/main/java/com/carmanconsulting/wicket/advanced/web/common/resource/ChartImageResource.java

and an example of using it:

http://svn.carmanconsulting.com/public/wicket-advanced/trunk/src/main/java/com/carmanconsulting/wicket/advanced/web/story10/resource/StudentPerRankChart.java


On Tue, Oct 28, 2008 at 10:48 PM, jwray <[EMAIL PROTECTED]> wrote:
>
>
> I looked around wicket stuff and didn't see anything related to JFreeChart.
>
> If you think it is suitable for inclusion in wicket-stuff, or elsewhere,
> then by all means upload it. It's only four classes so I don't think it is
> worth creating a new project for, and I don't know where it would fit right
> not.
>
> Jonny
> --
> View this message in context: 
> http://www.nabble.com/JFreeChart-component-tp20200322p20220047.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JFreeChart component

2008-10-28 Thread Nino Saturnino Martinez Vazquez Wael

Ahh yeah, me and my memory..

I thought that this were related, but it's not as it's jasperreports:

https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-contrib-jasperreports

But thanks for posting.

jwray wrote:

I looked around wicket stuff and didn't see anything related to JFreeChart.

If you think it is suitable for inclusion in wicket-stuff, or elsewhere,
then by all means upload it. It's only four classes so I don't think it is
worth creating a new project for, and I don't know where it would fit right
not. 


Jonny
  


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JFreeChart component

2008-10-28 Thread jwray


I looked around wicket stuff and didn't see anything related to JFreeChart.

If you think it is suitable for inclusion in wicket-stuff, or elsewhere,
then by all means upload it. It's only four classes so I don't think it is
worth creating a new project for, and I don't know where it would fit right
not. 

Jonny
-- 
View this message in context: 
http://www.nabble.com/JFreeChart-component-tp20200322p20220047.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JFreeChart component

2008-10-27 Thread Nino Saturnino Martinez Vazquez Wael
Cool, why not put it in wicket stuff somewhere? I think theres some 
jfree stuff in there


jwray wrote:

Hi,

I recently developed a component that displays a chart generated from
JFreeChart and includes the associated image map that allows the chart to
generate tooltips and respond to user clicks, via an Ajax link. I thought
this maybe useful to other people so I've included the files here.

To use simply construct the MappedChart with you JFreeChart and provide an
implementation of the onClickCallback function to respond to user clicks.

Jonny

http://www.nabble.com/file/p20200322/MappedChart.java MappedChart.java 
http://www.nabble.com/file/p20200322/MapArea.java MapArea.java 
http://www.nabble.com/file/p20200322/DynamicImageMap.java
DynamicImageMap.java 
http://www.nabble.com/file/p20200322/ChartImage.java ChartImage.java 
http://www.nabble.com/file/p20200322/MappedChart.html MappedChart.html 
  


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



JFreeChart component

2008-10-27 Thread jwray

Hi,

I recently developed a component that displays a chart generated from
JFreeChart and includes the associated image map that allows the chart to
generate tooltips and respond to user clicks, via an Ajax link. I thought
this maybe useful to other people so I've included the files here.

To use simply construct the MappedChart with you JFreeChart and provide an
implementation of the onClickCallback function to respond to user clicks.

Jonny

http://www.nabble.com/file/p20200322/MappedChart.java MappedChart.java 
http://www.nabble.com/file/p20200322/MapArea.java MapArea.java 
http://www.nabble.com/file/p20200322/DynamicImageMap.java
DynamicImageMap.java 
http://www.nabble.com/file/p20200322/ChartImage.java ChartImage.java 
http://www.nabble.com/file/p20200322/MappedChart.html MappedChart.html 
-- 
View this message in context: 
http://www.nabble.com/JFreeChart-component-tp20200322p20200322.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]