CommRenderer extends AbstractTypedCanvasRenderer<CommUser> { @CheckReturnValue public static Builder builder() { return Builder.create(); } CommRenderer(Builder b, CommModel m); @Override void renderStatic(GC gc, ViewPort vp); @Override void renderDynamic(GC gc, ViewPort vp, long time); @Override boolean register(CommUser element); @Override boolean unregister(CommUser element); @CheckReturnValue static Builder builder();  }
@Test public void testColorSettings() { final RGB unreliableIn = new RGB(255, 255, 0); final RGB reliableIn = new RGB(0, 0, 255); final CommRenderer.Builder b = CommRenderer.builder() .withReliabilityColors(unreliableIn, reliableIn); assertThat(b.reliableColor()).isNotSameAs(reliableIn); assertThat(b.unreliableColor()).isNotSameAs(unreliableIn); assertThat(b.reliableColor()).isEqualTo(reliableIn); assertThat(b.unreliableColor()).isEqualTo(unreliableIn); }