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

com.github.mdr.ascii.layout.coordAssign.VertexRenderingStrategy.scala Maven / Gradle / Ivy

The newest version!
package com.github.mdr.ascii.layout.coordAssign

import com.github.mdr.ascii.common.Dimension

/**
 * Control how a vertex box gets sized and populated in a graph drawing.
 */
trait VertexRenderingStrategy[-V] {

  def getPreferredSize(v: V): Dimension

  /**
   * @return rows of text that should fit within the given allocatedSize
   */
  def getText(v: V, allocatedSize: Dimension): List[String]

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy