⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 flashpath.java

📁 JAVA+MO(for JAVA)开发的基于遗传算法的最短路径源代码
💻 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 + -