mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-11 01:32:08 +10:00
fixed point visibility on curved trace
added option to hide color bands on the resistor
This commit is contained in:
+6
-3
@@ -2,10 +2,13 @@ package org.diylc.common;
|
||||
|
||||
public enum ResistorColorCode {
|
||||
|
||||
_4_BAND, _5_BAND;
|
||||
|
||||
NONE, _4_BAND, _5_BAND;
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return name().substring(1).replace("_", " ").toLowerCase();
|
||||
if (name().startsWith("_")) {
|
||||
return name().substring(1).replace("_", " ").toLowerCase();
|
||||
}
|
||||
return name().substring(0, 1).toUpperCase() + name().substring(1).toLowerCase();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user