pot icon improvement

This commit is contained in:
bancika
2017-04-26 15:42:45 +02:00
parent f43cd8d90a
commit 3f4b0475bc
3 changed files with 5 additions and 0 deletions
Binary file not shown.
@@ -314,8 +314,13 @@ public class PotentiometerPanel extends AbstractPotentiometer {
@Override
public void drawIcon(Graphics2D g2d, int width, int height) {
int margin = 4 * width / 32;
int waferMargin = 5 * width / 32;
int spacing = width / 3 - 1;
g2d.setStroke(ObjectCache.getInstance().fetchBasicStroke(1 * width / 32));
g2d.setColor(WAFER_COLOR);
g2d.fillRect(waferMargin, height / 2, width - 2 * waferMargin, height / 3);
g2d.setColor(BORDER_COLOR);
g2d.drawRoundRect(waferMargin, height / 2, width - 2 * waferMargin, height / 3, 2 * width / 32, 2 * width / 32);
g2d.setStroke(ObjectCache.getInstance().fetchBasicStroke(2 * width / 32));
g2d.drawLine(width / 2 - spacing, height / 2, width / 2 - spacing, height - margin);
g2d.drawLine(width / 2 + spacing, height / 2, width / 2 + spacing, height - margin);
Binary file not shown.