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