// TODO
(
w = Window.new.front;
w.view.background = Color.grey;
a = LevelIndicator(w, Rect(10, 10, 300, 30));
a.numTicks = 11;
a.value = 0.7;
)
// a.numSteps = 6;
a.numTicks = 8;
a.numMajorTicks = 2;
a.bounds = Rect(10, 10, 300, 20);
a.bounds = Rect(10, 10, 300, 30);
a.bounds = Rect(10, 10, 20, 300);
// when critical is not given,
// meter gets yellow with level
// _below_ warning
a.warning = 0.5; // green
a.value = 0.3; // yellow
// when critical is not given,
// meter gets yellow with level
// _above_ warning
a.critical = 0.8; // green
a.value = 0.6; // yellow
a.value = 0.8; // red
// with peak shown, color
// depends on peak level
a.peakLevel = 0.3;
a.drawsPeak = true; // green
a.peakLevel = 0.6; // yellow
a.peakLevel = 0.8; // red
GUI.swing;
m = ServerMeter( s );