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:

MarcoRome

Expert
Licensed User
Longtime User
Hi Erel.
In the demo at post 1 when i try to run the same i have the following error.

Waiting for debugger to connect...
Program started.
java.lang.NullPointerException
at eu.hansolo.medusa.skins.IndicatorSkin.handleEvents(IndicatorSkin.java:251)
at eu.hansolo.medusa.skins.GaugeSkinBase.lambda$2(GaugeSkinBase.java:51)
at eu.hansolo.medusa.Gauge.fireUpdateEvent(Gauge.java:5826)
at eu.hansolo.medusa.Gauge.lambda$0(Gauge.java:788)
at javafx.animation.Animation.impl_finished(Animation.java:1132)
at javafx.animation.AnimationAccessorImpl.finished(AnimationAccessorImpl.java:49)
at com.sun.scenario.animation.shared.SingleLoopClipEnvelope.timePulse(SingleLoopClipEnvelope.java:103)
at javafx.animation.Animation.impl_timePulse(Animation.java:1102)
at javafx.animation.Animation$1.lambda$timePulse$25(Animation.java:186)
at java.security.AccessController.doPrivileged(Native Method)
at javafx.animation.Animation$1.timePulse(Animation.java:185)
at com.sun.scenario.animation.AbstractMasterTimer.timePulseImpl(AbstractMasterTimer.java:344)
at com.sun.scenario.animation.AbstractMasterTimer$MainLoop.run(AbstractMasterTimer.java:267)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:506)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:490)
at com.sun.javafx.tk.quantum.QuantumToolkit.lambda$runToolkit$404(QuantumToolkit.java:319)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)
at java.lang.Thread.run(Thread.java:745)

Any idea ?
 

MarcoRome

Expert
Licensed User
Longtime User
Right, work, but every time you click on the button, you get the same problem.
 
Top