@Test @SuppressWarnings("unchecked") public void getUUID_AtWhenOverShape() { final double x = 0.0; final double y = 0.0; final String expectedUUID = "uuid"; whenThereIsAShapeAt(registerShape(expectedUUID).getPath(), x, y); final String actualUUID = LienzoLayerUtils.getUUID_At(lienzoLayer, x, y); assertEquals(expectedUUID, actualUUID); }
public static String getUUID_At(final LienzoLayer lienzoLayer, final double x, final double y) { int sx = (int) x; int sy = (int) y; final Shape<?> shape = lienzoLayer.getLienzoLayer().getLayer().findShapeAtPoint(sx, sy); final String viewUUID = getShapeUUID(shape); return viewUUID; }
LienzoLayerUtils { public static String getUUID_At(final LienzoLayer lienzoLayer, final double x, final double y) { int sx = (int) x; int sy = (int) y; final Shape<?> shape = lienzoLayer.getLienzoLayer().getLayer().findShapeAtPoint(sx, sy); final String viewUUID = getShapeUUID(shape); return viewUUID; } }
LienzoLayerUtils { public static String getUUID_At(final LienzoLayer lienzoLayer, final double x, final double y) { int sx = (int) x; int sy = (int) y; final Shape<?> shape = lienzoLayer.getLienzoLayer().getLayer().findShapeAtPoint(sx, sy); final String viewUUID = getShapeUUID(shape); return viewUUID; }  }
LienzoLayerUtils { public static String getUUID_At(final LienzoLayer lienzoLayer, final double x, final double y) { int sx = (int) x; int sy = (int) y; final Shape<?> shape = lienzoLayer.getLienzoLayer().getLayer().findShapeAtPoint(sx, sy); final String viewUUID = getShapeUUID(shape); return viewUUID; }  static String layerToDataURL(final LienzoLayer lienzoLayer,
                                        final DataURLType dataURLType,
                                        final int x,
                                        final int y,
                                        final int width,
                                        final int height,
                                        final String bgColor); static Bounds computeBounds(final LienzoLayer layer); static String getUUID_At(final LienzoLayer lienzoLayer,
                                    final double x,
                                    final double y); }
LienzoLayerUtils { public static String getUUID_At(final LienzoLayer lienzoLayer, final double x, final double y) { int sx = (int) x; int sy = (int) y; final Shape<?> shape = lienzoLayer.getLienzoLayer().getLayer().findShapeAtPoint(sx, sy); final String viewUUID = getShapeUUID(shape); return viewUUID; }  static String layerToDataURL(final LienzoLayer lienzoLayer,
                                        final DataURLType dataURLType,
                                        final int x,
                                        final int y,
                                        final int width,
                                        final int height,
                                        final String bgColor); static Bounds computeBounds(final LienzoLayer layer); static String getUUID_At(final LienzoLayer lienzoLayer,
                                    final double x,
                                    final double y);  }