private Path line;
public Anchor(ElasticObject obj) {
super();
this.obj = obj;
WorldLayer ground = obj.getWorldLayer();
border = Path.createRectangle(0, 0, 1, 1);
line = new Path();
// line.setStrokePaint(Style.COLOR)
border.setPaint(null);
line.setPaint(null);
border.setStroke(new BasicStroke(2f));
line.setStroke(new BasicStroke(2f));
border.setStrokePaint(NengoStyle.COLOR_ANCHOR);
line.setStrokePaint(NengoStyle.COLOR_ANCHOR);
ground.addChild(line);
ground.addChild(border);
updateBounds();
obj.addPropertyChangeListener(Property.REMOVED_FROM_WORLD, this);
obj.addPropertyChangeListener(Property.GLOBAL_BOUNDS, this);
}