public void setBottomExtension(Extension arg0) { this.bottomExtension = arg0; bottomExtension.setPosition(centerX, getY()); if (bottomExtension.getWidth() == 0) { bottomExtension.setWidth(width); } }
public void setTopExtension(Extension arg0) { this.topExtension = arg0; topExtension.setPosition(centerX, getY() + length); if (topExtension.getWidth() == 0) { topExtension.setWidth(width); } }