thanksforfish Posted August 22, 2007 Report Share Posted August 22, 2007 Hi, Is there anyway to get image map coordinates for the entire filler bar for a linear gauge ? Can I get coordinates for other pieces of a gauge ? Also, can I set the imagemap tooltip ? Thanks. Quote Link to comment Share on other sites More sharing options...
GabrielA Posted August 22, 2007 Report Share Posted August 22, 2007 In Chart FX Gauges for Java you can set tooltips for each Indicator and for the rest of the Gauge. You can not set tooltips for any other piece, and I there is no way to get the coordinates other than by getting the image map by calling rendertostream. Here is an example: // Setting the Main Indicator: com.softwarefx.chartfx.gauge.Filler filler1 =(com.softwarefx.chartfx.gauge.Filler) gauge.getMainIndicator(); filler1.setValue("75"); filler1.setToolTip("The Value is %v"); // Setting tooltip for Gauge gauge.setToolTip("This is the Gauge..."); This code will set a tooltip "The value is 75" in the Indicator, and "This is the Gauge" for the rest of the Gauge image. However, this seems to be broken in the latest build, and development is looking into it right now. I'll let you know when there is a fix available. Quote Link to comment Share on other sites More sharing options...
GabrielA Posted August 30, 2007 Report Share Posted August 30, 2007 The good news is that this is not a bug, it is a configuration setting. Open the chartfx.gauge.config in your CfxGauges10\config, and change the setting UseToStringForToolTip to false. This should be the default but it was ship with true by mistake. We will fix it in installers and service packs. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.