|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjto.processing.sketch.mapper.SketchMapper
public class SketchMapper
Field Summary | |
---|---|
static String |
LOAD_LAYOUT_HANDLER_METHOD_NAME
|
static String |
SAVE_LAYOUT_HANDLER_METHOD_NAME
|
Constructor Summary | |
---|---|
SketchMapper(processing.core.PApplet parent)
Constructor for SurfaceMapperGui objects. |
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String LOAD_LAYOUT_HANDLER_METHOD_NAME
public static final String SAVE_LAYOUT_HANDLER_METHOD_NAME
Constructor Detail |
---|
public SketchMapper(processing.core.PApplet parent)
parent
- the parent sketch.Method Detail |
---|
public void addSketch(Sketch sketch)
sketch
- public void keyEvent(processing.event.KeyEvent event)
event
- the KeyEvent.public void draw()
PApplet.draw()
.
public List<Sketch> getSketchList()
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.public void setSketchList(List<Sketch> sketchList)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |