Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
330 views
in Technique[技术] by (71.8m points)

java - Color rendering problem in JavaFX Medusa Gauge

Im making a TileKpi gauge in Medusa, i set 3 sections with diferent colors, without highlight, but the colors in the gauge stay faded out, and hightlight the color where the needle is pointed.

code for the gauge:

                Gauge gauge = GaugeBuilder.create()
                    .needleColor(Color.GRAY)
                    .needleBehavior(NeedleBehavior.OPTIMIZED)
                    .unit("Ton. Vapor/MW")
                    .decimals(2)
                    .minValue(0)
                    .maxValue(30)
                    .sectionsVisible(true)
                    .checkSectionsForValue(false)
                    .highlightSections(false)
                    .sections(new Section(0, 10, Color.DODGERBLUE),
                            new Section(10.1, 20, Color.FORESTGREEN),
                            new Section(20.1, 30, Color.RED))
                    .build();
            gauge.setSkin(new TileKpiSkin(gauge));
            gauge.setValue(11.05);

Image of the gauge that is being generated:

enter image description here

question from:https://stackoverflow.com/questions/65850348/color-rendering-problem-in-javafx-medusa-gauge

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...