public abstract class Spring extends SimpleElement
Spring
controls distance between properties in a
Row
element.
In general, a Property
encapsulates the property label, and a
property editor UI. The size of these UI componets is controlled by the
JComponent.getPreferredSize()
,
JComponent.getMinimumSize()
, and the
JComponent.getMaximumSize()
method.
To control the distance between two properties, an edge and a property
place a Spring
object between the properties or the property and
the edge. The getPreferredLength()
, getMinimumLength()
,
and getMaximumLength()
controls the behavior of the spring
object according to the rules of the Spring
object.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MAXIMUM_LENGTH |
static java.lang.String |
MINIMUM_LENGTH |
static java.lang.String |
PREFERRED_LENGTH |
static java.lang.String |
SPRING |
Constructor and Description |
---|
Spring() |
Modifier and Type | Method and Description |
---|---|
abstract int |
getMaximumLength()
Get the maximum length of the
Spring . |
abstract int |
getMinimumLength()
Get the minimum length of the
Spring . |
abstract int |
getPreferredLength()
Get the preferred length of the
Spring . |
java.lang.String |
toString() |
getChildren, getExtensible, isExtensible, mayHaveChildren
public static final java.lang.String SPRING
public static final java.lang.String PREFERRED_LENGTH
public static final java.lang.String MINIMUM_LENGTH
public static final java.lang.String MAXIMUM_LENGTH
public abstract int getPreferredLength()
Spring
.Spring
.public abstract int getMinimumLength()
Spring
.Spring
.public abstract int getMaximumLength()
Spring
.Spring
.public java.lang.String toString()
toString
in class java.lang.Object