jto.processing.sketch.mapper
Class SketchMapper

java.lang.Object
  extended by jto.processing.sketch.mapper.SketchMapper

public class SketchMapper
extends Object


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

LOAD_LAYOUT_HANDLER_METHOD_NAME

public static final String LOAD_LAYOUT_HANDLER_METHOD_NAME
See Also:
Constant Field Values

SAVE_LAYOUT_HANDLER_METHOD_NAME

public static final String SAVE_LAYOUT_HANDLER_METHOD_NAME
See Also:
Constant Field Values
Constructor Detail

SketchMapper

public SketchMapper(processing.core.PApplet parent)
Constructor for SurfaceMapperGui objects.

Parameters:
parent - the parent sketch.
Method Detail

addSketch

public void addSketch(Sketch sketch)
Adds the sketch to the list of sketches.

Parameters:
sketch -

keyEvent

public void keyEvent(processing.event.KeyEvent event)
Invoked whenever a KeyEvent happens.

Parameters:
event - the KeyEvent.

draw

public void draw()
The draw method. Invoke this in the parent sketch's draw method which overrides PApplet.draw().


getSketchList

public List<Sketch> getSketchList()

loadLayoutHandler

public void loadLayoutHandler(File file)
callback function for processing's load dialog.

Parameters:
file - the file to load.

mouseEvent

public void mouseEvent(processing.event.MouseEvent event)
Invoked whenever a mouseEvent happens.

Parameters:
event - the mouse event.

removeSketch

public void removeSketch(Sketch sketch)
Removes the given sketch from the list of sketches.

Parameters:
sketch - the sketch to be removed.

saveLayoutHandler

public void saveLayoutHandler(File file)
callback function for processing's save dialog.

Parameters:
file - the file to be saved.

setBackgroundImage

public 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.

setSketchList

public void setSketchList(List<Sketch> sketchList)


Copyright © 2015. All rights reserved.