@Test public void testAttachPlotLine() { AbstractPlotLine mockPlotLine = Mockito.mock(AbstractPlotLine.class); Mockito.when(mockPlotLine.getColor()).thenReturn(TEST_COLOR); Assert.assertFalse(containsColor(drawComponent(view), TEST_COLOR)); view.attachPlotLine(mockPlotLine); Assert.assertTrue (containsColor(drawComponent(view), TEST_COLOR)); }
@Override public void attachPlotLine(AbstractPlotLine plotLine) { Color c = plotLine.getColor(); Icon i = plotLine.getIcon(); setAppearance(c, i); }
LegendEntryView extends FeedView implements AbstractLegendEntry { @Override public void attachPlotLine(AbstractPlotLine plotLine) { Color c = plotLine.getColor(); Icon i = plotLine.getIcon(); setAppearance(c, i); } }
LegendEntryView extends FeedView implements AbstractLegendEntry { @Override public void attachPlotLine(AbstractPlotLine plotLine) { Color c = plotLine.getColor(); Icon i = plotLine.getIcon(); setAppearance(c, i); } LegendEntryView(AbstractComponent ac, ViewInfo vi); }
LegendEntryView extends FeedView implements AbstractLegendEntry { @Override public void attachPlotLine(AbstractPlotLine plotLine) { Color c = plotLine.getColor(); Icon i = plotLine.getIcon(); setAppearance(c, i); } 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 { @Override public void attachPlotLine(AbstractPlotLine plotLine) { Color c = plotLine.getColor(); Icon i = plotLine.getIcon(); setAppearance(c, i); } 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; }