I have basic WMS layer and vector layer in openlayers. Using EditingToolbar i can draw some features as shown below

Then I want to get some information (like distance and extent) of drawn features in any format.At the movement I stuck on above point. Pls give me some tips or sample code or some links.
Thanks for your valuable time