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

📄 sequencedtables.java

📁 一个用java写的地震分析软件(无源码)-used to write a seismic analysis software (without source)
💻 JAVA
字号:
package org.trinet.util.graphics.table;
public class SequencedTables {
    private static final String [] columnNames = { "EVID", "EVID", "ORID", "ORID", "MAGID", "ARID",
		 "AMPID", "COMMID", "MECID", "COID", "WAVID"};
    private static final String [] tableNames = {"EVENT", "SIG_EVENT", "ORIGIN", "ORIG_ERROR", "NETMAG", "ARRIVAL",
		 "AMP", "REMARK", "MEC", "CODA", "WDISC"};

    private static final String [] sequenceNames = { "EVSEQ", "EVSEQ", "ORSEQ", "ORSEQ", "MAGSEQ", "ARSEQ",
		 "AMPSEQ", "COMMSEQ", "MECSEQ", "COSEQ", "WVSEQ"};

    private static final int MAX_SEQUENCE_TABLES = tableNames.length;

    public final static String getColumnName(int index) {
	if (index < 0 || index > MAX_SEQUENCE_TABLES) return null;
	return columnNames[index];
    }

    public final static String getTableName(int index) {
	if (index < 0 || index > MAX_SEQUENCE_TABLES) return null;
	return tableNames[index];
    }

    public final static String getSequenceName(int index) {
	if (index < 0 || index > MAX_SEQUENCE_TABLES) return null;
	return sequenceNames[index];
    }

    public final static String getColumnName(String table ) {
	  for (int i = 0; i < MAX_SEQUENCE_TABLES; i++) {
	    if (table.trim().equalsIgnoreCase(tableNames[i])) {
	      return columnNames[i];
	    }
	  }
	  return null;
    }

    public final static String getSequenceName(String table ) {
	  for (int i = 0; i < MAX_SEQUENCE_TABLES; i++) {
	    if (table.trim().equalsIgnoreCase(tableNames[i])) {
	      return sequenceNames[i];
	    }
	  }
	  return null;
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -