Menu

#36 how to use gauge meter

v1.2b7
open
nobody
5
2004-12-01
2004-12-01
Anonymous
No

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

Discussion

  • Bob

    Bob - 2004-12-06

    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,

     
  • Bob

    Bob - 2004-12-06

    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,

     
  • Bob

    Bob - 2004-12-06

    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?

     
  • Greg Hinkle

    Greg Hinkle - 2004-12-06

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.