LayoutConstraints

com.phasmidsoftware.xmldoc.idml.LayoutConstraints
See theLayoutConstraints companion class

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def asString(lc: LayoutConstraints): String

The inverse of fromString: renders a LayoutConstraints back into its attribute-value form.

The inverse of fromString: renders a LayoutConstraints back into its attribute-value form.

Value parameters

lc

the LayoutConstraints to render.

Attributes

Returns

the attribute value text, e.g. "FlexibleDimension FixedDimension FlexibleDimension".

def fromString(w: String): Try[LayoutConstraints]

Parses a HorizontalLayoutConstraints/VerticalLayoutConstraints attribute value, e.g. "FlexibleDimension FixedDimension FlexibleDimension".

Parses a HorizontalLayoutConstraints/VerticalLayoutConstraints attribute value, e.g. "FlexibleDimension FixedDimension FlexibleDimension".

Value parameters

w

the attribute value text.

Attributes

Returns

a Try[LayoutConstraints], a Failure if w isn't exactly three space-separated DimensionConstraint names.