本文整理汇总了Java中com.rapidminer.gui.look.RapidLookListCellRenderer类的典型用法代码示例。如果您正苦于以下问题:Java RapidLookListCellRenderer类的具体用法?Java RapidLookListCellRenderer怎么用?Java RapidLookListCellRenderer使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
RapidLookListCellRenderer类属于com.rapidminer.gui.look包,在下文中一共展示了RapidLookListCellRenderer类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: paintBorder
import com.rapidminer.gui.look.RapidLookListCellRenderer; //导入依赖的package包/类
@Override
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) {
if (c instanceof RapidLookListCellRenderer) {
this.selectionBackground = ((RapidLookListCellRenderer) c).getParentList().getSelectionBackground();
}
g.translate(x, y);
g.drawLine(0, 0, 0, 0);
g.drawLine(w - 1, 0, w - 1, 0);
g.drawLine(0, h - 1, 0, h - 1);
g.drawLine(w - 1, h - 1, w - 1, h - 1);
g.setColor(this.selectionBackground.brighter());
g.drawLine(1, 0, 2, 0);
g.drawLine(w - 2, 0, w - 3, 0);
g.drawLine(1, h - 1, 2, h - 1);
g.drawLine(w - 2, h - 1, w - 3, h - 1);
g.drawLine(0, 1, 0, 2);
g.drawLine(0, h - 2, 0, h - 3);
g.drawLine(w - 1, 1, w - 1, 2);
g.drawLine(w - 1, h - 2, w - 1, h - 3);
g.translate(-x, -y);
}
示例2: installUI
import com.rapidminer.gui.look.RapidLookListCellRenderer; //导入依赖的package包/类
@Override
public void installUI(JComponent c) {
super.installUI(c);
this.listBox.setCellRenderer(new RapidLookListCellRenderer());
}
示例3: installUI
import com.rapidminer.gui.look.RapidLookListCellRenderer; //导入依赖的package包/类
@SuppressWarnings("unchecked")
@Override
public void installUI(JComponent c) {
super.installUI(c);
this.listBox.setCellRenderer(new RapidLookListCellRenderer());
}