📄 flashpath.java
字号:
package BestRoadGA;
import com.esri.mo2.map.dpy.FeatureLayer;
import com.esri.mo2.data.feat.SelectionSet;
import javax.swing.*;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.*;
/**
* Created by IntelliJ IDEA.
* User: gismap
* Date: 2005-11-13
* Time: 19:00:49
* To change this template use File | Settings | File Templates.
*/
public class FlashPath implements ActionListener{
private FeatureLayer fLayer;
private SelectionSet sl;
private Color curColor=Color.red;
int flashNum;
public FlashPath(FeatureLayer flayer,SelectionSet selectionSet)
{
this.fLayer = flayer;
this.sl = selectionSet;
fLayer.setSelectionColor(curColor);
flashNum=0;
}
public void actionPerformed(ActionEvent ae)
{
if (flashNum < 5)
{
if(curColor.equals(Color.red))
fLayer.setSelectionColor(Color.yellow);
else
fLayer.setSelectionColor(Color.red);
flashNum++;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -