chrriis.grammar.rrdiagram
Class RRLoop

java.lang.Object
  extended by chrriis.grammar.rrdiagram.RRElement
      extended by chrriis.grammar.rrdiagram.RRLoop

public class RRLoop
extends RRElement

Author:
Christopher Deckers

Nested Class Summary
 
Nested classes/interfaces inherited from class chrriis.grammar.rrdiagram.RRElement
RRElement.LayoutInfo
 
Constructor Summary
RRLoop(RRElement rrElement, RRElement loopElement)
           
RRLoop(RRElement rrElement, RRElement loopElement, int minRepetitionCount, Integer maxRepetitionCount)
           
 
Method Summary
protected  void computeLayoutInfo(RRDiagramToSVG rrDiagramToSVG)
           
protected  void toSVG(RRDiagramToSVG rrDiagramToSVG, int xOffset, int yOffset, RRDiagram.SvgContent svgContent)
           
 
Methods inherited from class chrriis.grammar.rrdiagram.RRElement
getLayoutInfo, setLayoutInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RRLoop

public RRLoop(RRElement rrElement,
              RRElement loopElement)
Parameters:
loopElement - can be null.

RRLoop

public RRLoop(RRElement rrElement,
              RRElement loopElement,
              int minRepetitionCount,
              Integer maxRepetitionCount)
Method Detail

computeLayoutInfo

protected void computeLayoutInfo(RRDiagramToSVG rrDiagramToSVG)
Specified by:
computeLayoutInfo in class RRElement

toSVG

protected void toSVG(RRDiagramToSVG rrDiagramToSVG,
                     int xOffset,
                     int yOffset,
                     RRDiagram.SvgContent svgContent)
Specified by:
toSVG in class RRElement