flowAreas = new java.util.ArrayList(colCount);
colWidth = (ipd - ((colCount - 1) * colGap)) / colCount;
- for (int i=0; i< colCount; i++) {
+ for (int i = 0; i < colCount; i++) {
NormalFlow newFlow = new NormalFlow(colWidth);
- newFlow.setIPD(getIPD());
flowAreas.add(newFlow);
}
}
if (colRequested >= 0 && colRequested < colCount) {
return (NormalFlow) flowAreas.get(colRequested);
} else { // internal error
- throw new IllegalArgumentException("Invalid column number " +
- colRequested + " requested; only 0-" + (colCount-1) +
- " available.");
+ throw new IllegalArgumentException("Invalid column number "
+ + colRequested + " requested; only 0-" + (colCount - 1)
+ + " available.");
}
}
curFlowIdx++;
return getNormalFlow(curFlowIdx);
} else {
- throw new IllegalStateException("(Internal error.)" +
- " No more flows left in span.");
+ throw new IllegalStateException("(Internal error.) No more flows left in span.");
}
}
* false otherwise.
*/
public boolean hasMoreFlows() {
- return (curFlowIdx < colCount-1);
+ return (curFlowIdx < colCount - 1);
}
}