本文整理匯總了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);
}