Package classycle.renderer
Class XMLAtomicVertexRenderer
- java.lang.Object
-
- classycle.renderer.XMLAtomicVertexRenderer
-
- All Implemented Interfaces:
AtomicVertexRenderer
- Direct Known Subclasses:
XMLClassRenderer
,XMLPackageRenderer
public abstract class XMLAtomicVertexRenderer extends java.lang.Object implements AtomicVertexRenderer
XML renderer of anAtomicVertex
withNameAttributes
.- Author:
- Franz-Josef Elmer
-
-
Constructor Summary
Constructors Constructor Description XMLAtomicVertexRenderer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.lang.String
getElement()
protected abstract java.lang.String
getRefElement()
protected abstract AtomicVertexRenderer
getVertexRenderer()
java.lang.String
render(AtomicVertex vertex, StrongComponent cycle, int layerIndex)
Renderes the specified vertex.
-
-
-
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 typeClassAttributes
.- Specified by:
render
in interfaceAtomicVertexRenderer
- Parameters:
vertex
- Vertex to be rendered.cycle
- Cycle to whichvertex
belongs. Will benull
if it does not belong to a cycle (i.e. a strong component with more than one element).layerIndex
- Index of the layer to whichvertex
belongs.- Returns:
- the rendered vertex.
-
getVertexRenderer
protected abstract AtomicVertexRenderer getVertexRenderer()
-
getElement
protected abstract java.lang.String getElement()
-
getRefElement
protected abstract java.lang.String getRefElement()
-
-