Hi Mathieu,
Currently, we cannot do a if:lineColor: (something we should add on some point).
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
view nodes: (1 to: 20).
view shape line
color: [ :edge |
(#( 2 3 4) includes: edge from model)
ifTrue: [ Color red. ]
ifFalse: [ Color lightGray ] ].
view edgesToAll: [ :v | { v + 3 . v + 5 . v *2 } ].
view circleLayout.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
(You need to update Roassal, I've spotted a bug in the meantime, which is fixed in the
last version).
For the curious, I have attached the screenshot and the output in html/d3 (nodes are drag
and droppable):
Cheers,
Alexandre
On May 14, 2013, at 2:26 PM, mathieu <mathieubmddehouck(a)mailoo.org> wrote:
Hi
Well I know how to set color and width and shape for an Edge, the question was :
if I have five sets of edges, each set representing something different, is it possible
to seperate them in the view/layout?
and can I tell these are blue and these are green with this shape without using five
blocks like "(view edges sellect: []) do: []" for each set ?
Because it's not that difficult to tell these edges must be used for computing the
layout, and these other not, but if you have four different kinds of relationship between
nodes, you may want to have an efficient way for dinstinguishing them.
Regards
Mathieu
Le 14/05/2013 19:40, Juraj Kubelka a écrit :
Hi!
2013/5/14 mathieu <mathieubmddehouck(a)mailoo.org>
Hi
I was wondering how to give different senses to different edges, so have a look at
edgeDrivenLayout and subclasses.
It seems that there are 2 sets of edges ( edges and userDifinedEdges ) and then we face a
problem:
I do not think it is related to your question. User can set #userDefinedEdges and it
defines edges used for computation of layout. Instance variable edges is an internal
variable used during the computation of layout.
- How do we do if we want to represent more than two kinds of edges ?
For standard ROLine shape, you can define colour or width. Is it enough?
Is Roassal able to draw dotted line ? (I haven't found it)
No, it is not supported for now.
Regards
Mathieu
Cheers,
Jura
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.