B4J Library jGauges

SS-2016-08-31_13.04.05.png


This is a wrapper for Medusa gauges library: https://github.com/HanSolo/Medusa
License: https://github.com/HanSolo/Medusa/blob/master/license.txt

It includes many types of gauges. The gauges are implemented as custom views.

The gauges can be further customized. You can use JavaObject to access the various methods (see the source code of Gauge.java: https://github.com/HanSolo/Medusa/blob/master/src/main/java/eu/hansolo/medusa/Gauge.java).

Library: www.b4x.com/b4j/files/jGauges.zip

Example is attached.

Updates:

v1.10 - Based on latest version of the open source projects. Includes three new skins (TILE_KPI, TILE_TEXT_KPI, TILE_SPARK_LINE)
java_MYXILlD7yu.png
 

Attachments

  • GaugesExample.zip
    4.5 KB · Views: 1,156
Last edited:

Mashiane

Expert
Licensed User
Longtime User
SS-2016-08-31_13.04.05.png


This is a wrapper for Medusa gauges library: https://github.com/HanSolo/Medusa
License: https://github.com/HanSolo/Medusa/blob/master/license.txt

It includes many types of gauges. The gauges are implemented as custom views.

The gauges can be further customized. You can use JavaObject to access the various methods (see the source code of Gauge.java: https://github.com/HanSolo/Medusa/blob/master/src/main/java/eu/hansolo/medusa/Gauge.java).

Library: www.b4x.com/b4j/files/jGauges.zip

Example is attached.
Wow, this is brilliant...
 

rbghongade

Active Member
Licensed User
Longtime User
Erel, that is truly fantastic! Wanted guages desperately! You are a mind-reader!
 

vfafou

Well-Known Member
Licensed User
Longtime User
Truly needed for a newcoming telemetry project!
Thank you Erel... You' ve just made me drop Microsoft Visual Studio once more!
 

Harris

Expert
Licensed User
Longtime User
Hummm, wonder if these would be accessible in ABMaterial?
 

sz4t4n

Member
Licensed User
Longtime User
it's fantastic!

I have one question. Is there posibility to set min and max value in code or only in designer?
 

sz4t4n

Member
Licensed User
Longtime User
It's works perfect. One more question :) Where can i find all methods in this library? I have to look into source code?
 

micro

Well-Known Member
Licensed User
Longtime User
Hi to all
erel this is a fantastic library!
Only a question:
how to change the color of the percentage in the gauge object with skin LEVEL?
The default color is white
Thanks
 

CHAUVET

Member
Licensed User
Longtime User
Thanks Erel,

Where can i find all methods in this library? I have to look into source code?

Hi evrybody,

How can I find the list of methods available in this library?
I do not know how to search in a library source code.
sz4t4n did you find the list of methods in source code ? If so, do you have this list?
thanks in advance
 

jmon

Well-Known Member
Licensed User
Longtime User
The gauges are implemented as custom views
I have a question, Can I add these gauges at run-time, by code? If not, can I kindly ask for the source of the wrapper, so I can modify it? Thank you.

How can I find the list of methods available in this library?
See this link:
https://github.com/HanSolo/Medusa/blob/master/src/main/java/eu/hansolo/medusa/Gauge.java
A method is anything named like this:
public void setMinValue(final double VALUE)
you can call that method like this:
B4X:
Dim jo As JavaObject = Gauge1
jo.RunMethod("setMinValue", Array(0.0))
This will set the min value to 0.0

to get:
public double getMinValue() { return null == minValue ? _minValue : minValue.get();
B4X:
Dim jo As JavaObject = Gauge1
Dim Value As Double = jo.RunMethod("getMinValue", Null)
 
Top