Jump to content
Software FX Community

Imagemap


thanksforfish

Recommended Posts

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.

 

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...