本文整理汇总了Java中com.rapidminer.gui.look.borders.Borders类的典型用法代码示例。如果您正苦于以下问题:Java Borders类的具体用法?Java Borders怎么用?Java Borders使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Borders类属于com.rapidminer.gui.look.borders包,在下文中一共展示了Borders类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initPopup
import com.rapidminer.gui.look.borders.Borders; //导入依赖的package包/类
private void initPopup(Component owner, Component contents, int x, int y, Popup popup) {
this.owner = owner;
this.contents = contents;
this.popup = popup;
this.x = x;
this.y = y;
boolean mac = false;
try {
mac = System.getProperty("os.name").toLowerCase().startsWith("mac");
} catch (SecurityException e) {
// do nothing
}
if (mac) {
((JComponent) contents).setBorder(Borders.getPopupMenuBorder());
} else if (((JComponent) contents).getBorder() instanceof DummyBorder) {
if (!((owner instanceof JMenu) && ((JMenu) owner).isTopLevelMenu()) && !((owner.getParent() != null) && (owner.getParent() instanceof javax.swing.JToolBar)) && !((owner != null) && (owner instanceof javax.swing.JComboBox))) {
((JComponent) contents).setBorder(Borders.getShadowedPopupMenuBorder());
} else {
((JComponent) contents).setBorder(Borders.getPopupBorder());
}
}
}
示例2: initBorderDefaults
import com.rapidminer.gui.look.borders.Borders; //导入依赖的package包/类
private void initBorderDefaults(UIDefaults table) {
Object[] borderDefaults = { "TextField.border", Borders.getTextFieldBorder(), "PasswordField.border",
Borders.getTextFieldBorder(), "FilterTextField.border", Borders.getTextFieldBorder(),
"FormattedTextField.border", Borders.getTextFieldBorder(), "TextArea.border", Borders.getTextFieldBorder(),
"SplitPane.border", Borders.getSplitPaneBorder(), "ScrollPane.border", Borders.getScrollPaneBorder(),
"InternalFrame.border", Borders.getInternalFrameBorder(), "Table.scrollPaneBorder", null, // removed
// table
// border,
// original:
// Borders.getSplitPaneBorder()
"Table.tabbedPaneBorder", null, // remove double borders
"ToolBar.border", Borders.getToolBarBorder(), "Spinner.border", Borders.getSpinnerBorder(),
"ComboBox.border", Borders.getComboBoxBorder(), "Button.border", Borders.getEmptyButtonBorder(),
"ToggleButton.border", Borders.getEmptyButtonBorder(), "ProgressBar.border", Borders.getProgressBarBorder(),
"PopupMenu.border", Borders.getPopupMenuBorder(), "MenuBar.border", Borders.getMenuBarBorder(),
"CheckBox.border", Borders.getCheckBoxBorder(), "RadioButton.border", Borders.getCheckBoxBorder(),
"ToolTip.border", Borders.getToolTipBorder(), "CheckBox.icon", IconFactory.getCheckBoxIcon(),
"RadioButton.icon", IconFactory.getRadioButtonIcon(), "ComboBox.focusCellHighlightBorder",
Borders.getComboBoxListCellRendererFocusBorder(), };
table.putDefaults(borderDefaults);
}
示例3: initPopup
import com.rapidminer.gui.look.borders.Borders; //导入依赖的package包/类
private void initPopup(Component owner, Component contents, int x, int y, Popup popup) {
this.owner = owner;
this.contents = contents;
this.popup = popup;
this.x = x;
this.y = y;
boolean mac = false;
try {
mac = System.getProperty("os.name").toLowerCase().startsWith("mac");
} catch (SecurityException e) {
// do nothing
}
if (mac) {
((JComponent) contents).setBorder(Borders.getPopupMenuBorder());
} else if (((JComponent) contents).getBorder() instanceof DummyBorder) {
if (!((owner instanceof JMenu) && ((JMenu) owner).isTopLevelMenu())
&& !((owner.getParent() != null) && (owner.getParent() instanceof javax.swing.JToolBar))
&& !((owner != null) && (owner instanceof javax.swing.JComboBox))) {
((JComponent) contents).setBorder(Borders.getShadowedPopupMenuBorder());
} else {
((JComponent) contents).setBorder(Borders.getPopupBorder());
}
}
}
示例4: initBorderDefaults
import com.rapidminer.gui.look.borders.Borders; //导入依赖的package包/类
private void initBorderDefaults(UIDefaults table) {
Object[] borderDefaults = { "TextField.border", Borders.getTextFieldBorder(), "PasswordField.border",
Borders.getTextFieldBorder(), "FilterTextField.border", Borders.getTextFieldBorder(),
"FormattedTextField.border", Borders.getTextFieldBorder(), "TextArea.border", Borders.getTextFieldBorder(),
"SplitPane.border", Borders.getSplitPaneBorder(), "ScrollPane.border", Borders.getScrollPaneBorder(),
"InternalFrame.border", Borders.getInternalFrameBorder(), "Table.scrollPaneBorder", null, // removed
// table
// border,
// original:
// Borders.getSplitPaneBorder()
"Table.tabbedPaneBorder", null, // remove double borders
"ToolBar.border", Borders.getToolBarBorder(), "Spinner.border", Borders.getSpinnerBorder(),
"ComboBox.border", Borders.getComboBoxBorder(), "Button.border", Borders.getEmptyButtonBorder(),
"ToggleButton.border", Borders.getEmptyButtonBorder(), "ProgressBar.border", Borders.getProgressBarBorder(),
"PopupMenu.border", Borders.getPopupMenuBorder(), "CheckBox.border", Borders.getCheckBoxBorder(),
"RadioButton.border", Borders.getCheckBoxBorder(), "ToolTip.border", Borders.getToolTipBorder(),
"MenuBar.border", Borders.getMenuBarBorder(), "CheckBox.icon", IconFactory.getCheckBoxIcon(),
"RadioButton.icon", IconFactory.getRadioButtonIcon(), "ComboBox.focusCellHighlightBorder",
Borders.getComboBoxListCellRendererFocusBorder(), };
table.putDefaults(borderDefaults);
}
示例5: initPopup
import com.rapidminer.gui.look.borders.Borders; //导入依赖的package包/类
private void initPopup(Component owner, Component contents, int x, int y, Popup popup) {
this.owner = owner;
this.contents = contents;
this.popup = popup;
this.x = x;
this.y = y;
boolean mac = false;
try {
mac = System.getProperty("os.name").toLowerCase().startsWith("mac");
} catch (SecurityException e) {
// do nothing
}
if (mac) {
((JComponent) contents).setBorder(Borders.getPopupMenuBorder());
} else if (((JComponent) contents).getBorder() instanceof DummyBorder) {
if ((owner != null) //
&& (((owner instanceof JMenu) && ((JMenu) owner).isTopLevelMenu()) //
|| ((owner.getParent() != null) && (owner.getParent() instanceof javax.swing.JToolBar)) //
|| (owner instanceof javax.swing.JComboBox))) {
((JComponent) contents).setBorder(Borders.getPopupBorder());
} else {
((JComponent) contents).setBorder(Borders.getShadowedPopupMenuBorder());
}
}
}
示例6: RapidLookComboBoxEditor
import com.rapidminer.gui.look.borders.Borders; //导入依赖的package包/类
public RapidLookComboBoxEditor() {
this.editor.removeFocusListener(this);
this.textField = new JTextField("", 9) {
private static final long serialVersionUID = 2183777953513585132L;
@Override
public void setText(String s) {
if (getText().equals(s)) {
return;
}
super.setText(s);
}
@Override
public Border getBorder() {
return Borders.getComboBoxEditorBorder();
}
};
this.editor = this.textField;
}
示例7: configurePopup
import com.rapidminer.gui.look.borders.Borders; //导入依赖的package包/类
@Override
protected void configurePopup() {
setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
setBorderPainted(true);
setBorder(Borders.getPopupBorder());
setOpaque(false);
add(this.scroller);
setDoubleBuffered(true);
setFocusable(false);
}
示例8: initBorderDefaults
import com.rapidminer.gui.look.borders.Borders; //导入依赖的package包/类
private void initBorderDefaults(UIDefaults table) {
Object[] borderDefaults = {
"a", IconFactory.getSliderThumb(),
"TextField.border", Borders.getTextFieldBorder(),
"PasswordField.border", Borders.getTextFieldBorder(),
"FormattedTextField.border", Borders.getTextFieldBorder(),
"SplitPane.border", Borders.getSplitPaneBorder(),
"ScrollPane.border", Borders.getScrollPaneBorder(),
"InternalFrame.border", Borders.getInternalFrameBorder(),
"Table.scrollPaneBorder", null, // removed table border, original: Borders.getSplitPaneBorder()
"Table.tabbedPaneBorder", null, // remove double borders
"ToolBar.border", Borders.getToolBarBorder(),
"Spinner.border", Borders.getSpinnerBorder(),
"ComboBox.border", Borders.getComboBoxBorder(),
"Button.border", Borders.getEmptyButtonBorder(),
"ToggleButton.border", Borders.getEmptyButtonBorder(),
"ProgressBar.border", Borders.getProgressBarBorder(),
"PopupMenu.border", Borders.getPopupMenuBorder(),
"MenuBar.border", Borders.getMenuBarBorder(),
"CheckBox.border", Borders.getCheckBoxBorder(),
"RadioButton.border", Borders.getCheckBoxBorder(),
"ToolTip.border", Borders.getToolTipBorder(),
"CheckBox.icon", IconFactory.getCheckBoxIcon(),
"RadioButton.icon", IconFactory.getRadioButtonIcon(),
"ComboBox.focusCellHighlightBorder", Borders.getComboBoxListCellRendererFocusBorder(),
};
table.putDefaults(borderDefaults);
}
示例9: RapidLookListCellRenderer
import com.rapidminer.gui.look.borders.Borders; //导入依赖的package包/类
public RapidLookListCellRenderer() {
super();
if (this.focusBorder == null) {
this.focusBorder = Borders.getComboBoxListCellRendererFocusBorder();
}
}
示例10: installDefaults
import com.rapidminer.gui.look.borders.Borders; //导入依赖的package包/类
@Override
public void installDefaults() {
super.installDefaults();
this.frame.setBorder(Borders.getInternalFrameBorder());
}