All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.mdr.ascii.diagram.Diagram.scala Maven / Gradle / Ivy

package com.github.mdr.ascii.diagram

import com.github.mdr.ascii.common._
import com.github.mdr.ascii.diagram.parser._

object Diagram {

  @throws(classOf[DiagramParserException])
  def apply(s: String): Diagram = new DiagramParser(s).getDiagram

}

trait Diagram extends Container {

  /**
   * @return all boxes in diagram, whether top level or nested
   */
  def allBoxes: List[Box]

  def allEdges: List[Edge]

  def parent: Option[Container] = None

  def boxAt(point: Point): Option[Box]

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy