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
 QCRTGraph for Java
 RTProcessVar has ChartAttributes?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Brian Lindahl

1 Posts

Posted - 20 Sep 2006 :  13:18:14  Show Profile  Reply with Quote
In the example code in the user manual from the downloaded trial:

ChartAttribute defaultattrib = new ChartAttribute(Color.green, 1.0,
ChartConstants.LS_SOLID, Color.green);
METSValue = 0;
METS = new RTProcessVar("METS", defaultattrib);


How can a variable have a color, line size, etc.? It doesn't make much sense to me. I had thought a process variable was independent from it's display. What is it's purpose?

quinncurtis

1586 Posts

Posted - 20 Sep 2006 :  13:52:15  Show Profile  Reply with Quote
If an indicator, or multi-indicator object is created, and for some reason or another a ChartAttribute was not specifically specified for that indicator, then the indicator will pick on the default ChartAttribute of the RTProcessVar object.

Another use is to use the ChartAttribute of the RTProcessVar to initialize any indicator object you create.

RTBarIndicator barplot = new RTBarIndicator(pTransform1,
EngineRPM1, barwidth, barbase,
EngineRPM1.getDefaultAttribute(), barjust, barorient);

That way you can be consistent in your use of colors for a given RTProcessVar object.
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