org.jrabbit.standard.profiler.renderer
Class TRProfilerRenderer

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

public class TRProfilerRenderer
extends ProfilerRenderer

TRProfilerRenderer (short for "Top-Right" ProfilerRenderer) renders the list of ProfilerEntities from the top-right 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 left.

Author:
Chris Molini

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

TRProfilerRenderer

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