shownFrames++;
if( this.hasCompleted() )
{
Vector3D color = endNode.getColor();
if( endNode.isSelected() )
{
color = new Vector3D( 1, 0, 0 );
}
if( color == null )
{
color = new Vector3D( 0, 0, 0 );
}
int radius = pb.getNodeWidthOnScreen( endNode ) / 2;
Text t = null;
boolean playSound = false;
synchronized( handledDistances )
{
if( handledDistances.get( currentDistance ) == null )
{
handledDistances.put( currentDistance, true );
t = new Text( "Dist " + currentDistance, new Vector2D( 45, pb.getHeightInt() - 30 ), new Vector3D(1,1,1), endNode.getColor(), 15, true, true, true, false, false, false, true );
Animation a = new NodeGlowAnimation( 10, color, t.getNode(), radius, radius + 40, 2, true, t );
endNode.getGraph().addAnimation( a );
if( pb.isPlaySound() )
{
try