Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2007

Tip: Looking for answers? Try searching our database.

Image maps for dynamic images

Thread view: 
hemarangain@gmail.com - 30 Jan 2007 13:00 GMT
Can we create an image map for a dynamically generated JPEG image.
example: My program generates a bar chart as a JPEG image. I want to
link the bars of the chart to screens displaying corresponding data.
Alex Hunsley - 30 Jan 2007 13:05 GMT
> Can we create an image map for a dynamically generated JPEG image.
> example: My program generates a bar chart as a JPEG image. I want to
> link the bars of the chart to screens displaying corresponding data.

Define "my program" - a web app? Surely that's what you mean, since
image maps usually imply HTML/web is being used...
Lew - 30 Jan 2007 16:01 GMT
hemarangain@gmail.com wrote:
>> Can we create an image map for a dynamically generated JPEG image.
>> example: My program generates a bar chart as a JPEG image. I want to
>> link the bars of the chart to screens displaying corresponding data.

> Define "my program" - a web app? Surely that's what you mean, since
> image maps usually imply HTML/web is being used...

Assuming that's true, you define a standard map element in the JSP:
(untested)

<img src="Display?image=${image}" usemap="barlinks" ... />
<map name="barlinks">
 <c:forEach var="barloc" items="${imagebars}" >
  <area href="${barloc.href}" coords="${barloc.coords}" />
 </c:forEach>
</map>

Display would be a servlet that streams the jpeg to response.out.

- Lew
dscottarnold@gmail.com - 30 Jan 2007 15:25 GMT
On Jan 30, 8:00 am, hemarang...@gmail.com wrote:
> Can we create an image map for a dynamically generated JPEG image.
> example: My program generates a bar chart as a JPEG image. I want to
> link the bars of the chart to screens displaying corresponding data.

Not sure if cost is a factor but check out http://www.corda.com/
products/popchart/

We use that on our servers to create graphs/charts and I believe you
can have links for data points.
Hope that helps


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.