/** * Create a full-screen sketch using the default renderer. */ public void fullScreen() { if (!fullScreen) { if (insideSettings("fullScreen")) { this.fullScreen = true; } } }
/** * Create a full-screen sketch using the default renderer. */ public void fullScreen() { if (!fullScreen) { if (insideSettings("fullScreen")) { this.fullScreen = true; } } }
public void fullScreen(int display) { //Display index doesn't make sense in Android. //Should we throw some error in log ? if (!fullScreen /*|| display != this.display*/) { if (insideSettings("fullScreen", display)) { this.fullScreen = true; // this.display = display; } } }
public void fullScreen(int display) { if (!fullScreen || display != this.display) { if (insideSettings("fullScreen", display)) { this.fullScreen = true; this.display = display; } } }
/** * Starts up and creates a two-dimensional drawing surface, or resizes the * current drawing surface. * <p/> * This should be the first thing called inside of setup(). * <p/> * If called once a renderer has already been set, this will use the * previous renderer and simply resize it. */ public void size(int iwidth, int iheight) { if (iwidth != this.width || iheight != this.height) { if (insideSettings("size", iwidth, iheight)) { this.width = iwidth; this.height = iheight; } } }
public void fullScreen(String renderer, int display) { if (!fullScreen || !renderer.equals(this.renderer) /*|| display != this.display*/) { if (insideSettings("fullScreen", renderer, display)) { this.fullScreen = true; this.renderer = renderer; // this.display = display; } } }
public void size(int width, int height, String renderer) { if (width != this.width || height != this.height || !renderer.equals(this.renderer)) { //println(width, height, renderer, this.width, this.height, this.renderer); if (insideSettings("size", width, height, "\"" + renderer + "\"")) { this.width = width; this.height = height; this.renderer = renderer; } } }
public void size(int iwidth, int iheight, String irenderer) { if (iwidth != this.width || iheight != this.height || !this.renderer.equals(irenderer)) { if (insideSettings("size", iwidth, iheight, irenderer)) { this.width = iwidth; this.height = iheight; this.renderer = irenderer; } } }
public void fullScreen(String renderer) { if (!fullScreen || !renderer.equals(this.renderer)) { if (insideSettings("fullScreen", renderer)) { this.fullScreen = true; this.renderer = renderer; } } }
/** * @param display the screen to run the sketch on (1, 2, 3, etc. or on multiple screens using SPAN) */ public void fullScreen(String renderer, int display) { if (!fullScreen || !renderer.equals(this.renderer) || display != this.display) { if (insideSettings("fullScreen", renderer, display)) { this.fullScreen = true; this.renderer = renderer; this.display = display; } } }
/** * ( begin auto-generated from fullScreen.xml ) * * Description to come... * * ( end auto-generated ) * @webref environment * @param renderer the renderer to use, e.g. P2D, P3D, JAVA2D (default) * @see PApplet#settings() * @see PApplet#setup() * @see PApplet#size(int,int) * @see PApplet#smooth() */ public void fullScreen(String renderer) { if (!fullScreen || !renderer.equals(this.renderer)) { if (insideSettings("fullScreen", renderer)) { this.fullScreen = true; this.renderer = renderer; } } }
/** * Creates a new PGraphics object and sets it to the specified size. * <p/> * Note that you cannot change the renderer once outside of setup(). * In most cases, you can call size() to give it a new size, * but you need to always ask for the same renderer, otherwise * you're gonna run into trouble. * <p/> * The size() method should *only* be called from inside the setup() or * draw() methods, so that it is properly run on the main animation thread. * To change the size of a PApplet externally, use setSize(), which will * update the component size, and queue a resize of the renderer as well. */ public void size(final int iwidth, final int iheight, final String irenderer, final String ipath) { if (iwidth != this.width || iheight != this.height || !this.renderer.equals(irenderer)) { if (insideSettings("size", iwidth, iheight, irenderer, ipath)) { this.width = iwidth; this.height = iheight; this.renderer = irenderer; } } }
if (insideSettings("size", width, height)) { this.width = width; this.height = height;
height != this.height || !renderer.equals(this.renderer)) { if (insideSettings("size", width, height, "\"" + renderer + "\"", "\"" + path + "\"")) { this.width = width;
/** * @webref environment * @param density 1 or 2 * */ public void pixelDensity(int density) { //println(density + " " + this.pixelDensity); if (density != this.pixelDensity) { if (insideSettings("pixelDensity", density)) { if (density != 1 && density != 2) { throw new RuntimeException("pixelDensity() can only be 1 or 2"); } if (!FX2D.equals(renderer) && density == 2 && displayDensity() == 1) { // FX has its own check in PSurfaceFX // Don't throw exception because the sketch should still work System.err.println("pixelDensity(2) is not available for this display"); this.pixelDensity = 1; } else { this.pixelDensity = density; } } else { System.err.println("not inside settings"); // this should only be reachable when not running in the PDE, // so saying it's a settings()--not just setup()--issue should be ok throw new RuntimeException("pixelDensity() can only be used inside settings()"); } } }