[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: SlidableAnchor and custom polygon as NodeFigure

I have same problem, i would like to define an anchor that follows the
outline of my figure.
It's a composite figure (a polygon followed by a circle)

Looks like you have to either override NodeFigure.createDefaultAnchor() method or put proper connection anchor into HashMap returned by NodeFigure.getConnectionAnchors() method.

I tried to override NodeFigure.getConnectionAnchors() method following the example of the logic diagram (LEDEditPart.createBoundsMap()), but in HashTable adds Point instead of connection anchors.
Probably I'm not able to add the correct parameters to HashTable, someone could give me an example?