java.lang.Object
net.miginfocom.layout.ResizeConstraint
- All Implemented Interfaces:
Externalizable
,Serializable
A parsed constraint that specifies how an entity (normally column/row or component) can shrink or
grow compared to other entities.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) Float
How flexible the entity should be, relative to other entities, when it comes to growing.(package private) int
The relative priority used for determining which entities gets the extra space first.(package private) Float
(package private) int
(package private) static final Float
-
Constructor Summary
ConstructorsConstructorDescriptionResizeConstraint
(int shrinkPrio, Float shrinkWeight, int growPrio, Float growWeight) -
Method Summary
-
Field Details
-
WEIGHT_100
-
grow
Float growHow 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 growPrioThe relative priority used for determining which entities gets the extra space first. -
shrink
Float shrink -
shrinkPrio
int shrinkPrio
-
-
Constructor Details
-
ResizeConstraint
public ResizeConstraint() -
ResizeConstraint
-
-
Method Details
-
readResolve
- Throws:
ObjectStreamException
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-