O1Library Docs
Fall 2022
O1
Library
Docs
Introduction
Using o1
.play
Credits
A
P
I
o1
o1
.grid
Compass
Dir
Compass
Dir
Grid
Grid
Pos
o1
.gui
Animation
Animation
At
End
Color
Color
Default
Frame
Settings
Dialog
Centered
Position
Relative
To
Relative
To
Escapable
Pic
Pic
Simple
Frame
Terminates
On
Close
View
Has
Pause
Toggle
Refresh
Policy
Always
Unless
Identical
Unless
Same
Reference
Refresh
Policy
immutable
View
Component
Traced
View
Frame
Traced
mutable
Has
Replaceable
Model
View
Component
Traced
View
Frame
Traced
swingops
Buffered
Image
Dimension
Point
Rectangle
o1
.gui
.colors
o1
.gui
.event
ops
o1
.gui
.layout
Easy
Layout
Easy
Panel
o1
.gui
.viewimpl
View
Component
Impl
View
Frame
Impl
default
immutable
Controls
Trace
Generating
View
mutable
Controls
Trace
Generating
View
tracing
Generates
Trace
Trace
Aborted
Trace
Event
Init
Input
Tick
Tick
Trace
Event
o1
.sound
O_o
o1
.sound
.midi
Accidental
Chord
Chord
Instrument
Instrument
Bass
Brass
Chromatic
Percussion
Ensemble
Ethnic
Guitar
Organ
Percussion
Percussion
Channel
Piano
Pipe
Reed
Sound
Effects
Strings
Synth
Effects
Synth
Lead
Synth
Pad
Midi
Unavailable
Exception
Music
Music
Music
Elem
Note
Octave
Shift
Pause
Pitch
Pitch
Sequencer
Synthesizer
Voice
o1
.sound
.sampled
Sound
Sound
o1
.util
nice
collection
map
number
option
pairs
path
seq
o1
.world
Bounds
Bounds
Direction
Direction
Pos
Pos
Velocity
Velocity
o1
.world
.objects
Anchor
Anchor
Absolute
Bottom
Center
Bottom
Left
Bottom
Right
Center
Center
Left
Center
Right
Top
Center
Top
Left
Top
Right
Has
Anchor
Has
Container
Has
Edges
Has
Pos
Has
Size
Has
Velocity
mutable
Contained
Object
Moving
Object
Moving
Object
In
Container
Mutable
Pos
O1Library Docs
/
API
/
o1.gui
/
swingops
swingops
object
swingops
Life-quality improvements for working with the Swing GUI library in Scala.
Graph
Supertypes
Self type
class
Object
trait
Matchable
class
Any
swingops
.type
Keywords
Select All
Deselect All
no keywords
final
lazy
Type members
Givens
Extensions
Type members
Classlikes
object
BufferedImage
object
Dimension
object
Point
object
Rectangle
Types
type
BufferedImage
=
BufferedImage
type
Dimension
=
Dimension
type
Point
=
Point
type
Rectangle
=
Rectangle
Givens
Givens
given
given_CanEqual_Component_Component
:
CanEqual
[
Component
,
Component
]
given
given_CanEqual_Dimension_Dimension
:
CanEqual
[
Dimension
,
Dimension
]
given
given_CanEqual_Value_Value
:
CanEqual
[
Value
,
Value
]
Extensions
Extensions
extension
(self:
Dimension
)
def
higher
(
amount:
Int
):
Dimension
def
wider
(
amount:
Int
):
Dimension
def
withHeight
(
height:
Int
):
Dimension
def
withWidth
(
width:
Int
):
Dimension
extension
(self:
Label
)
def
iconOption
:
Option
[
Icon
]
def
iconOption_=
(
newIcon:
Option
[
Icon
]):
Unit
extension
(self:
BufferedImage
)
def
dimensions
:
Dimension
def
height
:
Int
def
width
:
Int
extension
(self:
Window
)
def
setTitleBarImage
(
newImage:
Option
[
Image
]):
Unit
def
setTitleBarPic
(
newPic:
Option
[
Pic
]):
Unit