public class Pattern
extends java.lang.Object
Constructor and Description |
---|
Pattern(int width,
int height,
boolean[] vals) |
Pattern(int width,
int height,
int numWhites) |
public Pattern(int width, int height, boolean[] vals)
width
- height
- vals
- public Pattern(int width, int height, int numWhites)
width
- height
- numWhites
- public java.lang.String toString()
toString
in class java.lang.Object
public boolean get(int c, int r)
c
- r
- public void set(int c, int r, boolean val)
c
- r
- val
- public boolean[] getData()
public double percentageWhite()
public int getWidth()
public int getHeight()