BoxPosition

semagrams.layout.BoxPosition

An implementation of BoxPosition is a description of how to place a box in a window.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Concise view

Value members

Abstract methods

def computePosition(windowDims: Complex, boxDims: Complex): Complex

Compute the position of the top-left corner of a box according to some formula. This posittion is relative to the coordinate scale where 0+0i is the top left corner of the window, and windowDims is the bottom right.

Compute the position of the top-left corner of a box according to some formula. This posittion is relative to the coordinate scale where 0+0i is the top left corner of the window, and windowDims is the bottom right.

Attributes

boxDims

the dimensions of the box

windowDims

the dimensions of the window that the box is placed in