[gme-users] connections to ports w/ decorator

Jeff Parsons parsons at isis.vanderbilt.edu
Wed Jul 7 13:09:29 CDT 2004


Hi,

I have written a decorator that takes over
the drawing of just a few things in a model,
the relevant one being one certain kind of
model and its ports. What the decorator
does is choose between mirror image icons
depending on which side of the model the
port is drawn on. These ports can have
connections to other ports in the same
kind of model. It seems that, using the
decorator, connections don't appear in
the model, whereas without it they do.
I've borrowed some code from GME source
code for this stuff, leaving out some things
since my use case is not as general as
GME's default decorator. I've looked for
something I left out relating to hotspots
but all that stuff seems to be outside
the decorator part of GEM and I don't see
how I could change my decorator code to make
this work. Can anyone help me out with info
about what code in ModelDecorator or
PortDecorator controls hotspots, if any?

thanks,

Jeff


More information about the gme-users mailing list