public class SketchMapper extends Object
Constructor and Description |
---|
SketchMapper(processing.core.PApplet parent)
Constructor for SurfaceMapper objects.
|
SketchMapper(processing.core.PApplet parent,
String filename)
Constructor for SurfaceMapper objects.
|
Modifier and Type | Method and Description |
---|---|
void |
addSketch(Sketch sketch)
Adds the sketch to the list of sketches.
|
void |
draw()
The draw method.
|
List<Sketch> |
getSketchList() |
void |
keyEvent(processing.event.KeyEvent event)
Invoked whenever a KeyEvent happens.
|
void |
loadLayoutHandler(File file)
callback function for processing's load dialog.
|
void |
mouseEvent(processing.event.MouseEvent event)
Invoked whenever a mouseEvent happens.
|
void |
removeSketch(Sketch sketch)
Removes the given sketch from the list of sketches.
|
void |
saveLayoutHandler(File file)
callback function for processing's save dialog.
|
void |
setBackgroundImage(processing.core.PImage backgroundImage)
This allows you set a background image.
|
void |
setSketchList(List<Sketch> sketchList) |
public SketchMapper(processing.core.PApplet parent)
parent
- the parent sketch.public SketchMapper(processing.core.PApplet parent, String filename)
parent
- the parent sketch.filename
- the filename of the layout to load.public void addSketch(Sketch sketch)
sketch
- the sketch to add.public void draw()
PApplet.draw()
.public void keyEvent(processing.event.KeyEvent event)
event
- the KeyEvent.public void loadLayoutHandler(File file)
file
- the file to load.public void mouseEvent(processing.event.MouseEvent event)
event
- the mouse event.public void removeSketch(Sketch sketch)
sketch
- the sketch to be removed.public void saveLayoutHandler(File file)
file
- the file to be saved.public void setBackgroundImage(processing.core.PImage backgroundImage)
backgroundImage
- the background image.Copyright © 2017. All rights reserved.