Bug#669712: [freeplane] RE: freeplane: Visual corruption after scrolling mindmap

Omega Weapon omegaphil at gmail.com
Wed Jun 19 13:32:05 UTC 2013


On 18/06/13 19:39, Felix Natter wrote:
>
> Since it might not be a Freeplane issue, I cannot promise that your
> keyboard issue gets better (or even that it doesn't get worse) :-/ But
> if it's a reproducible Freeplane issue, then Dimitry will probably (at
> least try to) fix it.

I have tried to make a test case to reproduce it, but its not happening 
- both fast node creation and node moving hasn't triggered the problem 
in a new or old mindmap (my experience with the issue is its pretty 
non-deterministic, but at times it hits frequently - i.e. happens, 
restart freeplane, happens again in a minute).

The problem started at some point last year, here are my notes up until 
February, where I gave up tracking it:

30.12.12: Just had my first failure under OpenJDK v7 - have to assume 
its Freeplane's problem.
08.02.13: Seems to be more easily triggerable when I am using a chord 
with the keyboard - e.g. Cntrl + Up/down to move nodes up/down etc. Had 
this twice quickly in a row when this happened.
12.02.13: Happened repeatedly whilst I was making C mindmap Language 
data types char*/string escapes nodes.
15.02.13: Probably happens if you press a key between node creation and 
finalisation - i.e. create a node or type text into a node and enter 
then press another key before the node is 'fixed'.
27.02.13: Search on 'sizeof' in C programming mindmap - a few Cntrl+Gs 
leads to this issue

I had hoped to learn Java and then hook into keypresses - some 
completely clueless notes:

====================================================================

grep -iInr 'getNodeKeyListener'
src/org/freeplane/view/swing/ui/UserInputListenerFactory.java:192: 
public KeyListener getNodeKeyListener() {
src/org/freeplane/view/swing/map/NodeView.java:1126: 
mainView.addKeyListener(userInputListenerFactory.getNodeKeyListener());
src/org/freeplane/core/ui/IUserInputListenerFactory.java:58: 
KeyListener getNodeKeyListener();

These are under the freeplane source directory. 
'src/org/freeplane/core/ui/IUserInputListenerFactory.java' looks to be 
the initial interface which ties Java functionality (KeyListener) with a 
method. It looks like 
'src/org/freeplane/view/swing/ui/UserInputListenerFactory.java' might 
allow me to insert code on keypresses, but theres nothing about keypress 
events, just method calls - so it might not be doable without creating 
my own KeyListener method?

====================================================================


>> (At
>> work I tried a recent version and they'd changed the way things were
>> rendered, making it a lot less space efficient etc - went straight back to
>> the 'current' version).
>
> Do you refer to 1.3.x vs 1.2.x or 1.2.x vs 1.1.x?
>
> Anyway, IMHO this is the price for high level java programming and a
> rich feature set. Or are you referring to "screen space"?

Screen space - hence visual comment. I'll stop here now since its been 
some months since I tested and my memory is hazy - quick testing right 
now on the work Windows machine shows that nodes are no longer bubbles, 
automatic formatting style appears to have changed, icons are not on the 
side closest the centre (which is where my eyes scan), etc etc... I 
guess all that is just a project to fight to get the appearance back to 
normal. I also remember having to mess with DPI to get a similar size, 
but it looks OK now in this test.


>> I was imagining I'd need to get C++ and Java progression to fight the
>> keyboard issue.
>
> Does the issue also occur with other Java software?

I havent seen this in anything else - freeplane is by far my most used 
Java program, but I use Eclipse + PyDev fairly often so I should have 
had this happen a few times by now if the problem was more widespread.

Thanks!

------------------------------------------------------
Libre software on Github: https://github.com/OmegaPhil



More information about the pkg-java-maintainers mailing list