Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic JDiagram Drag Selection Issue (Read 5516 times)
Jasef
YaBB Newbies
*
Offline



Posts: 26
Joined: Jul 17th, 2011
JDiagram Drag Selection Issue
Jun 5th, 2013 at 10:11pm
Print Post  
Hi,

I seem to have noticed there are clipping issues with drag selection. Very subtle bug.
Bug seems to persist since JDiagram 3.4 to 4.0.1 (Couldn't test any further back)

To reproduce what I see:
> Select a bunch of nodes. (Attachment Step1.png)
> Drag select a different bunch of nodes. (Attachment Step2.png)
Now you should see the selection handles on the nodes you have drag selected.
But also see (partial) selection handles on the original selection of nodes (As what is seen in Attachment Step2.png)
Hovering over the original nodes will remove these partial handles.
If you cannot reproduce, you may need to separate out the nodes between the groups of selections you are making.

The nodes are custom extended objects of TableNode.
I have only overriden the drawHandles method recently and only handles the shape of the handle, so that shouldn't affect what's going on with this bug.
Also tested on basic ShapeNode objects with the same result.

Fix-Priority: Low


Regards.
  

Step1.png (Attachment deleted)
Step2.png (Attachment deleted)
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: JDiagram Drag Selection Issue
Reply #1 - Jun 18th, 2013 at 2:27pm
Print Post  
Hi,

This version should fix that:
https://mindfusion.eu/_beta/JDiagram402.zip

If you build from source code, you could add a repaint call before clearSelection in Selection.completeCreate:

Code
Select All
protected void completeCreate(Point2D end)
{
	super.completeCreate(end);

	getParent().repaint(getRepaintRect(true));
	clearSelection();
	... 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Jasef
YaBB Newbies
*
Offline



Posts: 26
Joined: Jul 17th, 2011
Re: JDiagram Drag Selection Issue
Reply #2 - Jun 23rd, 2013 at 11:04pm
Print Post  
Works perfectly. (Building from source)
Thanks!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint