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

📄 toocomaxiomlistcellrenderer.java

📁 toocom源代码,主要应用在本体匹配方面!
💻 JAVA
字号:
package toocom.ui;

import javax.swing.*;
import javax.swing.tree.*;
import java.awt.*;
import java.awt.event.*;

/**
 * This class represents the list cell renderer used to display the list of axioms in the
 * axiom frame.
 *
 * @author Fr閐閞ic F黵st
 */
public class TooCoMAxiomListCellRenderer extends DefaultListCellRenderer{
	
    public Component getListCellRendererComponent(JList list,Object value,int index,boolean isSelected,boolean cellHasFocus){
    	super.getListCellRendererComponent(list,value,index,isSelected,cellHasFocus);
        if(value.toString().indexOf("f-") == 0){
        	this.setForeground(Constants.FINALIZED_AXIOM_TEXT_COLOR);
        	this.setText(value.toString().substring(2));
		}
        return this;
    }
    
}

⌨️ 快捷键说明

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