AppHelper
is a convenience class for Application
.
The Arrow
class uses Java's Path2D class to create a line with an arrowhead
on the far end.
The Arrow
class uses Java's Path2D class to create a line with an arrowhead
on the far end. The main line is defined by points 'p1' and 'p2'. Points 'p3'
and 'p4' are the corners of the triangular arrowhead.
the starting point for the line/arrow
the ending point for the line/arrow
the length of the arrowhead on the line/arrow
BorderPane
is a convenience class for BorderPane
.
The CurvilinearShape
trait provides a general type for line and curves.
The CurvilinearShape
trait provides a general type for line and curves.
It is analogous to RectangularShape
.
The QCurve
class enhances the QuadCurve.Double
class (from the java.awt.geom
package) by allowing entities to move along such quadratic curves as well as
lines.
The QCurve
class enhances the QuadCurve.Double
class (from the java.awt.geom
package) by allowing entities to move along such quadratic curves as well as
lines. Although the curve could be developed as a quadratic function where
'y = ax2 + bx + c'. The following quadratic bezier formulation is used:
p(t) = (x(t), y(t)) = [(1-t)2 * p1] + [2 * (1-t) * t * pc] + [t^2 * p2].
the starting point for the quad curve
the control point for the quad curve
the ending point for the quad curve
whether the quad curve is straight (i.e., a line)
Scene
is a convenience class for Scene
.
Stage
is a convenience class for Stage
.
The Transform3D
trait provides a simple technique for transforming
(translation, scaling and rotation) rectangular shapes.
The VizFrame
class puts the canvas in the visualization/drawing frame.
The AppTest
is used to test the AppHelper
class.
The Colors
convenience object defines numerous common colors.
The Colors
convenience object defines numerous common colors.
Source of colors: http://www.webmoments.com/colorchart.htm
The ColorsTest
object is used to test the Colors
object.
The QCurve
companion object provides formulas used by the QCurve
class.
The Shapes
object Scala provides type aliases for basic Java2D types.
The scala3d package contains classes, traits and objects for for simple 3D graphics in scala, based upon javafx.