Example #1
0
  @Override
  protected void updateShape() {
    ShapeUtil.buildPathFromAnchors(getPath(), getControlPoints());

    // call super method after shape has been updated
    super.updateShape();
  }
  @Override
  protected void updateShape() {
    getRectangularShape().setFrameFromDiagonal(topLeft.getPosition(), bottomRight.getPosition());

    // call super method after shape has been updated
    super.updateShape();
  }