コード例 #1
0
  public BorderPropertySet(
      BorderPropertySet top,
      BorderPropertySet right,
      BorderPropertySet bottom,
      BorderPropertySet left) {
    this((top.width() + 1) / 2, right.width() / 2, bottom.width() / 2, (left.width() + 1) / 2);

    this._topStyle = top.topStyle();
    this._rightStyle = right.rightStyle();
    this._bottomStyle = bottom.bottomStyle();
    this._leftStyle = left.leftStyle();

    this._topColor = top.topColor();
    this._rightColor = right.rightColor();
    this._bottomColor = bottom.bottomColor();
    this._leftColor = left.leftColor();

    this._topLeft = new BorderRadiusCorner();
    this._topRight = new BorderRadiusCorner();
    this._bottomLeft = new BorderRadiusCorner();
    this._bottomRight = new BorderRadiusCorner();
  }