Bounds

smile.modeling.Bounds
See theBounds companion class
object Bounds

Provides factory methods for creating Bounds objects, which represent rectangular areas in a coordinate space.

Attributes

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

Members list

Type members

Inherited 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 apply(upperLeftX: Double, upperLeftY: Double, lowerRightX: Double, lowerRightY: Double): Bounds

Creates a Bounds instance ensuring that the coordinates are sorted so the upper left is truly at the top-left and the lower right is at the bottom-right.

Creates a Bounds instance ensuring that the coordinates are sorted so the upper left is truly at the top-left and the lower right is at the bottom-right.

Value parameters

lowerRightX

X-coordinate of the lower right corner in pixels.

lowerRightY

Y-coordinate of the lower right corner in pixels.

upperLeftX

X-coordinate of the upper left corner in pixels.

upperLeftY

Y-coordinate of the upper left corner in pixels.

Attributes

Returns

A new Bounds instance.

def apply(center: Pos, width: Int, height: Int): Bounds
def apply(center: Pos, width: Double, height: Double): Bounds

Creates a Bounds instance centered around a given point with specified width and height.

Creates a Bounds instance centered around a given point with specified width and height.

Value parameters

center

The center position.

height

The height in pixels.

width

The width in pixels.

Attributes

Returns

A new Bounds instance.