case class Bounds(x: Double, y: Double, width: Double, height: Double) extends Product with Serializable
This class is used to represent rectangular bounds. In some cases it is full pixel size bounds for rending. In many cases it is used with values between 0.0 and 1.0 to represent a fractional bounds.
- Alphabetic
- By Inheritance
- Bounds
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Bounds(x: Double, y: Double, width: Double, height: Double)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
centerX: Double
Calculates the center of the bounds in X.
-
def
centerY: Double
Calculates the center of the bounds in Y.
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val height: Double
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
join(that: Bounds): Bounds
Returns a bounds object that contains both this and that.
Returns a bounds object that contains both this and that.
- that
Another bounds to join with this one.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
subX(min: Double, max: Double): Bounds
Produces a new Bounds object with range in X determined by the fractional min and max arguments.
Produces a new Bounds object with range in X determined by the fractional min and max arguments. Passing 0.0 and 1.0 would reproduce the original object.
- min
The fractional relative minimum bound.
- max
The fractional relative maximum bound.
-
def
subXY(b: Bounds): Bounds
Produces a new Bounds object with range in X and Y determined by the fractional bounds object.
-
def
subXY(minx: Double, maxx: Double, miny: Double, maxy: Double): Bounds
Produces a new Bounds object with range in X and Y determined by the fractional min and max arguments.
Produces a new Bounds object with range in X and Y determined by the fractional min and max arguments. Passing 0.0, 1.0, 0.0, 1.0 would reproduce the original object.
- minx
The fractional relative minimum bound for X.
- maxx
The fractional relative maximum bound for X.
- miny
The fractional relative minimum bound for Y.
- maxy
The fractional relative maximum bound for Y.
-
def
subXYBorder(minxBorder: Double, maxxBorder: Double, minyBorder: Double, maxyBorder: Double): Bounds
Produces a new Bounds with absolute offsets for the X and Y values.
Produces a new Bounds with absolute offsets for the X and Y values.
- minxBorder
The absolute width of the X offset on the minimum edge.
- maxxBorder
The absolute width of the X offset on the maximum edge.
- minyBorder
The absolute height of the Y offset on the minimum edge.
- maxyBorder
The absolute height of the Y offset on the maximum edge.
-
def
subY(min: Double, max: Double): Bounds
Produces a new Bounds object with range in Y determined by the fractional min and max arguments.
Produces a new Bounds object with range in Y determined by the fractional min and max arguments. Passing 0.0 and 1.0 would reproduce the original object.
- min
The fractional relative minimum bound.
- max
The fractional relative maximum bound.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- val width: Double
- val x: Double
- val y: Double