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


Java TableHeaderUI類代碼示例

本文整理匯總了Java中com.rapidminer.gui.look.ui.TableHeaderUI的典型用法代碼示例。如果您正苦於以下問題:Java TableHeaderUI類的具體用法?Java TableHeaderUI怎麽用?Java TableHeaderUI使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


TableHeaderUI類屬於com.rapidminer.gui.look.ui包,在下文中一共展示了TableHeaderUI類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getVisualizationComponent

import com.rapidminer.gui.look.ui.TableHeaderUI; //導入依賴的package包/類
@Override
public Component getVisualizationComponent(Object renderable, IOContainer ioContainer) {
	TableModel tableModel = getTableModel(renderable, ioContainer, false);
	if (tableModel != null) {
		ExtendedJTable table = new ExtendedJTable(getTableModel(renderable, ioContainer, false), isSortable(),
				isColumnMovable(), isAutoresize());
		table.setRowHighlighting(true);
		table.setRowHeight(PropertyPanel.VALUE_CELL_EDITOR_HEIGHT);
		table.getTableHeader().putClientProperty(RapidLookTools.PROPERTY_TABLE_HEADER_BACKGROUND, Colors.WHITE);
		((TableHeaderUI) table.getTableHeader().getUI()).installDefaults();

		JScrollPane sp = new ExtendedJScrollPane(table);
		sp.setBorder(BorderFactory.createEmptyBorder(42, 10, 10, 10));
		sp.setBackground(Colors.WHITE);
		sp.getViewport().setBackground(Colors.WHITE);

		JPanel panel = new JPanel(new BorderLayout());
		panel.add(sp, BorderLayout.CENTER);
		return panel;
	} else {
		return ResultDisplayTools.createErrorComponent("No visualization possible for table.");
	}
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:24,代碼來源:AbstractTableModelTableRenderer.java

示例2: ANOVAMatrixViewer

import com.rapidminer.gui.look.ui.TableHeaderUI; //導入依賴的package包/類
public ANOVAMatrixViewer(ANOVAMatrix matrix) {
	super(new BorderLayout());

	JPanel panel = new JPanel(new GridBagLayout());
	panel.setOpaque(true);
	panel.setBackground(Colors.WHITE);

	GridBagConstraints gbc = new GridBagConstraints();
	gbc.gridx = 0;
	gbc.gridy = 0;
	gbc.weightx = 1.0;
	gbc.weighty = 1.0;
	gbc.fill = GridBagConstraints.BOTH;
	gbc.insets = new Insets(42, 10, 20, 10);

	// table
	ANOVAMatrixViewerTable table = new ANOVAMatrixViewerTable(matrix);
	table.getTableHeader().putClientProperty(RapidLookTools.PROPERTY_TABLE_HEADER_BACKGROUND, Colors.WHITE);
	((TableHeaderUI) table.getTableHeader().getUI()).installDefaults();
	table.setRowHighlighting(true);
	table.setRowHeight(PropertyPanel.VALUE_CELL_EDITOR_HEIGHT);

	JScrollPane scrollPane = new ExtendedJScrollPane(table);
	scrollPane.setBorder(null);
	scrollPane.setBackground(Colors.WHITE);
	scrollPane.getViewport().setBackground(Colors.WHITE);
	panel.add(scrollPane, gbc);

	// info string
	JLabel infoText = new JLabel();
	infoText.setText("A colored background indicates that the probability for non-difference between the groups is less than "
			+ Tools.formatNumber(matrix.getSignificanceLevel()));
	gbc.gridy += 1;
	gbc.insets = new Insets(5, 10, 5, 10);
	gbc.weighty = 0.0;
	gbc.fill = GridBagConstraints.HORIZONTAL;
	panel.add(infoText, gbc);

	add(panel, BorderLayout.CENTER);
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:41,代碼來源:ANOVAMatrixViewer.java


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