protected int insertIndexForLayer (int layer, int position)

Primitive method that determines the proper location to insert a new child based on layer and position requests.

Parameters:
layer    an int specifying the layer
position    an int specifying the position within the layer

Returns:  an int giving the (absolute) insertion-index

See also:
getIndexOf