Hi, I am currently working on select and moving shape, There are circle, rectangle and line. I am using same logic for rectangle and circle to select the shape using mouse point. I need help in how to select line shape. thanks.
Code:if(XMLReader.name[i] == "circle"){
if((( mousePt.x < nodes.get(i).p.x + width))&&
(mousePt.x>nodes.get(i).p.x) )
{
if((( mousePt.y < nodes.get(i).p.y + height))&& ( mousePt.y>nodes.get(i).p.y) ){
selectedD =i;
return true;
}
}
}

