📄 toocomaxiomlistcellrenderer.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 + -