mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-11 01:32:08 +10:00
naming
This commit is contained in:
@@ -268,7 +268,7 @@ public class PCBTerminalBlock extends AbstractTransparentComponent<PCBTerminalBl
|
||||
int pointCount = count.getCount();
|
||||
int width = (int) getWidth().convertToPixels();
|
||||
int offset;
|
||||
if (getScrewPosition() == ScrewPosition.Central) {
|
||||
if (getScrewPosition() == ScrewPosition.Center) {
|
||||
offset = (int) (getWidth().convertToPixels() / 2);
|
||||
} else {
|
||||
offset = (int) ((getWidth().convertToPixels() - getPitch().convertToPixels()) + getPitch().convertToPixels() / 2);
|
||||
@@ -371,6 +371,6 @@ public class PCBTerminalBlock extends AbstractTransparentComponent<PCBTerminalBl
|
||||
}
|
||||
|
||||
static enum ScrewPosition {
|
||||
Central, Offset;
|
||||
Center, Offset;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user