public Vector getPositionFor(InterfacePart object) {
if (this.invertList.containsKey(object)) {
int listPos = this.invertList.get(object);
if (listPos != DOWN_POS && listPos != UP_POS) {
if (listPos < this.curPos) {
return new Vector(0.0f, -InterfaceTextButton.getSize() * 10);
}
if (listPos >= this.curPos + this.numberOfButtonsDisplayed) {
return new Vector(0.0f, -InterfaceTextButton.getSize() * 10);
}
}
listPos = listPos - this.curPos;
return getPositionForListPos(listPos).add(
this.parentContainer.getPositionFor(this));