RuleTree.java 文件源码

java
阅读 34 收藏 0 点赞 0 评论 0

项目:JavaGraph 作者:
/**
 * Sets a listener to the anchor image option, if that has not yet been
 * done.
 */
private void setShowAnchorsOptionListener() {
    if (!this.anchorImageOptionListenerSet) {
        JMenuItem showAnchorsOptionItem = getSimulator().getOptions()
            .getItem(Options.SHOW_ANCHORS_OPTION);
        if (showAnchorsOptionItem != null) {
            // listen to the option controlling the rule anchor display
            showAnchorsOptionItem.addItemListener(new ItemListener() {
                @Override
                public void itemStateChanged(ItemEvent e) {
                    suspendListeners();
                    refresh(getSimulatorModel().getState());
                    activateListeners();
                }
            });
            this.anchorImageOptionListenerSet = true;
        }
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号