Package breadboards
Interface GObjectParent
-
- All Known Implementing Classes:
Breadboard,GCompound,GSpaceship,GTurtle
public interface GObjectParentInterface 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 voidsendBackward(GObject gObj)Swaps the z-orders of the specified GObject and the object immediately "below" it.voidsendForward(GObject gObj)Swaps the z-orders of the specified GObject and the object immediately "below" it.voidsendToBack(GObject gObj)Moves the specified object "below" all other GObjects on the breadboardvoidsendToFront(GObject gObj)Moves the specified object "on top" of all other GObjects on the breadboardvoidupdateDisplay()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
-
-