hades.models.ruge
Class Color_DIN_IEC_62
java.lang.Object
hades.models.ruge.Color_DIN_IEC_62
- public class Color_DIN_IEC_62
- extends java.lang.Object
Color_DIN_IEC_62 - encode numerical values in DIN/IEC 62 colors as
used for resistor labelling. We take the last
decimal digit and generate the corresponding color, except for
value==9 (because white would not be visible).
0=black, 1=brown, 2=red, 3=orange, 4=yellow, 5=green,
6=blue, 7=lila, 8=grey, 9=dark blue (instead of white)
Field Summary |
protected static java.awt.Color[] |
colors
|
Method Summary |
static java.awt.Color |
getColor(int value)
|
static java.awt.Color |
getColor(java.lang.Integer integer)
|
java.lang.String |
toString()
toString() - the usual info method |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
colors
protected static java.awt.Color[] colors
Color_DIN_IEC_62
public Color_DIN_IEC_62()
getColor
public static java.awt.Color getColor(int value)
getColor
public static java.awt.Color getColor(java.lang.Integer integer)
toString
public java.lang.String toString()
- toString() - the usual info method