Iterator sobjs;
Shadow sobj;
Iterator dobjs;
Drawable dobj;
// set NestingFactor/RowID of Nestable Real Drawables and Shadows
dobjs = treetrunk.iteratorOfAllDrawables( timebounds,
INCRE_STARTTIME_ORDER,
isConnectedComposite,
true );
while ( dobjs.hasNext() ) {
dobj = (Drawable) dobjs.next();
if ( dobj.getCategory().isVisible() ) {
dobj.setStateRowAndNesting( coord_xform, map_line2row,
nesting_stacks );
}
}
int N_nestable = 0, N_nestless = 0;
int N_nestable_drawn = 0, N_nestless_drawn = 0;
// Draw Nestable Real Drawables
dobjs = treetrunk.iteratorOfRealDrawables( timebounds,
INCRE_STARTTIME_ORDER,
isConnectedComposite,
true );
while ( dobjs.hasNext() ) {
dobj = (Drawable) dobjs.next();
if ( dobj.getCategory().isVisible() ) {
N_nestable_drawn +=
dobj.drawOnCanvas( offGraphics, coord_xform,
map_line2row, drawn_boxes );
N_nestable += dobj.getNumOfPrimitives();
}
}
// Draw Nestable Shadows
sobjs = treetrunk.iteratorOfLowestFloorShadows( timebounds,
INCRE_STARTTIME_ORDER,
true );
while ( sobjs.hasNext() ) {
sobj = (Shadow) sobjs.next();
if ( sobj.getCategory().isVisible() ) {
N_nestable_drawn +=
sobj.drawOnCanvas( offGraphics, coord_xform,
map_line2row, drawn_boxes );
N_nestable += sobj.getNumOfPrimitives();
}
}
// Set AntiAliasing from Parameters for all slanted lines
offGraphics.setRenderingHint( RenderingHints.KEY_ANTIALIASING,
Parameters.ARROW_ANTIALIASING.toValue() );
// Draw Nestless Shadows
/*
sobjs = treetrunk.iteratorOfLowestFloorShadows( timebounds,
INCRE_STARTTIME_ORDER,
false );
while ( sobjs.hasNext() ) {
sobj = (Shadow) sobjs.next();
if ( sobj.getCategory().isVisible() ) {
N_nestless_drawn +=
sobj.drawOnCanvas( offGraphics, coord_xform,
map_line2row, drawn_boxes );
N_nestless += sobj.getNumOfPrimitives();
}
}
*/
// Draw all Nestless Real Drawables and Shadows
dobjs = treetrunk.iteratorOfAllDrawables( timebounds,
INCRE_STARTTIME_ORDER,
isConnectedComposite,
false );
while ( dobjs.hasNext() ) {
dobj = (Drawable) dobjs.next();
if ( dobj.getCategory().isVisible() ) {
N_nestless_drawn +=
dobj.drawOnCanvas( offGraphics, coord_xform,
map_line2row, drawn_boxes );
N_nestless += dobj.getNumOfPrimitives();
}
}
if ( Profile.isActive() )
Profile.println( "CanvasTimeline.drawOneOffImage(): "