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

Type members

Inherited types

The names of the product elements

The names of the product elements

Inherited from:
Singleton

The name of the type

The name of the type

Inherited from:
Mirror
type MirroredMonoType = Singleton.this.type

The mirrored *-type

The mirrored *-type

Inherited from:
Singleton
type MirroredType = Singleton.this.type
Inherited from:
Singleton

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.

Inherited methods

Create a new instance of type T with elements taken from product p.

Create a new instance of type T with elements taken from product p.

Inherited from:
Singleton
Inherited from:
Product