}
private static ParentComponent generateGridLine(int gridX, int gridY, boolean isHorizontal, float spacing, Grid grid){
ParentComponent lineParent = generateGridLine(spacing*gridX, spacing*gridY, isHorizontal);
LineComponent lineComp = new LineComponent(isHorizontal ? grid.getHorizontalLine(gridX,gridY) : grid.getVerticalLine(gridX,gridY));
lineParent.addComponent(lineComp);
lineParent.setLabel(getLineLabel(gridX, gridY, isHorizontal));
return lineParent;
}