HanSolo / medusa

A JavaFX library for Gauges
Apache License 2.0
687 stars 129 forks source link

How to set propeties boader for bar #195

Closed PAIDI-RAMESH closed 4 years ago

PAIDI-RAMESH commented 4 years ago

image image

HanSolo commented 4 years ago

Because of the missing description I guess you would like to know how to set the border for the bar??? There is no property in the Gauge class to set the border of the bar directly, instead you can create your own skin and design it as you like. The easiest way would be to take the LinearSkin and create a copy of it e.g. MyLinearSkin. In this skin you can modify the code however you like it and if you are done with your modifications you can use your skin as follows.

Gauge gauge = GaugeBuilder.create()
                          .skinType(SkinType.GAUGE)
                          .prefSize(100, 300)
                          .build();
gauge.setSkin(new MyLinearSkin(gauge));