if (this.isLayoutVCenter) { int containerHeight = this.container.getItemHeight( this.screenWidth, this.screenWidth); int availableHeight = this.screenHeight - this.titleHeight - containerHeight; if (availableHeight > 0) { y = (availableHeight / 2); } }
int containerHeight = this.container.getItemHeight( this.screenWidth, this.screenWidth); int availableHeight = this.screenHeight - this.titleHeight; this.paintScrollIndicator = false; if (containerHeight > availableHeight ) { this.paintScrollIndicator = true; this.paintScrollIndicatorUp = (this.container.yOffset != 0); this.paintScrollIndicatorDown = (this.container.yOffset + containerHeight > availableHeight); } else if (this.isLayoutVCenter) { y = ((availableHeight - containerHeight) / 2); }
	protected void paintScreen( Graphics g ) {		int y = 0;		if (this.isLayoutVCenter) {			int containerHeight = this.container.getItemHeight( this.screenWidth, this.screenWidth);			int availableHeight = this.screenHeight - this.titleHeight - containerHeight;			if (availableHeight > 0) {				y = (availableHeight / 2);			}		}		this.container.paint( 0, y, 0, this.screenWidth, g );	}