package de.mazdermind.MultiWiiOps.UI.Cockpit;

import java.awt.Color;
import java.awt.GridLayout;

import javax.swing.JLabel;

public class StatusPanel extends JLabel {
	private static final long serialVersionUID = 5999631872010288870L;
	private StatusLedPanel acc, baro, mag, arm, stable, horizon, gps, sonar, optic, althold, headfree, headadj;

	public StatusPanel() {
		setLayout(new GridLayout(2, 6, 20, 20));
		setOpaque(false);
		
		Color sensorColor = new Color(0, 255, 32);
		Color statusColor = new Color(255, 192, 32);

		acc = new StatusLedPanel("ACC", sensorColor);
		acc.setEnabled(false);
		add(acc);
		baro = new StatusLedPanel("BARO", sensorColor);
		baro.setEnabled(false);
		add(baro);
		mag = new StatusLedPanel("MAG", sensorColor);
		add(mag);
		
		arm = new StatusLedPanel("ARM", statusColor);
		add(arm);
		stable = new StatusLedPanel("STABLE", statusColor);
		add(stable);
		stable.setEnabled(false);
		horizon = new StatusLedPanel("HORIZON", statusColor);
		add(horizon);
		
		gps = new StatusLedPanel("GPS", sensorColor);
		add(gps);
		sonar = new StatusLedPanel("SONAR", sensorColor);
		add(sonar);
		optic = new StatusLedPanel("OPTIC", sensorColor);
		add(optic);
		
		althold = new StatusLedPanel("ALTHOLD", statusColor);
		althold .setEnabled(false);
		add(althold);
		headfree = new StatusLedPanel("HEADFREE", statusColor);
		add(headfree);
		headadj = new StatusLedPanel("HEADADJ", statusColor);
		add(headadj);
	}

}

@@ -592,24 +592,197 @@
 led(false);%0A
+%09%09acc.setToolTipText(%22%3Chtml%3EToolTipTest ;)%3Cbr/%3E%3Cbr /%3E%3Cb%3EFoo%3C/b%3E: bar bar bar bar bar bar%3Cbr/%3E%3Cbr /%3E%3Cb%3EMoo%3C/b%3E: arp arp arp arp arp arp arp arp arp arp arp arp arp%3C/html%3E%22);%0A
 %09%09add(acc);%0A

test tooltiptext options