cookxml.cookswing.helper
Class SpringHelper

java.lang.Object
  extended bycookxml.cookswing.helper.SpringHelper
All Implemented Interfaces:
NoAdd

public class SpringHelper
extends Object
implements NoAdd

Helper class for constructing a Spring object.

Since:
CookSwing 1.0
See Also:
Spring, SpringLayout, SpringCreator, SpringLayoutAdder

Field Summary
 String get
          get a spring from the component child.
 Integer max
          to create a flexiable spring with the maximum size.
 Integer min
          to create a flexiable spring with the minimum size.
 String op
          the math operation that to be done to the child spring.
static String OP_MAX
          get the maximum spring of the child springs.
static String OP_MINUS
          get the difference of the child springs.
static String OP_SUM
          get the sum spring of the child springs.
 Integer pref
          to create a flexiable spring with the preferred size.
 Integer size
          to create a rigid spring of the fixed size.
 
Constructor Summary
SpringHelper()
           
 
Method Summary
 void add(Component c)
           
 void add(Spring s)
           
 Spring getSpring(SpringLayout layout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OP_MAX

public static String OP_MAX
get the maximum spring of the child springs.


OP_MINUS

public static String OP_MINUS
get the difference of the child springs.


OP_SUM

public static String OP_SUM
get the sum spring of the child springs.


size

public Integer size
to create a rigid spring of the fixed size.


min

public Integer min
to create a flexiable spring with the minimum size.


max

public Integer max
to create a flexiable spring with the maximum size.


pref

public Integer pref
to create a flexiable spring with the preferred size.


get

public String get
get a spring from the component child. The value can be either "width", "height", "x" or "y".


op

public String op
the math operation that to be done to the child spring.

See Also:
OP_MAX, OP_MINUS, OP_SUM
Constructor Detail

SpringHelper

public SpringHelper()
Method Detail

getSpring

public Spring getSpring(SpringLayout layout)

add

public void add(Spring s)

add

public void add(Component c)