|
|
@ -208,26 +208,21 @@ public class DarkProgressBarUI extends BasicProgressBarUI implements PropertyCha |
|
|
|
g.setFont(progressBar.getFont()); |
|
|
|
g.setFont(progressBar.getFont()); |
|
|
|
Point renderLocation = getStringPlacement(g, progressString, x, y, w, h); |
|
|
|
Point renderLocation = getStringPlacement(g, progressString, x, y, w, h); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
g.setColor(getSelectionBackground()); |
|
|
|
if (progressBar.getOrientation() == SwingConstants.HORIZONTAL) { |
|
|
|
if (progressBar.getOrientation() == SwingConstants.HORIZONTAL) { |
|
|
|
g.setColor(getSelectionBackground()); |
|
|
|
|
|
|
|
g.drawString(progressString, renderLocation.x, renderLocation.y); |
|
|
|
g.drawString(progressString, renderLocation.x, renderLocation.y); |
|
|
|
|
|
|
|
|
|
|
|
g.setColor(getSelectionForeground()); |
|
|
|
|
|
|
|
g.clipRect(fillStart, y, amountFull, h); |
|
|
|
g.clipRect(fillStart, y, amountFull, h); |
|
|
|
g.drawString(progressString, renderLocation.x, renderLocation.y); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else { // VERTICAL
|
|
|
|
} else { // VERTICAL
|
|
|
|
AffineTransform rotate = AffineTransform.getRotateInstance(Math.PI / 2); |
|
|
|
AffineTransform rotate = AffineTransform.getRotateInstance(Math.PI / 2); |
|
|
|
g.setFont(progressBar.getFont().deriveFont(rotate)); |
|
|
|
g.setFont(progressBar.getFont().deriveFont(rotate)); |
|
|
|
renderLocation = getStringPlacement(g, progressString, x, y, w, h); |
|
|
|
renderLocation = getStringPlacement(g, progressString, x, y, w, h); |
|
|
|
|
|
|
|
|
|
|
|
g.setColor(getSelectionBackground()); |
|
|
|
|
|
|
|
g.drawString(progressString, renderLocation.x, renderLocation.y); |
|
|
|
g.drawString(progressString, renderLocation.x, renderLocation.y); |
|
|
|
|
|
|
|
|
|
|
|
g.clipRect(x, fillStart, w, amountFull); |
|
|
|
g.clipRect(x, fillStart, w, amountFull); |
|
|
|
g.setColor(getSelectionForeground()); |
|
|
|
|
|
|
|
g.drawString(progressString, renderLocation.x, renderLocation.y); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
g.setColor(getSelectionForeground()); |
|
|
|
|
|
|
|
g.drawString(progressString, renderLocation.x, renderLocation.y); |
|
|
|
config.restore(); |
|
|
|
config.restore(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -354,4 +349,4 @@ public class DarkProgressBarUI extends BasicProgressBarUI implements PropertyCha |
|
|
|
progressBar.repaint(); |
|
|
|
progressBar.repaint(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|