Fixed antialiasing rendering III

This commit is contained in:
Robert Vokac 2024-03-27 17:41:36 +01:00
parent cd00cae782
commit 9faeb4f7d7
No known key found for this signature in database
GPG Key ID: 693D30BEE3329055

View File

@ -100,7 +100,13 @@ public class ProgressFuelGauge extends Widget implements GetProperty {
int endX2 = (int) (startX + length * Math.cos(angle));
int endY2 = (int) (startY + length * Math.sin(angle));
if(mouseOver) {
brush.setColor(visibility.isStronglyColored() ? Color.BLUE
: visibility.isWeaklyColored() ? Color.BLUE
: Color.WHITE);
}
brush.drawLine(startX, startY, endX2, endY2);
brush.setColor(Color.WHITE);
//
((Graphics2D)brush).setStroke(new BasicStroke(1f));
int length_ = (int) (ovalWidth * 1.5d);
@ -131,6 +137,11 @@ public class ProgressFuelGauge extends Widget implements GetProperty {
tBrush.drawBorder(startX, startY, 5, length_ - 4, getAngle.apply(0.75d), 2f, brush.getColor());
tBrush.drawBorder(startX, startY, 6, length_ - 7, getAngle.apply(1.d - 0.02d), 7f, brush.getColor());
//
if(mouseOver) {
brush.setColor(visibility.isStronglyColored() ? Color.BLUE
: visibility.isWeaklyColored() ? Color.BLUE
: Color.WHITE);
}
((Graphics2D)brush).setStroke(new BasicStroke(3f));
brush.drawLine(startX, startY, endX, endY);
//