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.
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)