Package jto.processing.sketch.mapper
Class SketchMapper
- java.lang.Object
- 
- jto.processing.sketch.mapper.SketchMapper
 
- 
 public class SketchMapper extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description SketchMapper(processing.core.PApplet parent)Constructor for SketchMapper objects.SketchMapper(processing.core.PApplet parent, String filename)Constructor for SketchMapper objects.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSketch(Sketch sketch)Adds the sketch to the list of sketches.voiddraw()The draw method.intgetMostRecentSurface()List<Sketch>getSketchList()booleanisMouseWithinAnySurface()voidkeyEvent(processing.event.KeyEvent event)Invoked whenever a KeyEvent happens.voidmouseEvent(processing.event.MouseEvent event)Invoked whenever a mouseEvent happens.voidremoveSketch(Sketch sketch)Removes the given sketch from the list of sketches.voidresetMostRecentSurface()voidsetBackgroundImage(processing.core.PImage backgroundImage)This allows you set a background image.voidsetSketchList(List<Sketch> sketchList)
 
- 
- 
- 
Constructor Detail- 
SketchMapperpublic SketchMapper(processing.core.PApplet parent) Constructor for SketchMapper objects.- Parameters:
- parent- the parent sketch.
 
 - 
SketchMapperpublic SketchMapper(processing.core.PApplet parent, String filename)Constructor for SketchMapper objects.- Parameters:
- parent- the parent sketch.
- filename- the filename of the layout to load.
 
 
- 
 - 
Method Detail- 
addSketchpublic void addSketch(Sketch sketch) Adds the sketch to the list of sketches.- Parameters:
- sketch- the sketch to add.
 
 - 
drawpublic void draw() The draw method. Invoke this in the parent sketch's draw method which overridesPApplet.draw().
 - 
getMostRecentSurfacepublic int getMostRecentSurface() 
 - 
isMouseWithinAnySurfacepublic boolean isMouseWithinAnySurface() 
 - 
keyEventpublic void keyEvent(processing.event.KeyEvent event) Invoked whenever a KeyEvent happens.- Parameters:
- event- the KeyEvent.
 
 - 
mouseEventpublic void mouseEvent(processing.event.MouseEvent event) Invoked whenever a mouseEvent happens.- Parameters:
- event- the mouse event.
 
 - 
removeSketchpublic void removeSketch(Sketch sketch) Removes the given sketch from the list of sketches.- Parameters:
- sketch- the sketch to be removed.
 
 - 
resetMostRecentSurfacepublic void resetMostRecentSurface() 
 - 
setBackgroundImagepublic void setBackgroundImage(processing.core.PImage backgroundImage) This allows you set a background image. It will be displayed behind any rendered surfaces.- Parameters:
- backgroundImage- the background image.
 
 
- 
 
-