ASE Home Page Products Download Purchase Support About ASE
ChartDirector General
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Meter Chart
Posted by Scott on Mar-11-2010 02:42
Hi,
I have a Meter chart is a java swing application and i would like to have the whole meter clickable so that i can open a dialog. I have done this with Bar charts no problem but i am unable to do this with the meter graph. Is this possible? I have based the meter off your Round Meter example
Thanks
Scott

  Re: Meter Chart
Posted by Peter Kwan on Mar-11-2010 16:09
Hi Scott,

To make a whole control clickable, you just need add a mouse listener to listen for the mouse clicks. This is the same for any Java component (including the ChartViewer and any other SWING component). For more details, you may refer to your Java documentation:

http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Component.html#addMouseListener(java.awt.event.MouseListener)

Hope this can help.

Regards
Peter Kwan