@Test public void testPrepare() { assertThat(line.prepare(context, attributes, 1.0)).isTrue(); verify(context).beginPath(); verify(context).moveTo(eq(0.0), eq(0.0)); verify(context).lineTo(eq(WIDTH), eq(0.0)); }
@Override protected boolean prepare(final Context2D context, final Attributes attr, final double alpha) { context.beginPath(); context.moveTo(0.0, 0.0); context.lineTo(dynamicWidthSupplier.get(), 0.0); return true; }
DecisionServiceDividerLine extends Line { @Override protected boolean prepare(final Context2D context, final Attributes attr, final double alpha) { context.beginPath(); context.moveTo(0.0, 0.0); context.lineTo(dynamicWidthSupplier.get(), 0.0); return true; } }
DecisionServiceDividerLine extends Line { @Override protected boolean prepare(final Context2D context, final Attributes attr, final double alpha) { context.beginPath(); context.moveTo(0.0, 0.0); context.lineTo(dynamicWidthSupplier.get(), 0.0); return true; } DecisionServiceDividerLine(final Supplier<Double> dynamicWidthSupplier); }
DecisionServiceDividerLine extends Line { @Override protected boolean prepare(final Context2D context, final Attributes attr, final double alpha) { context.beginPath(); context.moveTo(0.0, 0.0); context.lineTo(dynamicWidthSupplier.get(), 0.0); return true; } DecisionServiceDividerLine(final Supplier<Double> dynamicWidthSupplier);  }
DecisionServiceDividerLine extends Line { @Override protected boolean prepare(final Context2D context, final Attributes attr, final double alpha) { context.beginPath(); context.moveTo(0.0, 0.0); context.lineTo(dynamicWidthSupplier.get(), 0.0); return true; } DecisionServiceDividerLine(final Supplier<Double> dynamicWidthSupplier);   }