Back to project page CalWatch.
The source code is released under:
GNU General Public License
If you think the Android project CalWatch listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
// $Id: ClStayConstraint.java,v 1.10 1999/04/20 00:26:39 gjb Exp $ ////from w w w .jav a 2 s . c om // Cassowary Incremental Constraint Solver // Original Smalltalk Implementation by Alan Borning // This Java Implementation by Greg J. Badros, <gjb@cs.washington.edu> // http://www.cs.washington.edu/homes/gjb // (C) 1998, 1999 Greg J. Badros and Alan Borning // See ../LICENSE for legal details regarding this software // // ClStayConstraint // package EDU.Washington.grad.gjb.cassowary; public class ClStayConstraint extends ClEditOrStayConstraint { public ClStayConstraint(ClVariable var, ClStrength strength, double weight) { super(var,strength,weight); } public ClStayConstraint(ClVariable var, ClStrength strength) { super(var,strength,1.0); } public ClStayConstraint(ClVariable var) { super(var,ClStrength.weak,1.0); } public boolean isStayConstraint() { return true; } public String toString() { return "stay " + super.toString(); } }