Bounds

smile.modeling.Bounds
See theBounds companion object
case class Bounds(upperLeftCorner: Pos, lowerRightCorner: Pos)

Represents the boundaries of a rectangular area, defined by its upper left and lower right corners.

Value parameters

lowerRightCorner

The lower right corner position.

upperLeftCorner

The upper left corner position.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
object NullBounds

Members list

Value members

Concrete methods

inline def horizontalPositionFor(alignment: HorizontalAlignment, boundaryToBeAligned: Bounds): Double

Determines the horizontal position for alignment within these bounds.

Determines the horizontal position for alignment within these bounds.

Value parameters

alignment

The horizontal alignment.

boundaryToBeAligned

The bounds to be aligned.

Attributes

Returns

The horizontal position for the specified alignment.

inline def moveBy(xOffset: Double, yOffset: Double): Bounds

Moves the bounds by the specified offsets.

Moves the bounds by the specified offsets.

Value parameters

xOffset

The horizontal offset.

yOffset

The vertical offset.

Attributes

Returns

A new Bounds instance moved by the specified offsets.

def verticalPositionFor(alignment: VerticalAlignment, boundaryToBeAligned: Bounds): Double

Determines the vertical position for alignment within these bounds.

Determines the vertical position for alignment within these bounds.

Value parameters

alignment

The vertical alignment.

boundaryToBeAligned

The bounds to be aligned.

Attributes

Returns

The vertical position for the specified alignment.

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

lazy val center: Pos

The center position of the bounds.

The center position of the bounds.

Attributes

lazy val height: Len

The height of the bounds.

The height of the bounds.

Attributes

lazy val lowerLeftCorner: Pos

The lower left corner of the bounds.

The lower left corner of the bounds.

Attributes

lazy val upperRightCorner: Pos

The upper right corner of the bounds.

The upper right corner of the bounds.

Attributes

lazy val width: Len

The width of the bounds.

The width of the bounds.

Attributes