Is there a visual diagram format for gui event mapping?

僤鯓⒐⒋嵵緔 提交于 2019-12-04 17:39:54

State diagrams.

Old and pricey, but here is a great text on modeling user interfaces with state charts. I've worn the pages out on mine....

For quick and dirty message sequence charts, you can't beat the price of mscgen. It uses a source text inspired by the syntax used by AT&T's Graphviz package, which is, incidentally, a good way to rendering arbitrary directed and undirected graphs.

I often use graphviz to document my state machines, as I find it easier to keep in sync with the implementation than a Visio drawing.

Andy Dent

the book that finally helped me really understand UML statecharts is Samek's Practical Statecharts in C/C++ which has a few chapters on them as well as an impressive implementation framework for building state-based systems. I think it's worth getting just for the explanations of how to think with statecharts.

For actually creating quick statecharts or similar rough diagrams, I do a lot of work with the textual DOT language in GraphViz and often then include those diagrams directly into documentation generated with doxygen.

S.Lott

UML activity diagrams and state charts can branch all over the place.

See http://www.agilemodeling.com/style/stateChartDiagram.htm


(source: agilemodeling.com)

Ted Johnson

The communication diagram can lack sequence and it behaves more like a mind map than an activity or sequence diagram. If communicating events is your goal a state chart does show interaction, but rather, well, state. A communication diagram has less on it than an activitystate diagram, though that is not bad either, similar in nature.

You could just leverage UseCases and add keywords or label the uses edge/line. Not recommended if this will be maintained and be more than a pretty picture.

(Image is slightly overloaded, you don't need the numbering and they don't have to be method calls)


(source: agilemodeling.com)
http://www.agilemodeling.com/artifacts/communicationDiagram.htm

Another format which I was reminded of recently is the Dynamic Diagram in the Bon Method. I wrote a posting about it on Artima. The book Seamless Object-Oriented Software Architecture was made freely available in 2003.

The difference between these and communication diagrams is separation of the steps into a separate legend. That can read like a Use Case by itself, being easy to localise and sometimes to show alternative explanations.

I had great results using this D3 based auto minimum spanning tree implementation. Just pass it a list of graph edges and it'll cluster and draw a UML-like diagram:

https://github.com/cpettitt/dagre-d3

Also great for state diagrams.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!