Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Java
 QCSPCChart SPC for Java
 customize alarm message and tooltip contents
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

alex

5 Posts

Posted - 27 May 2010 :  06:15:02  Show Profile  Reply with Quote
I got few questions when trying the SPCChart.
First, we found that SPCchart can display the sample data in tooltip when we click a plot on primary chart.But is it possible to customize the tooltip's contents? such as other production informations.

And second, can I customize the alarm message of a limit record or WE rule violate?
for example:
the default rule violated message looks like below:

2010-05-25 21:00:00
Primary Chart: WE Upper Limit Rule #4 Violation=0.000
Current Value=65.742


is it possible to customize above message with specified format or contents?

quinncurtis

1586 Posts

Posted - 27 May 2010 :  09:41:06  Show Profile  Reply with Quote
You cannot customize the data tooltips, for when you click on a data point. You can however add a note for a given sample interval. A notes tool tip is displayed when you click on the Notes field for a sample interval. See the example TimeVariableControlCharts.XBarRChart. Notes are added using one of the AddNewSampleRecord methods.

String notesstring = "This is a note";
this.ChartData.AddNewSampleRecord(timestamp, samples, notesstring);


You can change the alarm message string of a WE rule, but you cannot change the basic format. You can do the same with the SPC_LOWER_CONTROL_LIMIT_# limits.

this.PrimaryChart.GetControlLimitData(SPCChartObjects.SPC_UPPER_CONTROL_LIMIT_3).ControlLimitRecord.AlarmMessage = "Rule #1";
this.PrimaryChart.GetControlLimitData(SPCChartObjects.SPC_UPPER_CONTROL_LIMIT_2).ControlLimitRecord.AlarmMessage = "Rule #2";
this.PrimaryChart.GetControlLimitData(SPCChartObjects.SPC_UPPER_CONTROL_LIMIT_1).ControlLimitRecord.AlarmMessage = "Rule #3";
this.PrimaryChart.GetControlLimitData(SPCChartObjects.SPC_UPPER_CONTROL_LIMIT_0).ControlLimitRecord.AlarmMessage = "Rule #4";

A rule #1 rule violation will now look like:

2010-05-25 21:00:00
Rule #1 =25.73
Current Value=26.742


Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07