@Override
		protected void paintComponent(Graphics g) {
			setBackground(colorService.getColor(type));
			super.paintComponent(g);
		}
Kick to repaint when the colors have changed.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/overview/addresstype/AddressTypeOverviewLegendPanel.java