gestalt.render
Class MinimalRenderer

java.lang.Object
  extended by gestalt.render.MinimalRenderer
Direct Known Subclasses:
BasicRenderer

public class MinimalRenderer
extends java.lang.Object

minimal version of a renderer with almost no features. it basically opens a window, creates an eventhandler and a drawablefactory and waits for things to happen.


Field Summary
static boolean WORKAROUND_FORCE_QUIT
          workaround that forces the VM to actually quit when 'quit()' is called.
 
Constructor Summary
MinimalRenderer()
           
 
Method Summary
 AbstractBin bin()
           
 AbstractBin bin(int theID)
           
 void create(DisplayCapabilities theDisplayCapabilities)
           
 DisplayCapabilities createDisplayCapabilities()
          override this method and define 'displaycapabilities' in here.
 Display display()
          get reference to the 'display'
 DisplayCapabilities displaycapabilities()
           
 DrawableFactory drawablefactory()
           
 EventHandler event()
           
 void quit()
           
 void setDisplayRef(Display theDisplay)
           
 void setDrawablefactoryRef(DrawableFactory theDrawableFactory)
           
 void setEventRef(EventHandler theEvent)
           
 void updateDisplayCapabilities()
          refresh 'displaycapabilities'
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WORKAROUND_FORCE_QUIT

public static boolean WORKAROUND_FORCE_QUIT
workaround that forces the VM to actually quit when 'quit()' is called.

Constructor Detail

MinimalRenderer

public MinimalRenderer()
Method Detail

create

public void create(DisplayCapabilities theDisplayCapabilities)
Parameters:
theDisplayCapabilities - DisplayCapabilities

quit

public void quit()

bin

public final AbstractBin bin()
Returns:
AbstractBin

bin

public AbstractBin bin(int theID)
Parameters:
theID - int
Returns:
AbstractBin

display

public final Display display()
get reference to the 'display'

Returns:
Display

setDisplayRef

public final void setDisplayRef(Display theDisplay)
Parameters:
theDisplay - Display

updateDisplayCapabilities

public final void updateDisplayCapabilities()
refresh 'displaycapabilities'


displaycapabilities

public final DisplayCapabilities displaycapabilities()
Returns:
DisplayCapabilities

createDisplayCapabilities

public DisplayCapabilities createDisplayCapabilities()
override this method and define 'displaycapabilities' in here.

Returns:
DisplayCapabilities

drawablefactory

public final DrawableFactory drawablefactory()
Returns:
DrawableFactory

setDrawablefactoryRef

public final void setDrawablefactoryRef(DrawableFactory theDrawableFactory)
Parameters:
theDrawableFactory - DrawableFactory

setEventRef

public final void setEventRef(EventHandler theEvent)
Parameters:
theEvent - EventHandler

event

public EventHandler event()
Returns:
EventHandler


processing library gestalt_p5 by Patrick Kochlik + Dennis Paul. (c) 2009