Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Tools for Java
 QCRTGraph for Java
 RTProcessVar has ChartAttributes?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
Brian Lindahl Posted - 20 Sep 2006 : 13:18:14
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?
1   L A T E S T    R E P L I E S    (Newest First)
quinncurtis Posted - 20 Sep 2006 : 13:52:15
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.

Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07