O1Library Docs
Fall 2026
Docs API

# Line

o1.gui.Line
object Line

The `Line` singleton provides tools for specifying what a line-drawing style — a Stroke — is like.

## Attributes

Graph
Supertypes
  class Object
  trait Matchable
  class Any
Self type
  Line.type

## Members list

### Type members

#### Classlikes

enum Cap(swingCap: SwingCap)

An enumeration of different styles of line caps. Each such style specifies what the end points of lines look like.

An enumeration of different styles of line caps. Each such style specifies what the end points of lines look like.

These styles correspond directly to the line-cap styles illustrated in Oracle’s Java graphics tutorial. See that page for pictures.

## Attributes

Supertypes
  trait Enum
  trait Serializable
  trait Product
  trait Equals
  class Object
  trait Matchable
  class Any
  Show all

enum Join(swingJoin: SwingJoin)

An enumeration of different styles of line caps. Each such style specifies how the connections between lines look like.

An enumeration of different styles of line caps. Each such style specifies how the connections between lines look like.

These styles correspond directly to the join styles illustrated in Oracle’s Java graphics tutorial. See that page for pictures.

## Attributes

Supertypes
  trait Enum
  trait Serializable
  trait Product
  trait Equals
  class Object
  trait Matchable
  class Any
  Show all

object None extends Stroke

A Stroke that is not drawn at all. Used as the outline for shapes that do not have a visible outline.

A Stroke that is not drawn at all. Used as the outline for shapes that do not have a visible outline.

## Attributes

Supertypes
  class Stroke
  class Object
  trait Matchable
  class Any
Self type
  None.type