Packages

  • package root
    Definition Classes
    root
  • package o1
    Definition Classes
    root
  • package robots
    Definition Classes
    o1
  • package gui
    Definition Classes
    robots
  • class RobotWindow extends MainFrame with Escapable with O1WindowDefaults

    The class RobotWindow represents GUI windows that serve as the main window of a RobotApp.

    The class RobotWindow represents GUI windows that serve as the main window of a RobotApp.

    NOTE TO STUDENTS: In this course, you don't need to understand how this class works or can be used.

    Definition Classes
    gui
  • InterfaceMixin
  • RobotsDisplay
  • SuperMixin
c

o1.robots.gui.RobotWindow

RobotsDisplay

class RobotsDisplay extends BasicGridDisplay[RobotWorld, Square]

Attributes
protected
Self Type
RobotsDisplay
Linear Supertypes
BasicGridDisplay[RobotWorld, Square], Component, UIElement, LazyPublisher, Publisher, Reactor, Proxy, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RobotsDisplay
  2. BasicGridDisplay
  3. Component
  4. UIElement
  5. LazyPublisher
  6. Publisher
  7. Reactor
  8. Proxy
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new RobotsDisplay(parent: RobotWindow, world: RobotWorld)

Type Members

  1. class Popup extends PopupMenu
    Attributes
    protected
    Definition Classes
    BasicGridDisplay
  2. class SquarePopup extends Popup
    Attributes
    protected
  3. trait SuperMixin extends JComponent
    Attributes
    protected
    Definition Classes
    Component

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def advanceTurns(howMany: Int): Unit
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def background: Color
    Definition Classes
    UIElement
  7. def background_=(c: Color): Unit
    Definition Classes
    UIElement
  8. def border: Border
    Definition Classes
    Component
  9. def border_=(b: Border): Unit
    Definition Classes
    Component
  10. def bounds: Rectangle
    Definition Classes
    UIElement
  11. val brokenPic: Option[BufferedImage]
  12. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  13. def componentOrientation: ComponentOrientation
    Definition Classes
    UIElement
  14. def componentOrientation_=(x: ComponentOrientation): Unit
    Definition Classes
    UIElement
  15. def cursor: Cursor
    Definition Classes
    UIElement
  16. def cursor_=(c: Cursor): Unit
    Definition Classes
    UIElement
  17. def deafTo(ps: Publisher*): Unit
    Definition Classes
    Reactor
  18. val directionPics: Map[grid.CompassDir, Option[BufferedImage]]
  19. def displayable: Boolean
    Definition Classes
    UIElement
  20. def elementAt(point: Point): Option[Square]
    Definition Classes
    BasicGridDisplay
  21. def elementClicked(square: Square): Unit
    Definition Classes
    RobotsDisplay → BasicGridDisplay
  22. def elementVisuals(square: Square): Array[BufferedImage]
    Definition Classes
    RobotsDisplay → BasicGridDisplay
  23. def enabled: Boolean
    Definition Classes
    Component
  24. def enabled_=(b: Boolean): Unit
    Definition Classes
    Component
  25. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. def equals(that: Any): Boolean
    Definition Classes
    Proxy → Any
  27. val floorPic: Option[BufferedImage]
  28. def focusable: Boolean
    Definition Classes
    Component
  29. def focusable_=(b: Boolean): Unit
    Definition Classes
    Component
  30. def font: Font
    Definition Classes
    UIElement
  31. def font_=(f: Font): Unit
    Definition Classes
    UIElement
  32. def foreground: Color
    Definition Classes
    UIElement
  33. def foreground_=(c: Color): Unit
    Definition Classes
    UIElement
  34. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  35. def getPic(name: String, fullSize: Boolean): Option[BufferedImage]
  36. val grid: RobotWorld
    Definition Classes
    BasicGridDisplay
  37. def hasFocus: Boolean
    Definition Classes
    Component
  38. def hashCode(): Int
    Definition Classes
    Proxy → Any
  39. val height: Int
    Definition Classes
    BasicGridDisplay
  40. def ignoreRepaint: Boolean
    Definition Classes
    UIElement
  41. def ignoreRepaint_=(b: Boolean): Unit
    Definition Classes
    UIElement
  42. def inputVerifier: (Component) => Boolean
    Definition Classes
    Component
  43. def inputVerifier_=(v: (Component) => Boolean): Unit
    Definition Classes
    Component
  44. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  45. def listenTo(ps: Publisher*): Unit
    Definition Classes
    Reactor
  46. val listeners: RefSet[Reaction]
    Attributes
    protected
    Definition Classes
    Publisher
  47. def loadRobotPics(types: Iterable[String]): Map[String, Option[BufferedImage]]
  48. def locale: Locale
    Definition Classes
    UIElement
  49. def location: Point
    Definition Classes
    UIElement
  50. def locationOnScreen: Point
    Definition Classes
    UIElement
  51. def maximumSize: Dimension
    Definition Classes
    UIElement
  52. def maximumSize_=(x: Dimension): Unit
    Definition Classes
    UIElement
  53. def minimumSize: Dimension
    Definition Classes
    UIElement
  54. def minimumSize_=(x: Dimension): Unit
    Definition Classes
    UIElement
  55. def missingElementVisuals: Array[BufferedImage]
    Definition Classes
    RobotsDisplay → BasicGridDisplay
  56. def name: String
    Definition Classes
    Component
  57. def name_=(s: String): Unit
    Definition Classes
    Component
  58. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  59. def nextRobotTurn(): Unit
  60. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  61. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  62. def onFirstSubscribe(): Unit
    Attributes
    protected
    Definition Classes
    Component → UIElement → LazyPublisher
  63. def onLastUnsubscribe(): Unit
    Attributes
    protected
    Definition Classes
    UIElement → LazyPublisher
  64. def opaque: Boolean
    Definition Classes
    Component
  65. def opaque_=(b: Boolean): Unit
    Definition Classes
    Component
  66. def paint(graphics: Graphics2D): Unit
    Definition Classes
    BasicGridDisplay → Component
  67. def paintBorder(g: Graphics2D): Unit
    Attributes
    protected
    Definition Classes
    Component
  68. def paintChildren(g: Graphics2D): Unit
    Attributes
    protected
    Definition Classes
    Component
  69. def paintComponent(g: Graphics2D): Unit
    Attributes
    protected
    Definition Classes
    Component
  70. val parent: RobotWindow
  71. lazy val peer: JComponent
    Definition Classes
    Component → UIElement
  72. val popup: SquarePopup
    Definition Classes
    RobotsDisplay → BasicGridDisplay
  73. def posAtPoint(point: Point): Option[grid.GridPos]
    Definition Classes
    BasicGridDisplay
  74. def preferredSize: Dimension
    Definition Classes
    UIElement
  75. def preferredSize_=(x: Dimension): Unit
    Definition Classes
    UIElement
  76. def publish(e: Event): Unit
    Definition Classes
    Publisher
  77. val reactions: Reactions
    Definition Classes
    Reactor
  78. def repaint(rect: Rectangle): Unit
    Definition Classes
    UIElement
  79. def repaint(): Unit
    Definition Classes
    UIElement
  80. def requestFocus(): Unit
    Definition Classes
    Component
  81. def requestFocusInWindow(): Boolean
    Definition Classes
    Component
  82. def revalidate(): Unit
    Definition Classes
    Component
  83. def robotPic(robot: RobotBody): Option[BufferedImage]
  84. val robotPics: Map[String, Option[BufferedImage]]
  85. def scale(original: BufferedImage, targetSize: Int): BufferedImage
    Definition Classes
    BasicGridDisplay
  86. def scale(original: BufferedImage): BufferedImage
    Definition Classes
    BasicGridDisplay
  87. def scalePic(image: BufferedImage, fullSize: Boolean): BufferedImage
  88. def self: Any
    Definition Classes
    UIElement → Proxy
  89. def showing: Boolean
    Definition Classes
    UIElement
  90. def size: Dimension
    Definition Classes
    UIElement
  91. val squareSize: Int
    Definition Classes
    BasicGridDisplay
  92. def subscribe(listener: Reaction): Unit
    Definition Classes
    LazyPublisher → Publisher
  93. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  94. def toString: String
    Definition Classes
    Component → Proxy → AnyRef → Any
  95. def toolkit: Toolkit
    Definition Classes
    UIElement
  96. def tooltip: String
    Definition Classes
    Component
  97. def tooltipFor(brain: RobotBrain): String
  98. def tooltipFor(square: Square): Option[String]
    Definition Classes
    RobotsDisplay → BasicGridDisplay
  99. def tooltip_=(t: String): Unit
    Definition Classes
    Component
  100. def unsubscribe(listener: Reaction): Unit
    Definition Classes
    LazyPublisher → Publisher
  101. def update(): Unit
    Definition Classes
    RobotsDisplay → BasicGridDisplay
  102. def validate(): Unit
    Definition Classes
    UIElement
  103. def visible: Boolean
    Definition Classes
    UIElement
  104. def visible_=(b: Boolean): Unit
    Definition Classes
    UIElement
  105. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  106. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  107. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  108. val wallPic: Option[BufferedImage]
  109. val width: Int
    Definition Classes
    BasicGridDisplay
  110. val world: RobotWorld
  111. def xLayoutAlignment: Double
    Definition Classes
    Component
  112. def xLayoutAlignment_=(x: Double): Unit
    Definition Classes
    Component
  113. def yLayoutAlignment: Double
    Definition Classes
    Component
  114. def yLayoutAlignment_=(y: Double): Unit
    Definition Classes
    Component

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Component

Inherited from UIElement

Inherited from LazyPublisher

Inherited from Publisher

Inherited from Reactor

Inherited from Proxy

Inherited from AnyRef

Inherited from Any

Ungrouped