Aug 31, 2016 Replies: 42 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) Attachments GaugesExample.zip GaugesExample.zip 4.5 KB · Views: 1,742 Last edited: Nov 24, 2019 Click to expand...
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)
Mashiane Expert Licensed User Longtime User Aug 31, 2016 #2 Erel said: 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. Click to expand... Wow, this is brilliant...
Erel said: 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. Click to expand... Wow, this is brilliant...
rbghongade Well-Known Member Licensed User Longtime User Aug 31, 2016 #3 Erel, that is truly fantastic! Wanted guages desperately! You are a mind-reader!
vfafou Well-Known Member Licensed User Longtime User Aug 31, 2016 #4 Truly needed for a newcoming telemetry project! Thank you Erel... You' ve just made me drop Microsoft Visual Studio once more!
Truly needed for a newcoming telemetry project! Thank you Erel... You' ve just made me drop Microsoft Visual Studio once more!
rbghongade Well-Known Member Licensed User Longtime User Sep 1, 2016 #5 Dear Erel, Any possibility of creating the same library for B4A?
Erel B4X founder Staff member Licensed User Longtime User Sep 1, 2016 #6 rbghongade said: Any possibility of creating the same library for B4A? Click to expand... This library is based on a JavaFX project. It cannot be ported to Android.
rbghongade said: Any possibility of creating the same library for B4A? Click to expand... This library is based on a JavaFX project. It cannot be ported to Android.
Harris Expert Licensed User Longtime User Sep 3, 2016 #7 Hummm, wonder if these would be accessible in ABMaterial?
Erel B4X founder Staff member Licensed User Longtime User Sep 4, 2016 #8 No. These are JavaFX controls.
sz4t4n Member Licensed User Longtime User Sep 5, 2016 #9 it's fantastic! I have one question. Is there posibility to set min and max value in code or only in designer?
it's fantastic! I have one question. Is there posibility to set min and max value in code or only in designer?
Erel B4X founder Staff member Licensed User Longtime User Sep 6, 2016 #10 You can use this code to set those values: Code: Copy Dim minValue, maxValue As Double 'type is important minValue = 10 maxValue = 200 Dim jo As JavaObject = Gauge1 jo.RunMethod("setMinValue", Array(minValue)) jo.RunMethod("setMaxValue", Array(maxValue))
You can use this code to set those values: Code: Copy Dim minValue, maxValue As Double 'type is important minValue = 10 maxValue = 200 Dim jo As JavaObject = Gauge1 jo.RunMethod("setMinValue", Array(minValue)) jo.RunMethod("setMaxValue", Array(maxValue))
sz4t4n Member Licensed User Longtime User Sep 6, 2016 #11 It's works perfect. One more question Where can i find all methods in this library? I have to look into source code?
It's works perfect. One more question Where can i find all methods in this library? I have to look into source code?
Erel B4X founder Staff member Licensed User Longtime User Sep 7, 2016 #12 sz4t4n said: I have to look into source code? Click to expand... Yes.
luke2012 Well-Known Member Licensed User Longtime User Nov 13, 2016 #13 Wonderful library! Is there a version (like this) for B4A ?
Erel B4X founder Staff member Licensed User Longtime User Nov 15, 2016 #14 No. This is based on a JavaFX library. B4A: https://www.b4x.com/android/forum/pages/results/?query=gauges&product=b4a
No. This is based on a JavaFX library. B4A: https://www.b4x.com/android/forum/pages/results/?query=gauges&product=b4a
M micro Well-Known Member Licensed User Longtime User Dec 9, 2016 #15 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
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
Erel B4X founder Staff member Licensed User Longtime User Dec 11, 2016 #16 Code: Copy Dim jo As JavaObject = Gauge1 jo.RunMethod("setValueColor", Array(fx.Colors.Red))
CHAUVET Member Licensed User Longtime User Jan 26, 2017 #19 Thanks Erel, sz4t4n said: Where can i find all methods in this library? I have to look into source code? Click to expand... 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
Thanks Erel, sz4t4n said: Where can i find all methods in this library? I have to look into source code? Click to expand... 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 Jan 27, 2017 #20 Erel said: The gauges are implemented as custom views Click to expand... 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. CHAUVET said: How can I find the list of methods available in this library? Click to expand... 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) Click to expand... you can call that method like this: Code: Copy 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(); Click to expand... Code: Copy Dim jo As JavaObject = Gauge1 Dim Value As Double = jo.RunMethod("getMinValue", Null)
Erel said: The gauges are implemented as custom views Click to expand... 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. CHAUVET said: How can I find the list of methods available in this library? Click to expand... 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) Click to expand... you can call that method like this: Code: Copy 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(); Click to expand... Code: Copy Dim jo As JavaObject = Gauge1 Dim Value As Double = jo.RunMethod("getMinValue", Null)