@Override public void deselectShape(final WiresBaseShape shape) { if (shape == null) { return; } selectedShape = null; if (shape instanceof HasControlPoints) { ((HasControlPoints) shape).hideControlPoints(); } if (shape instanceof HasMagnets) { ((HasMagnets) shape).hideMagnetPoints(); } canvasLayer.batch(); }
@Override public void selectShape(final WiresBaseShape shape) { if (shape == null) { return; } if (shape.equals(selectedShape)) { return; } clearSelection(); selectedShape = shape; selectedShape.setSelected(true); if (shape instanceof HasControlPoints) { ((HasControlPoints) selectedShape).showControlPoints(); } canvasLayer.batch(); }
@Override public void selectShape(final WiresBaseShape shape) { if (shape == null) { return; } if (shape.equals(selectedShape)) { return; } clearSelection(); selectedShape = shape; selectedShape.setSelected(true); if (shape instanceof HasControlPoints) { ((HasControlPoints) selectedShape).showControlPoints(); } canvasLayer.batch(); }
@Override public void deselectShape(final WiresBaseShape shape) { if (shape == null) { return; } selectedShape = null; if (shape instanceof HasControlPoints) { ((HasControlPoints) shape).hideControlPoints(); } if (shape instanceof HasMagnets) { ((HasMagnets) shape).hideMagnetPoints(); } canvasLayer.batch(); }
@Override public void clearSelection() { selectedShape = null; for (WiresShape shape : getShapesInCanvas()) { shape.setSelected(false); if (shape instanceof HasControlPoints) { ((HasControlPoints) shape).hideControlPoints(); } if (shape instanceof HasMagnets) { ((HasMagnets) shape).hideMagnetPoints(); } } canvasLayer.batch(); }
@Override public void clearSelection() { selectedShape = null; for (WiresShape shape : getShapesInCanvas()) { shape.setSelected(false); if (shape instanceof HasControlPoints) { ((HasControlPoints) shape).hideControlPoints(); } if (shape instanceof HasMagnets) { ((HasMagnets) shape).hideMagnetPoints(); } } canvasLayer.batch(); }