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:
+2
@@ -156,6 +156,7 @@ public class PlasticDCJack extends AbstractTransparentComponent<String> {
|
|||||||
g2d.setColor(METAL_COLOR.darker());
|
g2d.setColor(METAL_COLOR.darker());
|
||||||
g2d.draw(body[3]);
|
g2d.draw(body[3]);
|
||||||
|
|
||||||
|
if (!outlineMode) {
|
||||||
int spacing = (int) SPACING.convertToPixels();
|
int spacing = (int) SPACING.convertToPixels();
|
||||||
g2d.setColor(MARKING_COLOR);
|
g2d.setColor(MARKING_COLOR);
|
||||||
g2d.setFont(LABEL_FONT.deriveFont(12f));
|
g2d.setFont(LABEL_FONT.deriveFont(12f));
|
||||||
@@ -164,6 +165,7 @@ public class PlasticDCJack extends AbstractTransparentComponent<String> {
|
|||||||
drawCenteredText(g2d, "_", controlPoints[2].x, controlPoints[2].y - spacing * 3 / 4,
|
drawCenteredText(g2d, "_", controlPoints[2].x, controlPoints[2].y - spacing * 3 / 4,
|
||||||
HorizontalAlignment.CENTER, VerticalAlignment.CENTER);
|
HorizontalAlignment.CENTER, VerticalAlignment.CENTER);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void drawIcon(Graphics2D g2d, int width, int height) {
|
public void drawIcon(Graphics2D g2d, int width, int height) {
|
||||||
|
|||||||
Reference in New Issue
Block a user