Package breadboards

Interface GObjectParent

  • All Known Implementing Classes:
    Breadboard, GCompound, GSpaceship, GTurtle

    public interface GObjectParent
    Interface required of objects that hold a collection of GObjects
    Author:
    paul oser
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void sendBackward​(GObject gObj)
      Swaps the z-orders of the specified GObject and the object immediately "below" it.
      void sendForward​(GObject gObj)
      Swaps the z-orders of the specified GObject and the object immediately "below" it.
      void sendToBack​(GObject gObj)
      Moves the specified object "below" all other GObjects on the breadboard
      void sendToFront​(GObject gObj)
      Moves the specified object "on top" of all other GObjects on the breadboard
      void updateDisplay()
      updates display of containing breadboard (should be called when any contained GObject changes state)
    • Method Detail

      • updateDisplay

        void updateDisplay()
        updates display of containing breadboard (should be called when any contained GObject changes state)
      • sendForward

        void sendForward​(GObject gObj)
        Swaps the z-orders of the specified GObject and the object immediately "below" it.
        Parameters:
        gObj - the specified GObject
      • sendBackward

        void sendBackward​(GObject gObj)
        Swaps the z-orders of the specified GObject and the object immediately "below" it.
        Parameters:
        gObj - the specified GObject
      • sendToFront

        void sendToFront​(GObject gObj)
        Moves the specified object "on top" of all other GObjects on the breadboard
        Parameters:
        gObj - the specified GObject
      • sendToBack

        void sendToBack​(GObject gObj)
        Moves the specified object "below" all other GObjects on the breadboard
        Parameters:
        gObj - the specified GObject