mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-11 01:32:08 +10:00
Plastic DC jack
This commit is contained in:
+9
-7
@@ -156,13 +156,15 @@ public class PlasticDCJack extends AbstractTransparentComponent<String> {
|
|||||||
g2d.setColor(METAL_COLOR.darker());
|
g2d.setColor(METAL_COLOR.darker());
|
||||||
g2d.draw(body[3]);
|
g2d.draw(body[3]);
|
||||||
|
|
||||||
int spacing = (int) SPACING.convertToPixels();
|
if (!outlineMode) {
|
||||||
g2d.setColor(MARKING_COLOR);
|
int spacing = (int) SPACING.convertToPixels();
|
||||||
g2d.setFont(LABEL_FONT.deriveFont(12f));
|
g2d.setColor(MARKING_COLOR);
|
||||||
drawCenteredText(g2d, "+", controlPoints[0].x, controlPoints[0].y - spacing * 7 / 16,
|
g2d.setFont(LABEL_FONT.deriveFont(12f));
|
||||||
HorizontalAlignment.CENTER, VerticalAlignment.CENTER);
|
drawCenteredText(g2d, "+", controlPoints[0].x, controlPoints[0].y - spacing * 7 / 16,
|
||||||
drawCenteredText(g2d, "_", controlPoints[2].x, controlPoints[2].y - spacing * 3 / 4,
|
HorizontalAlignment.CENTER, VerticalAlignment.CENTER);
|
||||||
HorizontalAlignment.CENTER, VerticalAlignment.CENTER);
|
drawCenteredText(g2d, "_", controlPoints[2].x, controlPoints[2].y - spacing * 3 / 4,
|
||||||
|
HorizontalAlignment.CENTER, VerticalAlignment.CENTER);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user