please dont rip this site

Language Java Nosugar Custom World Code Worldconstraints.java

// 
//  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/12/27 23:35,
TOP NEW HELP FIND: 
3.145.99.221: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?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://sxlist.com/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 sxlist.com!


Site supported by
sales, advertizing,
& kind contributors
just like you!

Please don't rip/copy
(here's why

Copies of the site on CD
are available at minimal cost.
 

Welcome to sxlist.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .