當前位置: 首頁>>代碼示例>>Java>>正文


Java Borders類代碼示例

本文整理匯總了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());
		}
	}
}
 
開發者ID:rapidminer,項目名稱:rapidminer-5,代碼行數:24,代碼來源:RoundedRectanglePopup.java

示例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);
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:22,代碼來源:RapidLookAndFeel.java

示例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());
		}
	}
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:26,代碼來源:RoundedRectanglePopup.java

示例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);
}
 
開發者ID:rapidminer,項目名稱:rapidminer-studio,代碼行數:22,代碼來源:RapidLookAndFeel.java

示例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());
		}
	}
}
 
開發者ID:rapidminer,項目名稱:rapidminer-studio,代碼行數:27,代碼來源:RoundedRectanglePopup.java

示例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;
}
 
開發者ID:rapidminer,項目名稱:rapidminer-5,代碼行數:22,代碼來源:RapidLookComboBoxEditor.java

示例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);
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:11,代碼來源:ComboBoxUI.java

示例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);
}
 
開發者ID:rapidminer,項目名稱:rapidminer-5,代碼行數:29,代碼來源:RapidLookAndFeel.java

示例9: RapidLookListCellRenderer

import com.rapidminer.gui.look.borders.Borders; //導入依賴的package包/類
public RapidLookListCellRenderer() {
	super();
	if (this.focusBorder == null) {
		this.focusBorder = Borders.getComboBoxListCellRendererFocusBorder();
	}
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:7,代碼來源:RapidLookListCellRenderer.java

示例10: installDefaults

import com.rapidminer.gui.look.borders.Borders; //導入依賴的package包/類
@Override
public void installDefaults() {
	super.installDefaults();
	this.frame.setBorder(Borders.getInternalFrameBorder());
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:6,代碼來源:InternalFrameUI.java


注:本文中的com.rapidminer.gui.look.borders.Borders類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。