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

How to use
expand
method
in
processing.core.PApplet

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

origin: org.processing/core

static public String[] append(String array[], String value) {
 array = expand(array, array.length + 1);
 array[array.length-1] = value;
 return array;
}
origin: ajavamind/Processing-Cardboard

protected void beginContourImpl() {
 if (vertexCodes == null) {
  vertexCodes = new int[10];
 } else if (vertexCodes.length == vertexCodeCount) {
  vertexCodes = PApplet.expand(vertexCodes);
 }
 vertexCodes[vertexCodeCount++] = BREAK;
}
origin: ajavamind/Processing-Cardboard

static public byte[] append(byte b[], byte value) {
  b = expand(b, b.length + 1);
  b[b.length - 1] = value;
  return b;
}
origin: org.processing/core

/**
 * Add a new entry to the list.
 *
 * @webref floatlist:method
 * @brief Add a new entry to the list
 */
public void append(float value) {
 if (count == data.length) {
  data = PApplet.expand(data);
 }
 data[count++] = value;
}
origin: ajavamind/Processing-Cardboard

/**
 * Add a new entry to the list.
 *
 * @webref intlist:method
 * @brief Add a new entry to the list
 */
public void append(int value) {
 if (count == data.length) {
  data = PApplet.expand(data);
 }
 data[count++] = value;
}
origin: ajavamind/Processing-Cardboard

synchronized void add(Event e) {
  if (count == queue.length) {
    queue = (Event[]) expand(queue);
  }
  queue[count++] = e;
}
origin: ajavamind/Processing-Cardboard

static public int[] append(int b[], int value) {
  b = expand(b, b.length + 1);
  b[b.length - 1] = value;
  return b;
}
origin: org.processing/core

private void parsePathCode(int what) {
 if (vertexCodeCount == vertexCodes.length) {
  vertexCodes = PApplet.expand(vertexCodes);
 }
 vertexCodes[vertexCodeCount++] = what;
}
origin: org.processing/core

static public char[] append(char array[], char value) {
 array = expand(array, array.length + 1);
 array[array.length-1] = value;
 return array;
}
origin: org.processing/core

/**
 * Add a new entry to the list.
 *
 * @webref intlist:method
 * @brief Add a new entry to the list
 */
public void append(int value) {
 if (count == data.length) {
  data = PApplet.expand(data);
 }
 data[count++] = value;
}
origin: org.processing/core

protected void textSentenceBreak(int start, int stop) {
 if (textBreakCount == textBreakStart.length) {
  textBreakStart = PApplet.expand(textBreakStart);
  textBreakStop = PApplet.expand(textBreakStop);
 }
 textBreakStart[textBreakCount] = start;
 textBreakStop[textBreakCount] = stop;
 textBreakCount++;
}
origin: org.processing/core

/**
 * Add a new entry to the list.
 *
 * @webref stringlist:method
 * @brief Add a new entry to the list
 */
public void append(String value) {
 if (count == data.length) {
  data = PApplet.expand(data);
 }
 data[count++] = value;
}
origin: org.processing/core

static public int[] append(int array[], int value) {
 array = expand(array, array.length + 1);
 array[array.length-1] = value;
 return array;
}
origin: org.processing/core

static public float[] append(float array[], float value) {
 array = expand(array, array.length + 1);
 array[array.length-1] = value;
 return array;
}
origin: org.processing/core

protected void create(String what, int much) {
 if (count == keys.length) {
  keys = PApplet.expand(keys);
  values = PApplet.expand(values);
 }
 indices.put(what, Integer.valueOf(count));
 keys[count] = what;
 values[count] = much;
 count++;
}
origin: ajavamind/Processing-Cardboard

protected void create(String what, float much) {
 if (count == keys.length) {
  keys = PApplet.expand(keys);
  values = PApplet.expand(values);
 }
 indices.put(what, new Integer(count));
 keys[count] = what;
 values[count] = much;
 count++;
}
origin: ajavamind/Processing-Cardboard

protected void create(String what, int much) {
 if (count == keys.length) {
  keys = PApplet.expand(keys);
  values = PApplet.expand(values);
 }
 indices.put(what, new Integer(count));
 keys[count] = what;
 values[count] = much;
 count++;
}
origin: ajavamind/Processing-Cardboard

protected void create(String key, String value) {
 if (count == keys.length) {
  keys = PApplet.expand(keys);
  values = PApplet.expand(values);
 }
 indices.put(key, new Integer(count));
 keys[count] = key;
 values[count] = value;
 count++;
}
origin: org.processing/core

protected void create(String what, float much) {
 if (count == keys.length) {
  keys = PApplet.expand(keys);
  values = PApplet.expand(values);
 }
 indices.put(what, Integer.valueOf(count));
 keys[count] = what;
 values[count] = much;
 count++;
}
origin: org.processing/core

static public Object append(Object array, Object value) {
 int length = Array.getLength(array);
 array = expand(array, length + 1);
 Array.set(array, length, value);
 return array;
}
processing.corePAppletexpand

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

  • Finding current android device location
  • setContentView (Activity)
  • setScale (BigDecimal)
  • findViewById (Activity)
  • Menu (java.awt)
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Best plugins for Eclipse
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