O1Library Docs
Fall 2023
Docs API

# RelativeTo

o1.gui.Dialog$.RelativeTo$
See the RelativeTo companion class
case object RelativeTo

A companion object with factory methods.

## Attributes

Companion
  class
Graph
Supertypes
  trait Singleton
  trait Product
  trait Mirror
  trait Serializable
  trait Product
  trait Equals
  class Object
  trait Matchable
  class Any
  Show all
Self type
  RelativeTo.type

## Members list

### Type members

#### Inherited types

type MirroredElemLabels = EmptyTuple

The names of the product elements

The names of the product elements

## Attributes

Inherited from:
  Singleton

type MirroredElemTypes = EmptyTuple

## Attributes

Inherited from:
  Singleton

type MirroredLabel <: String

The name of the type

The name of the type

## Attributes

Inherited from:
  Mirror

type MirroredMonoType = Singleton.this.type

The mirrored *-type

The mirrored *-type

## Attributes

Inherited from:
  Singleton

type MirroredType = Singleton.this.type

## Attributes

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.

## Attributes

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.

## Attributes

#### Inherited methods

def fromProduct(p: Product): MirroredMonoType

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`.

## Attributes

Inherited from:
  Singleton

def productElementNames: Iterator[String]

## Attributes

Inherited from:
  Product

def productIterator: Iterator[Any]

## Attributes

Inherited from:
  Product