Dear Dimitry,

the image map seems to be broken as the following method from
ClickableImageCreator seem not to give the correct location values:

    private void createArea(MindMapNode node) {
        final NodeView nodeView = mapView.getNodeView(node);
        if (nodeView != null) {
            AreaHolder holder = new AreaHolder();
            holder.title = node.getShortText(modeController);
            holder.alt = node.getShortText(modeController);
            holder.href = node.getObjectId(modeController);
            holder.coordinates.x = (int)
(nodeView.getX()-innerBounds.getMinX());
            holder.coordinates.y = (int)
(nodeView.getY()-innerBounds.getMinY());
            holder.coordinates.width = nodeView.getWidth();
            holder.coordinates.height = nodeView.getHeight();
            area.add(holder);
            for (Iterator i = node.childrenUnfolded(); i.hasNext();) {
                MindMapNode child = (MindMapNode) i.next();
                createArea(child);
            }
        }
    }

Can you find the bug in getX or whereever?

Thanks, Chris

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Freemind-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemind-developer

Reply via email to