how to use gauge meter
Brought to you by:
ghinkl
Trying to use the NumericAttributeGaugeMeter, and I'm clearly
missing something. I set all the attributes of the meter
(criticalPoint, warningPoint, etc.) but when the dashboard comes
up, it ignores all that and I get the defaults for everything. Is
there an example somewhere of how to use this component?
Thanks,
Bob
bob@cassatt.com
Logged In: YES
user_id=773314
duplicate of 1076966. please see that for details.
https://sourceforge.net/tracker/index.php?func=detail&aid=1076966&group_id=60228&atid=493496
Logged In: YES
user_id=1170049
Thanks - unfortunately it looks like what I'm doing matches the example
exactly. The only difference is that I'm looking at the
GlobalRequestProcessor in tomcat (specifically at requestCount).
The problem is I can get the gaugeMeter to display, but none of the
attributes I set show up - not even the label.
Is this a matching issue or something else?
Thanks,
Logged In: YES
user_id=1170049
Thanks - unfortunately it looks like what I'm doing matches the example
exactly. The only difference is that I'm looking at the
GlobalRequestProcessor in tomcat (specifically at requestCount).
The problem is I can get the gaugeMeter to display, but none of the
attributes I set show up - not even the label.
Is this a matching issue or something else?
Thanks,
Logged In: YES
user_id=1170049
Ok, finally got it. Context was not right, then finally changed the order
of the attributes and it worked. Doesn't seem like that should matter,
though, so I must have fat-fingered something.
Now can't seem to change the size of the gauge. Should be able to, yes?
Logged In: YES
user_id=773314
You should be able to set the size by altering the
preferredSize of the component (depending on the containing
components layout).
<Attribute name="preferredSize" value="(Literal)250,250"/>
I've set up a custom DimensionEditor such that the above
should work for setting any Dimension property. (And all
components are instances of JComponent and therfore should
have preferred, minimum and maximum sizes.)
Now if you happen to be using the HtmlDashboardComponent...
included components can be set with "width" and "height"
attributes to their html "object" tag.