*/
public int getRemainingBPD() {
int usedBPD = 0;
- List spans = getMainReference().getSpans();
+ List<Span> spans = getMainReference().getSpans();
int previousSpanCount = spans.size() - 1;
for (int i = 0; i < previousSpanCount; i++) {
usedBPD += ((Span)spans.get(i)).getHeight();
public Object clone() throws CloneNotSupportedException {
BodyRegion br = (BodyRegion) super.clone();
br.mainReference = new MainReference(br);
+ br.mainReference.setSpans(mainReference.getSpans());
return br;
}
*
* @return the list of span areas
*/
- public List getSpans() {
+ public List<Span> getSpans() {
return spanAreas;
}
* @param wmtg a WM traits getter
*/
public void setWritingModeTraits(WritingModeTraitsGetter wmtg) {
- for ( Span s : (List<Span>) getSpans() ) {
+ for ( Span s : getSpans() ) {
s.setWritingModeTraits ( wmtg );
}
}