package driver
- Alphabetic
- Public
- All
Type Members
-
trait
AwtEventDriver
extends ScreenDriver with AwtScreenDriver
Provides key and mouse listeners publishing key and mouse events to the event-package publisher.
Provides key and mouse listeners publishing key and mouse events to the event-package publisher.
- Since
1.2.0
- Note
As of version 1.3.0, this trait can only be mixed into a class that is a subtype of
Screen
, which is required now and was the intention from the beginning.
-
trait
AwtScreenDriver
extends ScreenDriver
Screen-driver implementation trait based on AWT (and some Swing).
Screen-driver implementation trait based on AWT (and some Swing).
Provides hooks for key and mouse listeners that can be overridden by implementations. By default, no such listeners are enabled.
Also provides a file menu with save item as bonus functionality.
-
abstract
class
ScreenDriver
extends AnyRef
Driver methods for screen graphics.
Driver methods for screen graphics.
The drawing area will have the specified width and height and will be positioned at the given location (if possible).
It will have a coordinate system with the origin
(0, 0)
in the lower-left corner and the upper-right corner at(width-1, height-1)
. All operations ensure clipping to that area, so that it is safe to use coordinates outside of it.Implementations have to provide the
activeColor
variable and thedraw...
andfill...
methods as well asgetPixel
andsetPixel
.
Value Members
- object AwtEventDriver
- object AwtScreenDriver
-
object
ScreenDriver
- Note
As of version 1.3.0, factory methods have been removed, since screen required now.