@Test public void testGetGhost() throws Exception { final CaseManagementShapeView child = createShapeView("child"); shape.add(child); final CaseManagementShapeView ghost = shape.getGhost(); assertTrue(ILayoutHandler.NONE.equals(ghost.getLayoutHandler())); assertEquals(ghost.getUUID(), shape.getUUID()); assertTrue(ghost.getChildShapes().size() == 1); CaseManagementShapeView ghostChild = (CaseManagementShapeView) ghost.getChildShapes().toList().get(0); assertEquals(ghostChild.getUUID(), child.getUUID()); }
public CaseManagementShapeView getGhost() { final CaseManagementShapeView ghost = createGhost(); if (null != ghost) { ghost.setFillColor(ColorName.GRAY.getColorString()); ghost.setFillAlpha(0.5d); ghost.setStrokeAlpha(0.5d); ghost.setUUID(getUUID()); } return ghost; }
CaseManagementShapeView extends SVGShapeViewImpl implements HasSize<SVGShapeViewImpl> { public CaseManagementShapeView getGhost() { final CaseManagementShapeView ghost = createGhost(); if (null != ghost) { ghost.setFillColor(ColorName.GRAY.getColorString()); ghost.setFillAlpha(0.5d); ghost.setStrokeAlpha(0.5d); ghost.setUUID(getUUID()); } return ghost; } }
CaseManagementShapeView extends SVGShapeViewImpl implements HasSize<SVGShapeViewImpl> { public CaseManagementShapeView getGhost() { final CaseManagementShapeView ghost = createGhost(); if (null != ghost) { ghost.setFillColor(ColorName.GRAY.getColorString()); ghost.setFillAlpha(0.5d); ghost.setStrokeAlpha(0.5d); ghost.setUUID(getUUID()); } return ghost; } CaseManagementShapeView(final String name,
                                   final SVGPrimitiveShape svgPrimitive,
                                   final double width,
                                   final double height,
                                   final boolean resizable);  CaseManagementShapeView(final String name,
                                   final SVGPrimitiveShape svgPrimitive,
                                   final double width,
                                   final double height,
                                   final boolean resizable,
                                   final Optional<MultiPath> optDropZone); }
CaseManagementShapeView extends SVGShapeViewImpl implements HasSize<SVGShapeViewImpl> { public CaseManagementShapeView getGhost() { final CaseManagementShapeView ghost = createGhost(); if (null != ghost) { ghost.setFillColor(ColorName.GRAY.getColorString()); ghost.setFillAlpha(0.5d); ghost.setStrokeAlpha(0.5d); ghost.setUUID(getUUID()); } return ghost; } CaseManagementShapeView(final String name,
                                   final SVGPrimitiveShape svgPrimitive,
                                   final double width,
                                   final double height,
                                   final boolean resizable);  CaseManagementShapeView(final String name,
                                   final SVGPrimitiveShape svgPrimitive,
                                   final double width,
                                   final double height,
                                   final boolean resizable,
                                   final Optional<MultiPath> optDropZone); void setLabel(String shapeLabel); double getWidth(); double getHeight(); void logicallyReplace(final CaseManagementShapeView original, final CaseManagementShapeView replacement); void addShape(final WiresShape shape, final int targetIndex); int getIndex(final WiresShape shape); Optional<MultiPath> getDropZone(); CaseManagementShapeView getGhost(); void setCanvas(CaseManagementCanvas canvas); }
CaseManagementShapeView extends SVGShapeViewImpl implements HasSize<SVGShapeViewImpl> { public CaseManagementShapeView getGhost() { final CaseManagementShapeView ghost = createGhost(); if (null != ghost) { ghost.setFillColor(ColorName.GRAY.getColorString()); ghost.setFillAlpha(0.5d); ghost.setStrokeAlpha(0.5d); ghost.setUUID(getUUID()); } return ghost; } CaseManagementShapeView(final String name,
                                   final SVGPrimitiveShape svgPrimitive,
                                   final double width,
                                   final double height,
                                   final boolean resizable);  CaseManagementShapeView(final String name,
                                   final SVGPrimitiveShape svgPrimitive,
                                   final double width,
                                   final double height,
                                   final boolean resizable,
                                   final Optional<MultiPath> optDropZone); void setLabel(String shapeLabel); double getWidth(); double getHeight(); void logicallyReplace(final CaseManagementShapeView original, final CaseManagementShapeView replacement); void addShape(final WiresShape shape, final int targetIndex); int getIndex(final WiresShape shape); Optional<MultiPath> getDropZone(); CaseManagementShapeView getGhost(); void setCanvas(CaseManagementCanvas canvas);  }