RelativeTo

case object RelativeTo

A companion object with factory methods.

Companion:
class
trait Singleton
trait Product
trait Mirror
trait Product
trait Equals
class Object
trait Matchable
class Any
Inherited

Type members

Value members

Concrete methods

def apply(component: Component): RelativeTo

Constructs a RelativeTo with the given Swing component as its locator.

Constructs a RelativeTo with the given Swing component as its locator.

def apply(frame: Frame): Position

Constructs a RelativeTo with the first component contained by the given Swing Frame as its locator. If that fails (because there is no content in the frame), returns Centered instead.

Constructs a RelativeTo with the first component contained by the given Swing Frame as its locator. If that fails (because there is no content in the frame), returns Centered instead.