int childX = 0;
AComponent child = getChildren().get(i);
if (child == null) {
continue;
}
EHAlign hAlign = getCellHAlign(i);
int cw = child.boundsWidthProperty().get();
if (hAlign == EHAlign.CENTER) {
childX = (realWidth - cw) / 2;
} else if (hAlign == EHAlign.RIGHT) {
childX = (realWidth - cw);