org.jrabbit.standard.profiler.renderer
Class TLProfilerRenderer

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

public class TLProfilerRenderer
extends ProfilerRenderer

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

Author:
Chris Molini

Field Summary
 
Fields inherited from class org.jrabbit.standard.profiler.renderer.ProfilerRenderer
padding
 
Constructor Summary
TLProfilerRenderer(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 top-left 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

TLProfilerRenderer

public TLProfilerRenderer(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 top-left corner of the screen. Rendering heads towards the bottom-right 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.