public void set(XMLChannel ch) { this.ch = ch; StringBuffer buf = new StringBuffer("<html><b>"); buf.append(ch.getChannel().getName()); buf.append("</b><br>"); // StringBuffer buf = new StringBuffer("<html><font size=\"2\"><font // color=\"#3f3f3f\">"); if (ch.getStart() != null && ch.getStop() != null) { buf.append("<font size=\"2\"><font color=\"#3f3f3f\">"); buf.append(formatter00.format(ch.getStart().get(Calendar.HOUR_OF_DAY))); buf.append(':'); buf.append(formatter00.format(ch.getStart().get(Calendar.MINUTE))); buf.append(" - "); buf.append(formatter00.format(ch.getStop().get(Calendar.HOUR_OF_DAY))); buf.append(':'); buf.append(formatter00.format(ch.getStop().get(Calendar.MINUTE))); buf.append("</font></font> "); } if (ch.getTitle() != null) buf.append(ch.getTitle()); buf.append("</html>"); titleLabel.setText(new String(buf)); marketShareLabel.setText( "<html><h3>" + formatter.format(ch.getMarketShare()) + " %</h3></html>"); logo.setLogo(ch.getChannel()); }
public void setForeground(Color color) { super.setForeground(color); if (logo != null) logo.setForeground(color); if (center != null) center.setForeground(color); // if(bottom != null) // bottom.setForeground(color); if (marketSharePanel != null) marketSharePanel.setForeground(color); }