Hi Chris,your picture contained enough information for analyzing the problem. Try the following corrected function and decide whether you like it more.It's purpose is to completely shift the folding mark location out of the node. (You can replace System.err.println through logger call if you like).
void paintFoldingMark(Graphics2D g, Point p) {
final int zoomedFoldingSymbolHalfWidth =
getZoomedFoldingSymbolHalfWidth();
if(p.x == getX()){
p.x -= zoomedFoldingSymbolHalfWidth;
}
else if(p.x == getX() + getWidth() - 1){
p.x += zoomedFoldingSymbolHalfWidth;
}
else {
System.err.println("unexpected folding mark location " + p);
}
super.paintFoldingMark(g, p);
}
Hi Dimitry, with the original code I get: The folding symbol is at the wrong place, isn't it? Regards, Chris ------------------------------------------------------------------------ ------------------------------------------------------------------------ ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ------------------------------------------------------------------------ _______________________________________________ Freemind-developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freemind-developer
<<inline: ModesCorrected.png>>
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________ Freemind-developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freemind-developer
