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


Java SpringLayout.getConstraints方法代碼示例

本文整理匯總了Java中javax.swing.SpringLayout.getConstraints方法的典型用法代碼示例。如果您正苦於以下問題:Java SpringLayout.getConstraints方法的具體用法?Java SpringLayout.getConstraints怎麽用?Java SpringLayout.getConstraints使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在javax.swing.SpringLayout的用法示例。


在下文中一共展示了SpringLayout.getConstraints方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getConstraintsForCell

import javax.swing.SpringLayout; //導入方法依賴的package包/類
private static SpringLayout.Constraints getConstraintsForCell(
                                            int row, int col,
                                            Container parent,
                                            int cols) {
    SpringLayout layout = (SpringLayout) parent.getLayout();
    Component c = parent.getComponent(row * cols + col);
    return layout.getConstraints(c);
}
 
開發者ID:beehive-lab,項目名稱:Maxine-VM,代碼行數:9,代碼來源:SpringUtilities.java

示例2: getConstraintsForCell

import javax.swing.SpringLayout; //導入方法依賴的package包/類
private static SpringLayout.Constraints getConstraintsForCell(
        int row, int col,
        Container parent,
        int cols) {
    SpringLayout layout = (SpringLayout) parent.getLayout();
    Component c = parent.getComponent(row * cols + col);
    return layout.getConstraints(c);
}
 
開發者ID:machaval,項目名稱:mule-intellij-plugins,代碼行數:9,代碼來源:SpringUtilities.java

示例3: getConstraintsForCell

import javax.swing.SpringLayout; //導入方法依賴的package包/類
private static SpringLayout.Constraints getConstraintsForCell(
    final int col,
    final int row,
    final Container parent,
    final int cols) {
  final SpringLayout layout = (SpringLayout) parent.getLayout();
  final Component c = parent.getComponent(row * cols + col);
  return layout.getConstraints(c);
}
 
開發者ID:AndreasWBartels,項目名稱:libraries,代碼行數:10,代碼來源:SpringLayoutUtilities.java

示例4: getConstraintsForCell

import javax.swing.SpringLayout; //導入方法依賴的package包/類
private static SpringLayout.Constraints getConstraintsForCell(
		int row, int col,
		Container parent,
		int cols) {
	SpringLayout layout = (SpringLayout) parent.getLayout();
	Component c = parent.getComponent(row * cols + col);
	return layout.getConstraints(c);
}
 
開發者ID:ESultanik,項目名稱:othello,代碼行數:9,代碼來源:SpringUtilities.java

示例5: getConstraintsForCell

import javax.swing.SpringLayout; //導入方法依賴的package包/類
private static SpringLayout.Constraints getConstraintsForCell(int row,
                                                              int col,
                                                              Container parent,
                                                              int cols) {
    SpringLayout layout = (SpringLayout) parent.getLayout();
    Component c = parent.getComponent(row * cols + col);
    return layout.getConstraints(c);
}
 
開發者ID:objektwerks,項目名稱:swing,代碼行數:9,代碼來源:SpringLayoutManager.java

示例6: getConstraintsForCell

import javax.swing.SpringLayout; //導入方法依賴的package包/類
private static SpringLayout.Constraints getConstraintsForCell(int row, int col, Container parent, int cols) {
	SpringLayout layout = (SpringLayout) parent.getLayout();
	Component c = parent.getComponent(row * cols + col);
	return layout.getConstraints(c);
}
 
開發者ID:max6cn,項目名稱:jmt,代碼行數:6,代碼來源:SpringUtilities.java

示例7: getConstraintsForCell

import javax.swing.SpringLayout; //導入方法依賴的package包/類
private static SpringLayout.Constraints getConstraintsForCell(int row, int col, Container parent, int cols) {
    SpringLayout layout = (SpringLayout) parent.getLayout();
    Component c = parent.getComponent(row * cols + col);
    return layout.getConstraints(c);
}
 
開發者ID:jalian-systems,項目名稱:marathonv5,代碼行數:6,代碼來源:SpringUtilities.java

示例8: getConstraintsForCell

import javax.swing.SpringLayout; //導入方法依賴的package包/類
private static SpringLayout.Constraints getConstraintsForCell(int row, int col,
    Container parent, int cols) {
    SpringLayout layout = (SpringLayout) parent.getLayout();
    Component c = parent.getComponent(row * cols + col);
    return layout.getConstraints(c);
}
 
開發者ID:meteoorkip,項目名稱:JavaGraph,代碼行數:7,代碼來源:SpringUtilities.java

示例9: getConstraintsForCell

import javax.swing.SpringLayout; //導入方法依賴的package包/類
private static SpringLayout.Constraints getConstraintsForCell(int row, int col, 
		int totalCols, JPanel panel) {
	SpringLayout layout = (SpringLayout) panel.getLayout();
	Component c = panel.getComponent(row * totalCols + col);
	return layout.getConstraints(c);
}
 
開發者ID:brunyuriy,項目名稱:crystalvc,代碼行數:7,代碼來源:SpringLayoutUtility.java


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