fixed point visibility on curved trace

added option to hide color bands on the resistor
This commit is contained in:
bancika
2011-01-28 17:48:46 +00:00
parent 11b7756a59
commit 7de327b9bd
7 changed files with 38 additions and 12 deletions
@@ -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();
}
}