X-Git-Url: http://git.nikiroo.be/?p=fanfix.git;a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Fjexer%2FTSizeConstraint.java;fp=src%2Fbe%2Fnikiroo%2Fjexer%2FTSizeConstraint.java;h=bfdbb3a8229ad22570da6ca0faca1a50631553f4;hp=39daa20655abe0c14ac56f077af9d0e159d9ff06;hb=143130b91a88b324931454fc0630bf6c66a9dd25;hpb=800246e1082d61b9ac109bc6a34b10a7acb6ce35 diff --git a/src/be/nikiroo/jexer/TSizeConstraint.java b/src/be/nikiroo/jexer/TSizeConstraint.java index 39daa20..bfdbb3a 100644 --- a/src/be/nikiroo/jexer/TSizeConstraint.java +++ b/src/be/nikiroo/jexer/TSizeConstraint.java @@ -53,7 +53,9 @@ public class TSizeConstraint { return y2; } - // coordinates < 0 = from the other side, x2 or y2 = 0 = max size + // coordinates < 0 = from the other side + // x2 or y2 = 0 = max size + // coordinate NULL = do not work on that side at all static public void setSize(List sizeConstraints, TWidget child, Integer x1, Integer y1, Integer x2, Integer y2) { sizeConstraints.add(new TSizeConstraint(child, x1, y1, x2, y2));