Class PlainClassRenderer

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

public class PlainClassRenderer extends Object implements AtomicVertexRenderer
Plain text renderer of an AtomicVertex with ClassAttributes.
Author:
Franz-Josef Elmer
  • Constructor Details

    • PlainClassRenderer

      public PlainClassRenderer()
  • Method Details

    • render

      public 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.