classycle.renderer
Class PlainClassRenderer

java.lang.Object
  extended by classycle.renderer.PlainClassRenderer
All Implemented Interfaces:
AtomicVertexRenderer

public class PlainClassRenderer
extends java.lang.Object
implements AtomicVertexRenderer

Plain text renderer of an AtomicVertex with ClassAttributes.

Author:
Franz-Josef Elmer

Constructor Summary
PlainClassRenderer()
           
 
Method Summary
 java.lang.String render(AtomicVertex vertex, StrongComponent cycle, int layerIndex)
          Renderes the specified vertex.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlainClassRenderer

public PlainClassRenderer()
Method Detail

render

public java.lang.String render(AtomicVertex vertex,
                               StrongComponent cycle,
                               int layerIndex)
Renderes the specified vertex. It is assumed that the vertex attributes are of the type ClassAttributes.

Specified by:
render in interface AtomicVertexRenderer
Parameters:
vertex - Vertex to be rendered.
cycle - Cycle to which vertex belongs. Will be null if it does not belong to a cycle (i.e. a strong component with more than one element).
layerIndex - Index of the layer to which vertex belongs.
Returns:
the rendered vertex.