|
|
|
|
|
|
|
|
|
|
Re: Examples for Polyline/PolylineDecoration [message #7781 is a reply to message #7719] |
Wed, 05 June 2002 08:44   |
Eclipse User |
|
|
|
Originally posted by: none.ibm.com
> Now I want to add several types of arrows, diamond shapes, multiplicty
> indications (e.g. a \'*\' label) on both ends of the connection.
> Is this what PolyLineDecoration is for, and how is it used?
Yes
> I also noticed that routers can be \"chained\". In fact, if you call
> route(),
> it first looks for a next() router and first claas route on the next
> router in the chain. As far as I can remember from the Decorator pattern
> in GoF book, this type of chaining is related to Decorator.
The purpose of chaining routers is so that the first router can handle
conditions not avoided by the "next" router. For example, the next router
just applies manual bendpoints. But, the first router handles cases like 2
connections overlapping in exactly the same place, in which case it adds
*automatic* bends into the connection so the 2 overlapping connections can
be distinguished.
|
|
|
Re: Examples for Polyline/PolylineDecoration [message #7889 is a reply to message #7781] |
Wed, 05 June 2002 10:31  |
Eclipse User |
|
|
|
> The purpose of chaining routers is so that the first router can handle
> conditions not avoided by the "next" router. For example, the next router
> just applies manual bendpoints. But, the first router handles cases like 2
> connections overlapping in exactly the same place, in which case it adds
> *automatic* bends into the connection so the 2 overlapping connections can
> be distinguished.
kewl.
so this could solve the problem I'm having now with multiple (overlapping)
connections between nodes
thanks!
Bram
|
|
|
Powered by
FUDForum. Page generated in 0.04606 seconds