当前位置: 首页>>代码示例>>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;未经允许,请勿转载。