本文整理汇总了Java中com.rapidminer.gui.tools.SwingTools.disableClearType方法的典型用法代码示例。如果您正苦于以下问题:Java SwingTools.disableClearType方法的具体用法?Java SwingTools.disableClearType怎么用?Java SwingTools.disableClearType使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.rapidminer.gui.tools.SwingTools
的用法示例。
在下文中一共展示了SwingTools.disableClearType方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: CardHeaderPanel
import com.rapidminer.gui.tools.SwingTools; //导入方法依赖的package包/类
public CardHeaderPanel(String i18nKey) {
this.setLayout(new GridBagLayout());
GridBagConstraints gbc = new GridBagConstraints();
gbc.gridx = 0;
gbc.gridy = 0;
gbc.insets = new Insets(20, 0, 20, 0);
JLabel label = new JLabel(I18N.getGUILabel(i18nKey, new Object[0])) {
private static final long serialVersionUID = 1L;
public void paintComponent(Graphics g) {
SwingTools.disableClearType(this);
((Graphics2D)g).setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
super.paintComponent(g);
}
};
label.setFont(OPEN_SANS_SEMIBOLD_18);
label.setHorizontalTextPosition(2);
this.add(label, gbc);
++gbc.gridx;
gbc.fill = 2;
gbc.weightx = 1.0D;
this.add(new JLabel(), gbc);
this.setOpaque(false);
this.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createEmptyBorder(0, 20, 30, 20), BorderFactory.createMatteBorder(0, 0, 1, 0, GettingStartedDialog.VERY_LIGHT_GRAY)));
}
示例2: updateInfoHeader
import com.rapidminer.gui.tools.SwingTools; //导入方法依赖的package包/类
private void updateInfoHeader() {
if (getCurrentStep() == null) {
return;
}
if (infoTextLabel != null) {
SwingTools.disableClearType(infoTextLabel);
infoTextLabel.setText(String.format(INFO_LABEL_TEXT_TEMPLATE, getStepTitle(), progress + "%"));
}
try {
getCurrentStep().validate();
} catch (InvalidConfigurationException e) {
// ignore
}
}
示例3: paintComponent
import com.rapidminer.gui.tools.SwingTools; //导入方法依赖的package包/类
protected void paintComponent(Graphics graphics) {
SwingTools.disableClearType(this);
((Graphics2D)graphics).setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
Graphics2D g = (Graphics2D)graphics.create();
ButtonModel model = this.getModel();
if(model.isEnabled() && (model.isRollover() || model.isSelected())) {
g.setColor(this.colorHover);
g.fillRoundRect(0, 0, this.getWidth(), this.getHeight(), 10, 10);
}
g.dispose();
super.paintComponent(graphics);
}