this.apply(obj); this.shape.setTransform(this.transform); this.labelShape.setShape({ x:0, y:0, text:this.property('label') }).setFill(this.property('fill')); this.lineShape.setShape({ x1:1, x2:this.labelShape.getTextWidth()+1, y1:2, y2:2 }).setStroke({ color:this.property('fill'), width:1 });