Hi Marcos,

  * what are the biggest challenges you are facing 

  2. how do I persist the stereotype view of the FigNodeModelElement?





Well, IMHO this is something that has to be stored with the Fig. This because 
if you draw a class on two different diagrams, it may be represented as big 
icon on one diagram, and textual on the other.

Hence, have a look at the way e.g. the visibility of the path is persisted in 
FigNodeModelElement:

    public String classNameAndBounds() {
        return getClass().getName()
            + "[" + getX() + ", " + getY() + ", "
            + getWidth() + ", " + getHeight() + "]"
            + "pathVisible=" + isPathVisible() + ";";
    }

This function builds a string that you can find back in the PGML of the diagram.

I do not remember how this is loaded back, but it works for path visibility, so 
you should be able to find out...

Regards,
Michiel

Reply via email to