- java.lang.Object
-
- net.miginfocom.layout.ResizeConstraint
-
- All Implemented Interfaces:
java.io.Externalizable,java.io.Serializable
final class ResizeConstraint extends java.lang.Object implements java.io.ExternalizableA parsed constraint that specifies how an entity (normally column/row or component) can shrink or grow compared to other entities.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.FloatgrowHow flexible the entity should be, relative to other entities, when it comes to growing.(package private) intgrowPrioThe relative priority used for determining which entities gets the extra space first.(package private) java.lang.Floatshrink(package private) intshrinkPrio(package private) static java.lang.FloatWEIGHT_100
-
Constructor Summary
Constructors Constructor Description ResizeConstraint()ResizeConstraint(int shrinkPrio, java.lang.Float shrinkWeight, int growPrio, java.lang.Float growWeight)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidreadExternal(java.io.ObjectInput in)private java.lang.ObjectreadResolve()voidwriteExternal(java.io.ObjectOutput out)
-
-
-
Field Detail
-
WEIGHT_100
static final java.lang.Float WEIGHT_100
-
grow
java.lang.Float grow
How flexible the entity should be, relative to other entities, when it comes to growing.nullor zero mean it will never grow. An entity that has twice the growWeight compared to another entity will get twice as much of available space."grow" are only compared within the same "growPrio".
-
growPrio
int growPrio
The relative priority used for determining which entities gets the extra space first.
-
shrink
java.lang.Float shrink
-
shrinkPrio
int shrinkPrio
-
-
Method Detail
-
readResolve
private java.lang.Object readResolve() throws java.io.ObjectStreamException- Throws:
java.io.ObjectStreamException
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException- Specified by:
readExternalin interfacejava.io.Externalizable- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException- Specified by:
writeExternalin interfacejava.io.Externalizable- Throws:
java.io.IOException
-
-