这俩天读Google关于Android下Media开发的Sample,Media相关类库结构复杂,时序难以理解,所以操起个人最喜欢的“看代码”工具XMind,边学边记。在解析Method调用关系时,XMind里提供的Relationship可以帮助记忆,但XMind里的Relationship的线条太粗,看着不够美观面目还挡后面的文字,因此找到一个方法可以修改XMind里的默认Style(其它的默认Style也在这里配置)。在XMind的安装目录下(我是Window7:D:\Program Files (x86)\XMind\plugins\org.xmind.ui.resources_3.6.51.201607140259\styles)可以找到defaultStyles.xml,找到如下内容:
...
87 <style type="relationship" id="relationship" name="Relationship (Default)">
88 <relationship-properties shape-class="org.xmind.relationshipShape.curved"
89 line-color="#0068cf" line-width="1pt" line-pattern="dot"
90 arrow-begin-class="org.xmind.arrowShape.none"
91 arrow-end-class="org.xmind.arrowShape.normal"
92 fo:font-family="$system$" fo:font-weight="false" fo:color="#707070"
93 fo:font-style="false" fo:font-size="9pt" fo:text-decoration="none"
94 fo:text-align="center"/>
95 </style>
...
修改其中的line-width,原先为3pt,改成1pt,再打开XMind,原来画的Relationship的线条,已经变细,效果如下:
这张图还没完成,虽然已经分层了,但仍然很乱。