?? actionlinkupdate.java
字號:
package com.zhtelecom.common.topograph.example.menuaction;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import com.zhtelecom.common.topograph.TopoGraphView;
import com.zhtelecom.common.topograph.TopoLink;
public class ActionLinkUpdate extends AbstractAction
{
public void actionPerformed(ActionEvent e)
{
TopoGraphView topoView = (TopoGraphView) getValue("topoGraphView");
TopoLink obj = topoView.getSelectedLink();
//設置寬度
obj.setLinkWidth(3);
//設置轉折線
obj.setStraight(false);
//設置虛線
obj.setBrokenLink(true);
//設置箭頭
obj.setShowArrow(false);
}
public ActionLinkUpdate()
{
super("改變Link風格");
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -