scalation

scala2d

package scala2d

The scala2d package contains classes, traits and objects for for simple 2D graphics in scala, based upon java_swing, java_awt and java_awt_geom.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. scala2d
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. case class Arc() extends Double with Product with Serializable

    Arc is a convenience case class for Arc2D (a subclass of RectangularShape).

  2. case class Arrow(p1: R2 = R2 (0.0, 0.0), p2: R2 = R2 (0.0, 0.0), len: Int = 10) extends Double with Product with Serializable

    The Arrow class uses Java's Path2D class to create a line with an arrowhead on the far end.

  3. trait CurvilinearShape extends Shape with Error

    The CurvilinearShape trait provides a general type for line and curves.

  4. case class Ellipse() extends Double with Product with Serializable

    Ellipse is a convenience case class for Ellipse2D (a subclass of RectangularShape).

  5. class Frame extends JFrame

    Frame is a convenience class for JFrame.

  6. case class Hexagon(vertex: Array[R2]) extends Double with Product with Serializable

    The Hexagon class enhances the Path2D.

  7. case class Line(p1: R2 = R2 (0.0, 0.0), p2: R2 = R2 (0.0, 0.0)) extends Double with Product with Serializable

    Line is a convenience case class for Line2D (a subclass of RectangularShape).

  8. case class Octagon(vertex: Array[R2]) extends Double with Product with Serializable

    The Octagon class enhances the Path2D.

  9. class Panel extends JPanel

    Panel is a convenience class for JPanel.

  10. case class Path() extends Double with Product with Serializable

    Path is a convenience case class for Path2D.

  11. case class Pentagon(vertex: Array[R2]) extends Double with Product with Serializable

    The Pentagon class enhances the Path2D.

  12. case class Polygon(vertex: Array[R2]) extends Double with Product with Serializable

    The Polygon class enhances the Path2D.Double class (from the java.

  13. case class QArrow(p1: R2 = R2 (0.0, 0.0), pc: R2 = R2 (0.0, 0.0), p2: R2 = R2 (0.0, 0.0), len: Int = 10) extends Double with Product with Serializable

    The QArrow class uses Java's Path2D class to create a quad curve with an arrowhead on the far end.

  14. case class QCurve(p1: R2 = R2 (0.0, 0.0), pc: R2 = R2 (0.0, 0.0), p2: R2 = R2 (0.0, 0.0), straight: Boolean = true) extends Double with CurvilinearShape with Product with Serializable

    The QCurve class enhances the QuadCurve.Double class (from the java.

  15. case class Quad(vertex: Array[R2]) extends Double with Product with Serializable

    The Quad class enhances the Path2D.

  16. case class R2(xx: Double, yy: Double) extends Double with Product with Serializable

    R2 is a convenience case class for Point2D.

  17. case class Rectangle() extends Double with Product with Serializable

    Rectangle is a convenience case class for Rectangle2D (a subclass of RectangularShape).

  18. case class RoundRectangle() extends Double with Product with Serializable

    RoundRectangle is a convenience case class for RoundRectangle2D (a subclass of RectangularShape).

  19. class ScrollPane extends JScrollPane

    ScrollPane is a convenience class for JScrollPane.

  20. class Table extends JTable

    Table is a convenience class for JTable.

  21. trait Transform extends AnyRef

    The Transform trait provides a simple technique for transforming (translation, scaling and rotation) rectangular shapes.

  22. case class Triangle(vertex: Array[R2]) extends Double with Product with Serializable

    The Triangle class enhances the Path2D.

  23. class VizFrame extends Frame

    The VizFrame class puts the canvas in the visualization/drawing frame.

Value Members

  1. object ArrowTest extends App

    The ArrowTest object is used to test the Arrow class.

  2. object Colors

    The Colors convenience object defines numerous common colors.

  3. object ColorsTest extends App

    The ColorsTest object is used to test the Colors object.

  4. object Constants

    Useful constants.

  5. object PolygonTest extends App

    The PolygonTest object tests the Polygon, Triangle, Quad and Hexagon classes.

  6. object QArrowTest extends App

    The QArrowTest object is used to test the QArrow class.

  7. object QCurve extends Serializable

    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: The QCurve companion object provides formulas used by the QCurve class.

  8. object QCurveTest extends App

    The QCurveTest object tests the QCurve classes' quad curves.

  9. object QCurveTest2 extends App

    The QCurveTest2 object tests traversals of QCurve's (quad curves).

  10. object Shapes

    The Shapes object Scala provides type aliases for basic Java2D types.

Inherited from AnyRef

Inherited from Any

Ungrouped