|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjto.processing.sketch.mapper.AbstractSketch
public abstract class AbstractSketch
This is an abstract implementation of
Sketch
.
This contains protected fields for the graphics and
parent PApplet as well some basic implementations of other methods.
Field Summary | |
---|---|
protected processing.core.PGraphics |
graphics
the PGraphics instance that this sketch will use to draw objects. |
protected processing.core.PApplet |
parent
The parent processing sketch of this sketch. |
Constructor Summary | |
---|---|
AbstractSketch(processing.core.PApplet parent,
int width,
int height)
Constructor this creates a PGraphics object with the size provided in the parameters and the renderer specified by PConstants.OPENGL . |
Method Summary | |
---|---|
boolean |
equals(Object o)
|
String |
getName()
Returns the name of the sketch. |
processing.core.PGraphics |
getPGraphics()
Return the PGraphics associated with this sketch. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface jto.processing.sketch.mapper.Sketch |
---|
draw, keyEvent, mouseEvent, setup |
Field Detail |
---|
protected final processing.core.PGraphics graphics
protected final processing.core.PApplet parent
Constructor Detail |
---|
public AbstractSketch(processing.core.PApplet parent, int width, int height)
PConstants.OPENGL
.
parent
- the parent PApplet
.width
- the width of the sketch in pixels.height
- the height of the sketch in pixels.Method Detail |
---|
public boolean equals(Object o)
equals
in class Object
public String getName()
Sketch
getName
in interface Sketch
public processing.core.PGraphics getPGraphics()
Sketch
getPGraphics
in interface Sketch
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |