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