public void activate(Layer layer) { this.layer = layer; ShapeStack stack = (ShapeStack) layer.getLookup().lookup(ShapeStack.class); assert stack != null; this.stack = stack; if (repainter != null) { repainter.requestRepaint(layer.getBounds()); } }
public void attachRepainter(Repainter repainter) { this.repainter = repainter; if (layer != null) { repainter.requestRepaint(layer.getBounds()); } }
private void setSelectedShape(Primitive p) { if (this.shape != p) { this.shape = p; repainter.requestRepaint(layer.getBounds()); } }