@Test public void testGetPrimitive() { Optional<SVGPrimitive> r1 = SVGViewUtils.getPrimitive(svgShape, "p1"); assertTrue(r1.isPresent()); assertEquals(primitive1, r1.get()); assertEquals(p1, r1.get().get()); Optional<SVGPrimitive> r2 = SVGViewUtils.getPrimitive(svgShape, "p2"); assertTrue(r2.isPresent()); assertEquals(primitive2, r2.get()); assertEquals(p2, r2.get().get()); }
public static Optional<SVGPrimitive> getPrimitive(final SVGShapeView<?> view, final String id) { return Optional.ofNullable(getPrimitive(view.getChildren(), id)); }
SVGViewUtils { public static Optional<SVGPrimitive> getPrimitive(final SVGShapeView<?> view, final String id) { return Optional.ofNullable(getPrimitive(view.getChildren(), id)); } }
SVGViewUtils { public static Optional<SVGPrimitive> getPrimitive(final SVGShapeView<?> view, final String id) { return Optional.ofNullable(getPrimitive(view.getChildren(), id)); }  }
SVGViewUtils { public static Optional<SVGPrimitive> getPrimitive(final SVGShapeView<?> view, final String id) { return Optional.ofNullable(getPrimitive(view.getChildren(), id)); }  static void switchVisibility(final SVGShapeView<?> view,
                                        final String visibleId,
                                        final String nonVisibleId); @SuppressWarnings("unchecked") static V getVisibleShape(final ShapeView<?>... views); static Optional<SVGPrimitive> getPrimitive(final SVGShapeView<?> view,
                                                      final String id); static SVGPrimitive getPrimitive(final SVGContainer container,
                                            final String id); static SVGPrimitive getPrimitive(final Collection<SVGPrimitive<?>> primitives,
                                            final String id); static SVGPrimitive getPrimitive(final SVGPrimitive<?> primitive,
                                            final String id); static void setFillAndStroke(final SVGShapeView<?> view, final String id, final double fill, final double stroke); }
SVGViewUtils { public static Optional<SVGPrimitive> getPrimitive(final SVGShapeView<?> view, final String id) { return Optional.ofNullable(getPrimitive(view.getChildren(), id)); }  static void switchVisibility(final SVGShapeView<?> view,
                                        final String visibleId,
                                        final String nonVisibleId); @SuppressWarnings("unchecked") static V getVisibleShape(final ShapeView<?>... views); static Optional<SVGPrimitive> getPrimitive(final SVGShapeView<?> view,
                                                      final String id); static SVGPrimitive getPrimitive(final SVGContainer container,
                                            final String id); static SVGPrimitive getPrimitive(final Collection<SVGPrimitive<?>> primitives,
                                            final String id); static SVGPrimitive getPrimitive(final SVGPrimitive<?> primitive,
                                            final String id); static void setFillAndStroke(final SVGShapeView<?> view, final String id, final double fill, final double stroke);  }