int colCount = (graph.getHeight() - 2 * Y0) / Y;
boolean containPosition = true;
// Shows stations
for (Object station : stations) {
cell = cellFactory.createStationCell(station);
JMTPoint position = model.getStationPosition(station);
// If position is not present, auto-position this station
while (position == null) {
containPosition = false;
JMTPoint tmp = new JMTPoint(X0 + X * (count / colCount), Y0 + Y * (count % colCount), false);
if (!overlapCells(tmp, cell)) {
position = tmp;
}
count++;
}