GP
Interface Container

All Superinterfaces:
Clippable, Colorable, PackageFriendlyContainer, Playable, Scalable, Viewable
All Known Implementing Classes:
GP.Containers.Manager

public interface Container
extends Scalable, Viewable, Playable, Clippable, Colorable, PackageFriendlyContainer

All object that can contain other objects graphically should have the ability of managing/manipilating these contained object graphically.


Method Summary
 void DoForEach(Doable action)
          This method should allow you to preform the passed in action for each item currently contianed by this object.
 Graphic GetActiveGraphic()
           
 Position GetRandomPosition()
          This method should return a randomly located position within the current confines of this object.
 Source GetSource(java.lang.String source)
           
 int NumberOfItems()
          This method should return the number of objects that are contained in this object.
 void ObjectSelected(Graphic selected)
           
 void RemoveAllItems()
           
 void SetBorderWidth(double border)
           
 void SetGeometryManager(GP.Behaviors.GeometryManager geoManager)
          This method should allow you to change the current geometry managment object that is used to determine the position of all the contained objects.
 void SetHorizontalAligner(GP.Behaviors.GeometryManagers.Aligners.Horizontal aligner)
           
 void SetSelectionReactor(Selection selectionReactor)
           
 void SetVerticalAligner(GP.Behaviors.GeometryManagers.Aligners.Vertical aligner)
           
 
Methods inherited from interface GP.Scalable
GetSize, Scale, Scale, Scale, SetSize
 
Methods inherited from interface GP.Viewable
Hide, IsVisible, Show
 
Methods inherited from interface GP.Playable
GetCurrentTime, Pause, Play, Stop
 
Methods inherited from interface GP.Clippable
DisableClipping, EnableClipping
 
Methods inherited from interface GP.Colorable
GetColor, SetColor
 
Methods inherited from interface GP.PackageFriendlyContainer
AddItem, GetComponent, GetGPGraphic, GetGraphic, GetItemsList, GetOffset, GetTopLevel, NeedToUpdate, Realize, RemoveItem
 

Method Detail

DoForEach

public void DoForEach(Doable action)
This method should allow you to preform the passed in action for each item currently contianed by this object.
Parameters:
action - the action you wish to be preformed on for each item in the object

NumberOfItems

public int NumberOfItems()
This method should return the number of objects that are contained in this object.
Returns:
the number of contained objects

GetRandomPosition

public Position GetRandomPosition()
This method should return a randomly located position within the current confines of this object.
Returns:
a random position within this object

SetGeometryManager

public void SetGeometryManager(GP.Behaviors.GeometryManager geoManager)
This method should allow you to change the current geometry managment object that is used to determine the position of all the contained objects.
Parameters:
geoManager - the new geometry manager

ObjectSelected

public void ObjectSelected(Graphic selected)

GetSource

public Source GetSource(java.lang.String source)

RemoveAllItems

public void RemoveAllItems()

SetSelectionReactor

public void SetSelectionReactor(Selection selectionReactor)

GetActiveGraphic

public Graphic GetActiveGraphic()

SetHorizontalAligner

public void SetHorizontalAligner(GP.Behaviors.GeometryManagers.Aligners.Horizontal aligner)

SetVerticalAligner

public void SetVerticalAligner(GP.Behaviors.GeometryManagers.Aligners.Vertical aligner)

SetBorderWidth

public void SetBorderWidth(double border)