当前位置: 首页>>代码示例>>Java>>正文


Java SpringLayout.Constraints方法代码示例

本文整理汇总了Java中javax.swing.SpringLayout.Constraints方法的典型用法代码示例。如果您正苦于以下问题:Java SpringLayout.Constraints方法的具体用法?Java SpringLayout.Constraints怎么用?Java SpringLayout.Constraints使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在javax.swing.SpringLayout的用法示例。


在下文中一共展示了SpringLayout.Constraints方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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:objektwerks,项目名称:swing,代码行数:9,代码来源:SpringLayoutManager.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:ESultanik,项目名称:othello,代码行数:9,代码来源:SpringUtilities.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, Container parent, int cols)
{
	return ((SpringLayout) parent.getLayout()).getConstraints(parent.getComponent((row * cols) + col));
}
 
开发者ID:rubenswagner,项目名称:L2J-Global,代码行数:5,代码来源:SpringUtilities.java

示例10: 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

示例11: getConstraintsForCell

import javax.swing.SpringLayout; //导入方法依赖的package包/类
private static SpringLayout.Constraints getConstraintsForCell(
		final int row, final int col, 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:kennycyb,项目名称:java-ui-factory,代码行数:7,代码来源:SpringUtilities.java

示例12: getConstraintsForCell

import javax.swing.SpringLayout; //导入方法依赖的package包/类
private static SpringLayout.Constraints getConstraintsForCell(int row, int col,
		Container parent, int cols) {
	final SpringLayout layout = (SpringLayout) parent.getLayout();
	final Component c = parent.getComponent(row * cols + col);
	return layout.getConstraints(c);
}
 
开发者ID:javamelody,项目名称:javamelody,代码行数:7,代码来源:SpringUtilities.java


注:本文中的javax.swing.SpringLayout.Constraints方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。