Tabnine Logo
PApplet.insideSettings
Code IndexAdd Tabnine to your IDE (free)

How to use
insideSettings
method
in
processing.core.PApplet

Best Java code snippets using processing.core.PApplet.insideSettings (Showing top 15 results out of 315)

origin: org.processing/core

/**
 * Create a full-screen sketch using the default renderer.
 */
public void fullScreen() {
 if (!fullScreen) {
  if (insideSettings("fullScreen")) {
   this.fullScreen = true;
  }
 }
}
origin: ajavamind/Processing-Cardboard

/**
 * Create a full-screen sketch using the default renderer.
 */
public void fullScreen() {
  if (!fullScreen) {
    if (insideSettings("fullScreen")) {
      this.fullScreen = true;
    }
  }
}
origin: ajavamind/Processing-Cardboard

  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;
      }
    }
  }

origin: org.processing/core

public void fullScreen(int display) {
 if (!fullScreen || display != this.display) {
  if (insideSettings("fullScreen", display)) {
   this.fullScreen = true;
   this.display = display;
  }
 }
}
origin: ajavamind/Processing-Cardboard

/**
 * 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;
    }
  }
}
origin: ajavamind/Processing-Cardboard

  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;
      }
    }
  }

origin: org.processing/core

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;
  }
 }
}
origin: ajavamind/Processing-Cardboard

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;
    }
  }
}
origin: ajavamind/Processing-Cardboard

public void fullScreen(String renderer) {
  if (!fullScreen ||
      !renderer.equals(this.renderer)) {
    if (insideSettings("fullScreen", renderer)) {
      this.fullScreen = true;
      this.renderer = renderer;
    }
  }
}
origin: org.processing/core

/**
 * @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;
  }
 }
}
origin: org.processing/core

/**
 * ( 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;
   }
  }
 }

origin: ajavamind/Processing-Cardboard

/**
 * 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;
    }
  }
}
origin: org.processing/core

if (insideSettings("size", width, height)) {
 this.width = width;
 this.height = height;
origin: org.processing/core

 height != this.height ||
 !renderer.equals(this.renderer)) {
if (insideSettings("size", width, height, "\"" + renderer + "\"",
          "\"" + path + "\"")) {
 this.width = width;
origin: org.processing/core

/**
* @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()");
  }
 }
}
processing.corePAppletinsideSettings

Popular methods of PApplet

  • constrain
  • createGraphics
    Create an offscreen graphics surface for drawing, in this case for a renderer that writes to a file
  • loadStrings
    ( begin auto-generated from loadStrings.xml ) Reads the contents of a file or url and creates a Stri
  • saveStrings
    ( begin auto-generated from saveStrings.xml ) Writes an array of strings to a file, one line per str
  • abs
  • createImage
    ( begin auto-generated from createImage.xml ) Creates a new PImage (the datatype for storing images)
  • createShape
  • createWriter
    ( begin auto-generated from createWriter.xml ) Creates a new file in the sketch folder, and a PrintW
  • loadImage
  • main
    main() method for running this class from the command line. Usage: PApplet [options] [s
  • max
  • parseInt
  • max,
  • parseInt,
  • random,
  • round,
  • split,
  • sqrt,
  • unhex,
  • arrayCopy,
  • ceil,
  • checkExtension

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • startActivity (Activity)
  • getSystemService (Context)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Runner (org.openjdk.jmh.runner)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now