|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--GP.Graphics.Shape | +--GP.Containers.Manager | +--GP.Graphics.Composite
Fields inherited from class GP.Graphics.Shape |
ourNumShapes |
Constructor Summary | |
Composite()
|
|
Composite(Container container)
|
Method Summary | |
Position |
GetOffset()
|
Position |
GetPosition()
This method should return the current position of the object. |
Size |
GetSize()
This method should return the current size of the object. |
boolean |
IsPositionInside(Position position)
This methods should determine whether the position passed into it is inside the graphical boundries of the object, and return the result of that calculation. |
void |
Move(double x,
double y)
|
void |
Move(Value x,
Value y)
|
void |
Move(Velocity velocity)
|
boolean |
PositionIsOnlyInsideMe(Position position)
This method should determine whether the position passed into it is inside the graphical boundries of the object, but not within any of its sub-objects, and return the result of that calculation. |
void |
SetColor(Color color)
This method should set the current color of the object. |
void |
SetPosition(Position position)
This method should set the current position of the object. |
Methods inherited from class GP.Containers.Manager |
AddItem, ApplyBehaviors, ApplyInstincts, Copy, DisableClipping, DoForEach, EnableClipping, GetActiveGraphic, GetComponent, GetGPGraphic, GetGraphic, GetItemsList, GetRandomPosition, GetSource, GetTopLevel, NeedToUpdate, NumberOfItems, ObjectSelected, PreferedSize, Realize, Refresh, RemoveAllItems, RemoveItem, Scale, SetBorderWidth, SetGeometryManager, SetHorizontalAligner, SetSelectionReactor, SetSize, SetVerticalAligner, toString |
Methods inherited from class GP.Graphics.Shape |
Act, AddBehavior, DeSelect, equals, Fill, Frame, GetApplet, GetBoxBoundedSize, GetColor, GetContainer, GetCurrentTime, GetFillStyle, GetOrientation, GetPivot, Hide, IsVisible, MoveBackward, MoveForward, MoveToBack, MoveToFront, Pause, Play, React, RemoveAllBehaviors, RemoveBehavior, ReplaceAllBehaviors, Scale, Scale, Select, SetContainer, SetFillStyle, SetOrientation, SetPivot, Show, Show, Start, Stop, Turn, Turn, Turn, Turn, Turn, Turn |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface GP.Scalable |
Scale, Scale |
Methods inherited from interface GP.Viewable |
Hide, IsVisible, Show |
Methods inherited from interface GP.Playable |
GetCurrentTime, Pause, Play, Stop |
Methods inherited from interface GP.Colorable |
GetColor |
Constructor Detail |
public Composite()
public Composite(Container container)
Method Detail |
public boolean PositionIsOnlyInsideMe(Position position)
Graphic
IsPositionInside(GP.Attributes.Position)
, but may differ when
dealing with composite structures such as
GP.MultiManagers
PositionIsOnlyInsideMe
in class GP.Containers.Manager
GP.Graphic
position
- the position in questionpublic boolean IsPositionInside(Position position)
Graphic
IsPositionInside
in class Shape
GP.Graphic
position
- the position in questionpublic void SetColor(Color color)
Colorable
SetColor
in class Shape
GP.Colorable
color
- the new colorpublic Size GetSize()
Scalable
GetSize
in class GP.Containers.Manager
GP.Scalable
public void Move(double x, double y)
Move
in class Shape
public void Move(Value x, Value y)
Move
in class Shape
public void Move(Velocity velocity)
Move
in class Shape
public void SetPosition(Position position)
Positionable
SetPosition
in class Shape
GP.Positionable
position
- the new positionpublic Position GetPosition()
Positionable
GetPosition
in class Shape
GP.Positionable
public Position GetOffset()
GetOffset
in class GP.Containers.Manager
GP.PackageFriendlyContainer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |