chrriis.grammar.rrdiagram
Class RRText

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

public class RRText
extends RRElement

Author:
Christopher Deckers

Nested Class Summary
static class RRText.Type
           
 
Nested classes/interfaces inherited from class chrriis.grammar.rrdiagram.RRElement
RRElement.LayoutInfo
 
Constructor Summary
RRText(RRText.Type type, String text, String link)
           
 
Method Summary
protected  void computeLayoutInfo(RRDiagramToSVG rrDiagramToSVG)
           
 String getLink()
           
 String getText()
           
 RRText.Type getType()
           
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

RRText

public RRText(RRText.Type type,
              String text,
              String link)
Method Detail

getType

public RRText.Type getType()

getText

public String getText()

getLink

public String getLink()

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