- 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.Externalizable
A 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.Float
grow
How flexible the entity should be, relative to other entities, when it comes to growing.(package private) int
growPrio
The relative priority used for determining which entities gets the extra space first.(package private) java.lang.Float
shrink
(package private) int
shrinkPrio
(package private) static java.lang.Float
WEIGHT_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 void
readExternal(java.io.ObjectInput in)
private java.lang.Object
readResolve()
void
writeExternal(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.null
or 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:
readExternal
in interfacejava.io.Externalizable
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
- Specified by:
writeExternal
in interfacejava.io.Externalizable
- Throws:
java.io.IOException
-
-