@Test public void testHasFeed() { Assert.assertTrue(PlotViewPolicy.hasFeed(leafWithAFeedComponent)); Assert.assertFalse(PlotViewPolicy.hasFeed(leafWithOutAFeedComponent)); Assert.assertTrue(PlotViewPolicy.hasFeed(nonLeafComponent)); }
static boolean hasFeed(AbstractComponent component) { return component.getCapability(FeedProvider.class) != null || (component.getCapability(Placeholder.class) != null); }
PlotViewPolicy implements Policy { static boolean hasFeed(AbstractComponent component) { return component.getCapability(FeedProvider.class) != null || (component.getCapability(Placeholder.class) != null); } }
PlotViewPolicy implements Policy { static boolean hasFeed(AbstractComponent component) { return component.getCapability(FeedProvider.class) != null || (component.getCapability(Placeholder.class) != null); }  }
PlotViewPolicy implements Policy { static boolean hasFeed(AbstractComponent component) { return component.getCapability(FeedProvider.class) != null || (component.getCapability(Placeholder.class) != null); }  @Override ExecutionResult execute(PolicyContext context); static AbstractComponent[][] getPlotComponents(AbstractComponent targetComponent, boolean ordinalPosition); static boolean isScatterPlottable(AbstractComponent comp); static boolean isOverlaidScatterPlottable(AbstractComponent comp); }
PlotViewPolicy implements Policy { static boolean hasFeed(AbstractComponent component) { return component.getCapability(FeedProvider.class) != null || (component.getCapability(Placeholder.class) != null); }  @Override ExecutionResult execute(PolicyContext context); static AbstractComponent[][] getPlotComponents(AbstractComponent targetComponent, boolean ordinalPosition); static boolean isScatterPlottable(AbstractComponent comp); static boolean isOverlaidScatterPlottable(AbstractComponent comp);  }