net.paulhertz.aifile
Class IgnoCodeLib

java.lang.Object
  extended by net.paulhertz.aifile.IgnoCodeLib

public class IgnoCodeLib
extends Object

IgnoCodeLib library initializer, library information source. IgnoCodeLib is initialized with a reference to the host PApplet, which it makes available to other classes through getMyParent.

+Example
// this basic example for IgnoCodeLib 0.3 shows how to initialize the library
// with a call to new IgnoCodeLib(this) in the setup method. 

import net.paulhertz.aifile.*;

IgnoCodeLib hello;

void setup() {
  size(400,400);
  smooth();
  hello = new IgnoCodeLib(this);
  // hello stores a reference to this PApplet that we can 
  // retrieve with getMyParent(). It's used behind the scenes.
  println("Ignotus says "+ hello.getMyParent().frame.getTitle());
  PFont font = createFont("",36);
  textFont(font);
}

void draw() {
  background(0);
  fill(255);
  text(hello.sayHello(), 32, 200);
}

Field Summary
static String VERSION
           
 
Constructor Summary
IgnoCodeLib(PApplet theParent)
          Constructor, usually called in the setup() method in your sketch to initialize and start the library.
 
Method Summary
 String sayHello()
           
static String version()
          return the version of the library.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION

public static final String VERSION
See Also:
Constant Field Values
Constructor Detail

IgnoCodeLib

public IgnoCodeLib(PApplet theParent)
Constructor, usually called in the setup() method in your sketch to initialize and start the library. However, in its current form, IgnoCodeLib does not require initialization. It does require you to pass a reference to a PApplet to some of its class.

Parameters:
theParent -
+Example
// this basic example for IgnoCodeLib 0.3 shows how to initialize the library
// with a call to new IgnoCodeLib(this) in the setup method. 

import net.paulhertz.aifile.*;

IgnoCodeLib hello;

void setup() {
  size(400,400);
  smooth();
  hello = new IgnoCodeLib(this);
  // hello stores a reference to this PApplet that we can 
  // retrieve with getMyParent(). It's used behind the scenes.
  println("Ignotus says "+ hello.getMyParent().frame.getTitle());
  PFont font = createFont("",36);
  textFont(font);
}

void draw() {
  background(0);
  fill(255);
  text(hello.sayHello(), 32, 200);
}
Method Detail

sayHello

public String sayHello()

version

public static String version()
return the version of the library.

Returns:
String


Processing library IgnoCodeLib by Paul Hertz. (C) 2013