Skip navigation links 
 
oracle.ide.inspector.layout
Class Spring
java.lang.Object
  
oracle.ide.inspector.layout.SimpleElement
      
oracle.ide.inspector.layout.Spring
- All Implemented Interfaces:
 
- Element
 
- 
public abstract class Spring
 
- extends SimpleElement
 
A 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.
 
 
  
 
  
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
 
SPRING
public static final java.lang.String SPRING
- 
- See Also:
 
- Constant Field Values
 
 
PREFERRED_LENGTH
public static final java.lang.String PREFERRED_LENGTH
- 
- See Also:
 
- Constant Field Values
 
 
MINIMUM_LENGTH
public static final java.lang.String MINIMUM_LENGTH
- 
- See Also:
 
- Constant Field Values
 
 
MAXIMUM_LENGTH
public static final java.lang.String MAXIMUM_LENGTH
- 
- See Also:
 
- Constant Field Values
 
 
Spring
public Spring()
getPreferredLength
public abstract int getPreferredLength()
- Get the preferred length of the 
Spring. 
- 
- Returns:
 
- the preferred length of the 
Spring. 
 
getMinimumLength
public abstract int getMinimumLength()
- Get the minimum length of the 
Spring. 
- 
- Returns:
 
- the minimum length of the 
Spring. 
 
getMaximumLength
public abstract int getMaximumLength()
- Get the maximum length of the 
Spring. 
- 
- Returns:
 
- the maximum length of the 
Spring. 
 
toString
public java.lang.String toString()
- 
- Overrides:
 
toString in class java.lang.Object 
 
Skip navigation links 
 
Copyright © 1997, 2016, Oracle. All rights reserved.