Render capacitor polarity markings properly when zommed in

This commit is contained in:
Branislav Stojkovic
2019-01-09 16:09:07 +01:00
parent 54e97b9adc
commit a6538947d0
4 changed files with 3 additions and 3 deletions
@@ -206,7 +206,7 @@ public class AxialElectrolyticCapacitor extends AbstractLeadedComponent<Capacita
finalTickColor = tickColor; finalTickColor = tickColor;
} }
g2d.setColor(finalTickColor); g2d.setColor(finalTickColor);
g2d.setStroke(ObjectCache.getInstance().fetchBasicStroke(2)); g2d.setStroke(ObjectCache.getInstance().fetchZoomableStroke(2));
g2d.drawLine((int) getLength().convertToPixels() - markerLength / 2, (int) (width / 2 - width * 0.15), g2d.drawLine((int) getLength().convertToPixels() - markerLength / 2, (int) (width / 2 - width * 0.15),
(int) getLength().convertToPixels() - markerLength / 2, (int) (width / 2 + width * 0.15)); (int) getLength().convertToPixels() - markerLength / 2, (int) (width / 2 + width * 0.15));
} else { } else {
@@ -172,7 +172,7 @@ public class RadialElectrolytic extends AbstractRadialComponent<Capacitance> {
finalTickColor = tickColor; finalTickColor = tickColor;
} }
g2d.setColor(finalTickColor); g2d.setColor(finalTickColor);
g2d.setStroke(ObjectCache.getInstance().fetchBasicStroke(2)); g2d.setStroke(ObjectCache.getInstance().fetchZoomableStroke(2));
if (folded) { if (folded) {
int tickLength = height / 7; int tickLength = height / 7;
for (int i = 0; i < 3; i++) { for (int i = 0; i < 3; i++) {
Binary file not shown.
+1 -1
View File
@@ -2152,7 +2152,7 @@
</org.diylc.appframework.update.Change> </org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change> <org.diylc.appframework.update.Change>
<changeType>IMPROVEMENT</changeType> <changeType>IMPROVEMENT</changeType>
<description>Render resistor color bands properly when zommed in</description> <description>Render resistor color bands and capacitor polarity markings properly when zommed in</description>
</org.diylc.appframework.update.Change> </org.diylc.appframework.update.Change>
</changes> </changes>
<url>https://github.com/bancika/diy-layout-creator/releases</url> <url>https://github.com/bancika/diy-layout-creator/releases</url>