}
if ( DoubleType.class.isAssignableFrom( type.getClass() ) )
{
final DoubleArray array = new DoubleArray( numElements( dims ) );
final ArrayImgAWTScreenImage< DoubleType, DoubleArray > container = new DoubleAWTScreenImage( new DoubleType( array ), array, dims );
container.setLinkedType( new DoubleType( container ) );
return ( ArrayImgAWTScreenImage ) container;
}
throw new IllegalArgumentException( "Can't find AWTScreenImage for type " + type.toString() + "!" );
}