// // WorldConstraints class // part of the set of documents known as Java no sugar. // Copyright (c) 1996 Sunil Gupta, sunil@magnetic.demon.co.uk // placed into the public domain by the author // public class WorldConstraints extends Object { public boolean resizeX; public boolean resizeY; public boolean override_width = false; public boolean override_height = false; public double x,y; public double width,height; public WorldConstraints(double x, double y) { resizeX = false; resizeY = false; this.x = x; this.y = y; width=0.0; height=0.0; } public WorldConstraints() { this(0.0, 0.0); } public void setInitialWidth( double width) { override_width = true; this.width = width; } public void setInitialHeight( double height) { override_height = true; this.height = height; } public void setSize (double width, double height) { setInitialWidth(width); setInitialHeight(height); } }
file: /Techref/language/java/nosugar/custom/world/code/WorldConstraints.java, 1KB, , updated: 1997/1/11 19:27, local time: 2024/11/30 01:15,
18.117.94.77:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://techref.massmind.org/Techref/language/java/nosugar/custom/world/code/WorldConstraints.java"> language java nosugar custom world code WorldConstraints</A> |
Did you find what you needed? |
Welcome to massmind.org! |
Welcome to techref.massmind.org! |
.