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

How to use
text
method
in
processing.core.PApplet

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

origin: mirador/mirador

public void text(char[] chars, int start, int stop,
  float x, float y, float z) {
 intf.app.text(chars, start, stop, x, y, z);
}
origin: ruby-processing/JRubyArt

@Override
void displayText() {
  String lFormat = "%d";
  if (displayLabel) {
    applet.fill(labelColor);
    applet.textSize(labelSize);
    applet.textAlign(PConstants.BOTTOM);
    applet.text(Integer.toString((int) pValue), pX + pW / 2, pY + pH);
  }
  if (displayValue) {
    applet.textSize(numberSize);
    applet.fill(numbersColor);
    applet.textAlign(PConstants.LEFT);
    applet.text(String.format(lFormat, (int) vMin), pX, pY );
    applet.textAlign(PConstants.RIGHT);
    applet.text(String.format(lFormat, (int) vMax), pX + pW, pY );
  }
}

origin: ruby-processing/JRubyArt

@Override
void displayText() {
  String lFormat = "%d";
  if (displayLabel) {
    applet.fill(labelColor);
    applet.textSize(labelSize);
    applet.textAlign(PConstants.CENTER);
    applet.text(Integer.toString((int) pValue), pX + pW / 2, pY + pH / 2 + labelSize / 2 - 2);
  }
  if (displayValue) {
    applet.textSize(numberSize);
    applet.fill(numbersColor);
    applet.textAlign(PConstants.LEFT);
    applet.text(String.format(lFormat, (int) vMin), pX, pY - numberSize / 2);
    applet.textAlign(PConstants.RIGHT);
    applet.text(String.format(lFormat, (int) vMax), pX + pW, pY - numberSize / 2);
  }
}

origin: mirador/mirador

public void text(int num, float x, float y, float z) {
 intf.app.text(num, x, y, z);
}
origin: ruby-processing/JRubyArt

applet.textAlign(PConstants.CENTER);
if (horizontal) {
  applet.text(Integer.toString((int) pValue), pX + pW / 2, pY + pH / 2 + labelSize / 2 - 2);
} else {
  applet.pushMatrix();
  applet.translate(pX + pH / 2, pY + pW / 2);
  applet.rotate(HALF_PI);
  applet.text(Integer.toString((int) pValue), 0, 0 + labelSize / 2 - 2);
  applet.popMatrix();
if (horizontal) {
  applet.textAlign(PConstants.LEFT);
  applet.text(String.format(lFormat, (int) vMin), pX, pY - numberSize / 2);
  applet.textAlign(PConstants.RIGHT);
  applet.text(String.format(lFormat, (int) vMax), pX + pW, pY - numberSize / 2);
} else {
  applet.pushMatrix();
  applet.translate(pX - numberSize / 2, pY);
  applet.rotate(HALF_PI);
  applet.text(String.format(lFormat, (int) vMax), 0, 0);
  applet.popMatrix();
  applet.pushMatrix();
  applet.translate(pX - numberSize / 2, pY + pW);
  applet.rotate(HALF_PI);
  applet.text(String.format(lFormat, (int) vMin), 0, 0);
  applet.popMatrix();
origin: mirador/mirador

public void text(char[] chars, int start, int stop, float x, float y) {
 intf.app.text(chars, start, stop, x, y);
}
origin: ruby-processing/JRubyArt

@Override
void displayText() {
  String lFormat = "%d";
  if (displayLabel) {
    applet.fill(labelColor);
    applet.textSize(labelSize);
    applet.textAlign(PConstants.CENTER);
    applet.pushMatrix();
    applet.translate(pX + pH / 2, pY + pW / 2);
    applet.rotate(HALF_PI);
    applet.text(Integer.toString((int) pValue), 0, 0 + labelSize / 2 - 2);
    applet.popMatrix();
  }
  if (displayValue) {
    applet.textSize(numberSize);
    applet.fill(numbersColor);
    applet.pushMatrix();
    applet.textAlign(PConstants.RIGHT);
    applet.translate(pX - numberSize / 2, pY);
    applet.rotate(HALF_PI);
    applet.text(String.format(lFormat, (int) vMax), 0, 0);
    applet.popMatrix();
    applet.pushMatrix();
    applet.textAlign(PConstants.LEFT);
    applet.translate(pX - numberSize / 2, pY + pW);
    applet.rotate(HALF_PI);
    applet.text(String.format(lFormat, (int) vMin), 0, 0);
    applet.popMatrix();
  }
}
origin: mirador/mirador

public void text(float num, float x, float y) {
 intf.app.text(num, x, y);
}
origin: ruby-processing/JRubyArt

applet.translate(pX + pH / 2, pY + pW / 2);
applet.rotate(HALF_PI);
applet.text(Integer.toString((int) pValue), 0, 0 + labelSize / 2 - 2);
applet.popMatrix();
applet.translate(pX - numberSize / 2, pY);
applet.rotate(HALF_PI);
applet.text(String.format(lFormat, (int) vMax), 0, 0);
applet.popMatrix();
applet.pushMatrix();
applet.translate(pX - numberSize / 2, pY + pW);
applet.rotate(HALF_PI);
applet.text(String.format(lFormat, (int) vMin), 0, 0);
applet.popMatrix();
origin: mirador/mirador

public void text(String str, float x, float y) {
 intf.app.text(str, x, y);
}

origin: mirador/mirador

public void text(String str, float x1, float y1, float x2, float y2) {
 intf.app.text(str, x1, y1, x2, y2);
}
origin: mirador/mirador

public void text(char c, float x, float y, float z) {
 intf.app.text(c, x, y, z);
}
origin: mirador/mirador

public void text(String str, float x, float y, float z) {
 intf.app.text(str, x, y, z);
}
origin: mirador/mirador

public void text(char c, float x, float y) {
 intf.app.text(c, x, y);
}
origin: mirador/mirador

public void text(int num, float x, float y) {
 intf.app.text(num, x, y);
}
origin: mirador/mirador

public void text(float num, float x, float y, float z) {
 intf.app.text(num, x, y, z);
}
processing.corePApplettext

Javadoc

Draw a single character on screen. Extremely slow when used with textMode(SCREEN) and Java 2D, because loadPixels has to be called first and updatePixels last.

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

  • Running tasks concurrently on multiple threads
  • getSharedPreferences (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • compareTo (BigDecimal)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • BoxLayout (javax.swing)
  • Join (org.hibernate.mapping)
  • CodeWhisperer 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