@Test public void testApplyPosition() { tested.applyPosition(element, MutationContext.STATIC); verify(view, times(1)).setShapeLocation(new Point2D(10d, 20d)); }
@Override public void applyPosition(final Node<View<W>, Edge> element, final MutationContext mutationContext) { final Point2D location = GraphUtils.getPosition(element.getContent()); getShapeView().setShapeLocation(location); }
NodeShapeImpl extends AbstractElementShape<W, View<W>, Node<View<W>, Edge>, D, V> implements NodeShape<W, View<W>, Node<View<W>, Edge>, V>,
                   Lifecycle { @Override public void applyPosition(final Node<View<W>, Edge> element, final MutationContext mutationContext) { final Point2D location = GraphUtils.getPosition(element.getContent()); getShapeView().setShapeLocation(location); } }
NodeShapeImpl extends AbstractElementShape<W, View<W>, Node<View<W>, Edge>, D, V> implements NodeShape<W, View<W>, Node<View<W>, Edge>, V>,
                   Lifecycle { @Override public void applyPosition(final Node<View<W>, Edge> element, final MutationContext mutationContext) { final Point2D location = GraphUtils.getPosition(element.getContent()); getShapeView().setShapeLocation(location); } NodeShapeImpl(final D shapeDef,
                         final AbstractShape<V> shape); }
NodeShapeImpl extends AbstractElementShape<W, View<W>, Node<View<W>, Edge>, D, V> implements NodeShape<W, View<W>, Node<View<W>, Edge>, V>,
                   Lifecycle { @Override public void applyPosition(final Node<View<W>, Edge> element, final MutationContext mutationContext) { final Point2D location = GraphUtils.getPosition(element.getContent()); getShapeView().setShapeLocation(location); } NodeShapeImpl(final D shapeDef,
                         final AbstractShape<V> shape); @Override void applyPosition(final Node<View<W>, Edge> element,
                              final MutationContext mutationContext); @Override void applyState(final ShapeState shapeState); }
NodeShapeImpl extends AbstractElementShape<W, View<W>, Node<View<W>, Edge>, D, V> implements NodeShape<W, View<W>, Node<View<W>, Edge>, V>,
                   Lifecycle { @Override public void applyPosition(final Node<View<W>, Edge> element, final MutationContext mutationContext) { final Point2D location = GraphUtils.getPosition(element.getContent()); getShapeView().setShapeLocation(location); } NodeShapeImpl(final D shapeDef,
                         final AbstractShape<V> shape); @Override void applyPosition(final Node<View<W>, Edge> element,
                              final MutationContext mutationContext); @Override void applyState(final ShapeState shapeState);  }