public Component getBaseRendererComponent(char base, int pos, int tier, SequenceI seq) { if (panel instanceof BaseEditorPanel && ((BaseEditorPanel) panel).getShowHitZones()) { Vector hitZones = ((BaseEditorPanel) panel).getTranslatedHitZones(phase); hatchColor = null; for (int hitIndex = 0; hitZones != null && hitIndex < hitZones.size(); hitIndex++) { int[] hitZone = (int[]) hitZones.elementAt(hitIndex); if (pos >= hitZone[0] * 3 + phase && pos < hitZone[1] * 3 + phase) { hatchColor = Color.yellow; break; } } } if (colors.get(base + "") == null) setFont(regularFont); else setFont(boldFont); return super.getBaseRendererComponent(base, pos, tier, seq); }
public Color getTextColor() { Color stored = (Color) colors.get(c + ""); if (stored == null) return disabled; else return stored; }