abstract class SVGRenderer[Builder, T <: FragT, FragT, M] extends AnyRef

a renderer for svg like models

NOTE: this is built around the idea that the document model is mutable (so we can append nodes directly) for efficiency. This is in line with the builder in scalatags for JsDom and vdom (see appendChild).

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SVGRenderer
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new SVGRenderer(bundle: Bundle[Builder, T, FragT], options: SVGRendererOptions)(implicit appender: (T) => Frag[Builder, FragT], matrixLike: SVGMatrixLike[M])

Abstract Value Members

  1. abstract def appendChild(elem: T)(child: T): Unit
  2. abstract def applyTransformation(transformation: M): Unit
    Attributes
    protected
  3. abstract def deleteElement(element: GraphElement[T]): IO[Unit]
  4. abstract def draggable(elem: T): Option[ElementRef]
  5. abstract def getPageMatrix: M
    Attributes
    protected
  6. abstract def getScreenCTM: M
    Attributes
    protected
  7. abstract def graphSVG: GraphSVG[T]
  8. abstract def parseSvg(svgXml: String): T
  9. abstract def selectElement(value: GraphElement[T]): IO[Unit]
  10. abstract def selectable(elem: T): Option[ElementRef]
  11. abstract def setDimensions(width: Double, height: Double): Unit
  12. abstract def setPosition(elem: T)(x: Double, y: Double): Unit
  13. abstract def unselectElement(value: GraphElement[T]): IO[Unit]
  14. abstract def x(elem: T): Double
  15. abstract def y(elem: T): Double

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val bundle: Bundle[Builder, T, FragT]
    Attributes
    protected
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  7. val defaultFontFamily: String
  8. val defaultFontSize: String
  9. val defaultTextColor: String
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. def getPageOffset: PagePoint
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def nodeStyle(shape: NodeShape): Seq[String]
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. val options: SVGRendererOptions
    Attributes
    protected
  21. def pageCoordinates(x: Double, y: Double): PagePoint
  22. def renderEdge[E, N](edge: Edge[E], graph: Graph[E, N], layout: GraphLayoutLike, styleSheet: StyleSheetLike)(implicit edgeLabel: Labeled[E, String], edgeStyleRef: StyleRef[Edge[E]]): IO[Option[SVGEdgeElement[T]]]
  23. def renderGraph[E, N](graph: Graph[E, N], layout: GraphLayoutLike, styleSheet: StyleSheetLike)(implicit nodeLabel: Labeled[N, String], nodeStyleRef: StyleRef[Node[N]], edgeLabel: Labeled[E, String], edgeStyleRef: StyleRef[Edge[E]]): IO[SVGRenderer[Builder, T, FragT, M]]
  24. def renderLabel(elementId: String, elementType: String, labelStyle: LabelStyle, labelValue: String, width: Double, height: Double, offset: Option[PointSpec] = None): T
  25. def renderNode[E, N](node: Node[N], layout: GraphLayoutLike, styleSheet: StyleSheetLike)(implicit nodeLabel: Labeled[N, String], nodeStyleRef: StyleRef[Node[N]]): IO[SVGNodeElement[T]]
  26. def renderOriginMarker: Option[T]
    Attributes
    protected
  27. def renderPanZoomRect: Option[T]
    Attributes
    protected
  28. def renderRootSvg(rootAttributes: (all)#Modifier*): GraphSVG[T]
    Attributes
    protected
  29. def renderSelectRect(elementId: String, elementType: String, x: Double, y: Double, width: Double, height: Double): Option[T]
    Attributes
    protected
  30. def resetMatrix: IO[Unit]
  31. def screenCoordinates(x: Double, y: Double): PagePoint
  32. def setViewPortOffset(tx: Double, ty: Double): SVGRenderer[Builder, T, FragT, M]
  33. def shapeTag(shape: NodeShape, styleSheet: StyleSheetLike, widthValue: Double, heightValue: Double): TypedTag[Builder, T, FragT]
  34. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  35. def toString(): String
    Definition Classes
    AnyRef → Any
  36. def translateAndScaleView(tx: Double, ty: Double, zoom: Double = 1.0): SVGRenderer[Builder, T, FragT, M]
  37. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  39. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped