public void newSegment() {
getData().newSegment();
graphicsState.lineWidth = 0; //Looks like a new segment invalidates the graphics state
}
@Override
<BUG>public void setComplete(boolean complete) {
Iterator<GraphicsData> it = objects.iterator();
while (it.hasNext()) {
Completable completedObject = it.next();</BUG>
completedObject.setComplete(true);

public void newSegment() {
getData().newSegment();
graphicsState.lineWidth = 0; //Looks like a new segment invalidates the graphics state
