Quote Originally Posted by kapil
I would have to maintain a list wherein i would have to keep the entire information of lines and rectangles and their exact locations...
you just have to maintain a list of pointers of your items. Their locations are not needed.