软件包 | 描述 |
---|---|
javax.swing |
提供了一套“轻量级”(所有的java语言)组件,以最大可能的程度,在所有平台上工作。
|
Modifier and Type | Method and Description |
---|---|
static Spring |
Spring.constant(int pref)
返回一个支柱--弹簧的最小和最大值,优先,每个有价值
pref 。
|
static Spring |
Spring.constant(int min, int pref, int max)
返回弹簧的最小和最大值,优先,有价值:
min ,
pref ,和
max 分别。
|
Spring |
SpringLayout.Constraints.getConstraint(String edgeName)
返回指定的边界值,这可能是一个衍生的价值,甚至
null 。
|
Spring |
SpringLayout.getConstraint(String edgeName, Component c)
返回弹簧控制组件的指定边缘与母公司的顶部或左边缘之间的距离。
|
Spring |
SpringLayout.Constraints.getHeight()
返回的
height 属性的值。
|
Spring |
SpringLayout.Constraints.getWidth()
返回的
width 属性的值。
|
Spring |
SpringLayout.Constraints.getX()
返回的
x 属性的值。
|
Spring |
SpringLayout.Constraints.getY()
返回的
y 属性的值。
|
static Spring |
Spring.height(Component c)
返回弹簧的最小,最大和首选,价值属性的最小值,preferredsize高度定义的组件,提供最大值和尺寸特性。
|
static Spring |
Spring.max(Spring s1, Spring s2)
返回
max(s1, s2) :弹簧的值总是大于(或等于)两
s1 和
s2 值。
|
static Spring |
Spring.minus(Spring s)
返回
-s :弹簧运行方向相反
s 。
|
static Spring |
Spring.scale(Spring s, float factor)
返回弹簧的最小,最大和首选,价值属性参数的弹簧性能的一倍,
s 。
|
static Spring |
Spring.sum(Spring s1, Spring s2)
返回
s1+s2 :春天代表
s1 和
s2 系列。
|
static Spring |
Spring.width(Component c)
返回弹簧的最小,最大和首选,价值属性的最小值,preferredsize宽度定义的组件,提供最大值和尺寸特性。
|
Modifier and Type | Method and Description |
---|---|
static Spring |
Spring.max(Spring s1, Spring s2)
返回
max(s1, s2) :弹簧的值总是大于(或等于)两
s1 和
s2 值。
|
static Spring |
Spring.minus(Spring s)
返回
-s :弹簧运行方向相反
s 。
|
void |
SpringLayout.putConstraint(String e1, Component c1, Spring s, String e2, Component c2)
链接边缘
e1 组件的组件
c2 边缘
e2
c1 。
|
static Spring |
Spring.scale(Spring s, float factor)
返回弹簧的最小,最大和首选,价值属性参数的弹簧性能的一倍,
s 。
|
void |
SpringLayout.Constraints.setConstraint(String edgeName, Spring s)
设置指定边缘的弹簧。
|
void |
SpringLayout.Constraints.setHeight(Spring height)
集
height 财产,控制组件的高度。
|
void |
SpringLayout.Constraints.setWidth(Spring width)
集
width 属性,它控制的一个组成部分的宽度。
|
void |
SpringLayout.Constraints.setX(Spring x)
集
x 财产,控制组件的位置
x 价值。
|
void |
SpringLayout.Constraints.setY(Spring y)
集
y 财产,控制组件的位置
y 价值。
|
static Spring |
Spring.sum(Spring s1, Spring s2)
返回
s1+s2 :春天代表
s1 和
s2 系列。
|
Constructor and Description |
---|
Constraints(Spring x, Spring y)
创建一个
Constraints 对象与指定值的
x 和
y 性质。
|
Constraints(Spring x, Spring y, Spring width, Spring height)
创建一个具有指定值的
x ,
Constraints 对象
y ,
width ,和
height 性质。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.