org.jrabbit.standard.profiler.renderer
Class BRProfilerRenderer

java.lang.Object
  extended by org.jrabbit.standard.profiler.renderer.ProfilerRenderer
      extended by org.jrabbit.standard.profiler.renderer.BRProfilerRenderer

public class BRProfilerRenderer
extends ProfilerRenderer

BRProfilerRenderer (short for "Bottom-Right" ProfilerRenderer) renders the list of ProfilerEntities from the bottom-right corner of the screen, going up. Every time the rendering hits the top of the allowed area, the next ProfilerEntity is rendered at the bottom of the area and to the left.

Author:
Chris Molini

Field Summary
 
Fields inherited from class org.jrabbit.standard.profiler.renderer.ProfilerRenderer
padding
 
Constructor Summary
BRProfilerRenderer(float padding)
          Creates a TLProfilerRenderer with the indicated padding.
 
Method Summary
 void render(java.lang.Iterable<ProfilerEntity> entities, float width, float height, Color color)
          Renders the indicated list of ProfilerEntities from the bottom-right corner of the screen.
 
Methods inherited from class org.jrabbit.standard.profiler.renderer.ProfilerRenderer
padding, setPadding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BRProfilerRenderer

public BRProfilerRenderer(float padding)
Creates a TLProfilerRenderer with the indicated padding.

Parameters:
padding - The distance to put between each ProfilerEntity.
Method Detail

render

public void render(java.lang.Iterable<ProfilerEntity> entities,
                   float width,
                   float height,
                   Color color)
Renders the indicated list of ProfilerEntities from the bottom-right corner of the screen. Rendering heads towards the top-left of the screen.

Specified by:
render in class ProfilerRenderer
Parameters:
entities - The ordered list of ProfilerEntities to render.
width - The width of the area to keep rendering within.
height - The height of the area to keep rendering within.
color - The Color to render each ProfilerEntity at.