@Test public void testSetAppearanceColor() { Assert.assertFalse(containsColor(drawComponent(view), TEST_COLOR)); view.setAppearance(TEST_COLOR, null); Assert.assertTrue (containsColor(drawComponent(view), TEST_COLOR)); }
public void setAppearance(Color c, Icon i) { label.setForeground(c); label.setFont(updateBaseFont(Font.PLAIN)); label.setIcon(new Icon() { @Override public int getIconHeight() { return 9; } @Override public int getIconWidth() { return 9; } @Override public void paintIcon(Component c, Graphics g, int x, int y) { } }); }
LegendEntryView extends FeedView implements AbstractLegendEntry { public void setAppearance(Color c, Icon i) { label.setForeground(c); label.setFont(updateBaseFont(Font.PLAIN)); label.setIcon(new Icon() { @Override public int getIconHeight() { return 9; } @Override public int getIconWidth() { return 9; } @Override public void paintIcon(Component c, Graphics g, int x, int y) { } }); } }
LegendEntryView extends FeedView implements AbstractLegendEntry { public void setAppearance(Color c, Icon i) { label.setForeground(c); label.setFont(updateBaseFont(Font.PLAIN)); label.setIcon(new Icon() { @Override public int getIconHeight() { return 9; } @Override public int getIconWidth() { return 9; } @Override public void paintIcon(Component c, Graphics g, int x, int y) { } }); } LegendEntryView(AbstractComponent ac, ViewInfo vi); }
LegendEntryView extends FeedView implements AbstractLegendEntry { public void setAppearance(Color c, Icon i) { label.setForeground(c); label.setFont(updateBaseFont(Font.PLAIN)); label.setIcon(new Icon() { @Override public int getIconHeight() { return 9; } @Override public int getIconWidth() { return 9; } @Override public void paintIcon(Component c, Graphics g, int x, int y) { } }); } LegendEntryView(AbstractComponent ac, ViewInfo vi); void setAppearance(Color c, Icon i); @Override void updateFromFeed(Map<String, List<Map<String, String>>> data); @Override void synchronizeTime(Map<String, List<Map<String, String>>> data,
			long syncTime); @Override Collection<FeedProvider> getVisibleFeedProviders(); @Override void attachPlotLine(AbstractPlotLine plotLine); @Override String getDisplayedName(); @Override void setBaseDisplayName(String displayName); }
LegendEntryView extends FeedView implements AbstractLegendEntry { public void setAppearance(Color c, Icon i) { label.setForeground(c); label.setFont(updateBaseFont(Font.PLAIN)); label.setIcon(new Icon() { @Override public int getIconHeight() { return 9; } @Override public int getIconWidth() { return 9; } @Override public void paintIcon(Component c, Graphics g, int x, int y) { } }); } LegendEntryView(AbstractComponent ac, ViewInfo vi); void setAppearance(Color c, Icon i); @Override void updateFromFeed(Map<String, List<Map<String, String>>> data); @Override void synchronizeTime(Map<String, List<Map<String, String>>> data,
			long syncTime); @Override Collection<FeedProvider> getVisibleFeedProviders(); @Override void attachPlotLine(AbstractPlotLine plotLine); @Override String getDisplayedName(); @Override void setBaseDisplayName(String displayName); static final ViewInfo VIEW_INFO; }