Exemplo n.º 1
0
 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());
   }
 }
Exemplo n.º 2
0
 public void attachRepainter(Repainter repainter) {
   this.repainter = repainter;
   if (layer != null) {
     repainter.requestRepaint(layer.getBounds());
   }
 }
Exemplo n.º 3
0
 private void setSelectedShape(Primitive p) {
   if (this.shape != p) {
     this.shape = p;
     repainter.requestRepaint(layer.getBounds());
   }
 }