Ejemplo n.º 1
0
  public void setBottomExtension(Extension arg0) {
    this.bottomExtension = arg0;

    bottomExtension.setPosition(centerX, getY());
    if (bottomExtension.getWidth() == 0) {
      bottomExtension.setWidth(width);
    }
  }
Ejemplo n.º 2
0
  public void setTopExtension(Extension arg0) {
    this.topExtension = arg0;

    topExtension.setPosition(centerX, getY() + length);
    if (topExtension.getWidth() == 0) {
      topExtension.setWidth(width);
    }
  }