CanvasPlatform
An abstract Canvas interface implemented and to be implemented on various platforms. A concrete implementation will utilise canvas like an HTML canvas or a Scalafx canvas. This concrete implementation class must (can?) be mixed in with a a particular use trait like CanvSimple or CanvMulti. The default methods take the origin as the centre of the canvas. Note the Canvas Platform merely passes bare pointer event data to delegate functions. It does not process them in relation to objects painted on the Canvas.
It is really not a good idea to use this trait, use a sub class of this trait directly in your applications. You do not want to be thinking in terms of the imperative methods of this application. Use one of the provided classes like CanvasNoPanels or Canvas Panelled or create your own if the provided classes don't fulfill your needs.
Attributes
- Graph
-
- Supertypes
-
trait RectCenligntrait Rectangularligntrait OrdinalEdgePointstrait WithCentreclass Objecttrait Matchableclass AnyShow all
- Known subtypes
Members list
Value members
Abstract methods
Draws a circular arc on the canvas.
Draws a circular arc on the canvas.
Attributes
Side effecting procedure that draws a circle on the screen. Implemented by the target platform.
Side effecting procedure that draws a circle on the screen. Implemented by the target platform.
Attributes
Side effecting procedure that fills a circle. Implemented by the target platform.
Side effecting procedure that fills a circle. Implemented by the target platform.
Attributes
To be removed from CanvasPlatform.
To be removed from CanvasPlatform.
Attributes
Draws an elliptical arc on the canvas.
Draws an elliptical arc on the canvas.
Attributes
Side effecting procedure that draws an ellipse on the screen. Implemented by the target platform.
Side effecting procedure that draws an ellipse on the screen. Implemented by the target platform.
Attributes
Side effecting procedure that fills an ellipse on the screen. Implemented by the target platform.
Side effecting procedure that fills an ellipse on the screen. Implemented by the target platform.
Attributes
Returns the system (Unix) time in milliseconds.
Returns the system (Unix) time in milliseconds.
Attributes
Concrete methods
A callback timer with an elapsed time from a given start point. Although are in a general purpose form, the most common usage is for animations where things move dependent on how much time has passed. The function is of form: (elapsedTime(in milliseconds), Startime (in milliseconds) => Unit. The startTime is to be used to call the next frame at then end of the function, if another frame is needed.
A callback timer with an elapsed time from a given start point. Although are in a general purpose form, the most common usage is for animations where things move dependent on how much time has passed. The function is of form: (elapsedTime(in milliseconds), Startime (in milliseconds) => Unit. The startTime is to be used to call the next frame at then end of the function, if another frame is needed.
Attributes
Attempts to find find and load file, attempts to parse the file, attempts to find object of type A. If all stages successful, calls procedure (Unit returning function) with that object of type A
Attempts to find find and load file, attempts to parse the file, attempts to find object of type A. If all stages successful, calls procedure (Unit returning function) with that object of type A
Attributes
The initial frame although are in a general purpose form, the most common usage is for animations where things move dependent on how much time has passed.
The initial frame although are in a general purpose form, the most common usage is for animations where things move dependent on how much time has passed.
Attributes
Inherited methods
Attributes
- Inherited from:
- OrdinalEdgePoints
Attributes
- Definition Classes
- Inherited from:
- RectCenlign
Attributes
- Definition Classes
- Inherited from:
- RectCenlign
Attributes
- Definition Classes
- Inherited from:
- RectCenlign
Attributes
- Inherited from:
- OrdinalEdgePoints
The centre of this geometric / graphical element. The centre will not change if the object type is capable of being rotated and is rotated. The cenDefault on other bounded elements may move relative to points on the object when the object is rotated.
The centre of this geometric / graphical element. The centre will not change if the object type is capable of being rotated and is rotated. The cenDefault on other bounded elements may move relative to points on the object when the object is rotated.
Attributes
- Definition Classes
- Inherited from:
- RectCenlign
Attributes
- Inherited from:
- RectCenlign
The X component of the centre.
The Y component of the centre.
Attributes
- Inherited from:
- RectCenlign
Not sure why spacing has got a minus sign
Badly named I think, not sure why spacing has got a minus sign
Badly named I think, not sure why spacing has got a minus sign
Attributes
- Inherited from:
- RectCenlign
Attributes
- Inherited from:
- Rectangularlign
Attributes
- Definition Classes
- Inherited from:
- RectCenlign
Attributes
- Inherited from:
- RectCenlign
Attributes
- Definition Classes
- Inherited from:
- RectCenlign
Attributes
- Inherited from:
- OrdinalEdgePoints
Attributes
- Definition Classes
- Inherited from:
- RectCenlign
Attributes
- Definition Classes
- Inherited from:
- RectCenlign
Attributes
- Definition Classes
- Inherited from:
- RectCenlign
Top right offset from centre.
Attributes
- Inherited from:
- Rectangularlign
Attributes
- Definition Classes
- Inherited from:
- RectCenlign
Attributes
- Definition Classes
- Inherited from:
- RectCenlign
Attributes
- Definition Classes
- Inherited from:
- RectCenlign
Attributes
- Definition Classes
- Inherited from:
- RectCenlign
Attributes
- Definition Classes
- Inherited from:
- RectCenlign
Attributes
- Definition Classes
- Inherited from:
- RectCenlign
Attributes
- Definition Classes
- Inherited from:
- RectCenlign
Attributes
- Definition Classes
- Inherited from:
- RectCenlign
Concrete fields
The canvas implementation will call this function when the mouse button is depressed. Named after Javascript command.
The canvas implementation will call this function when the mouse button is depressed. Named after Javascript command.
Attributes
The canvas implementation will call this function when a mouse button is released. Named after Javascript command.
The canvas implementation will call this function when a mouse button is released. Named after Javascript command.