GP.Graphics
Class Line

java.lang.Object
  |
  +--GP.Graphics.Shape
        |
        +--GP.Graphics.Line
All Implemented Interfaces:
Behavioral, Colorable, Graphic, Movable, Orientable, Originable, Playable, Positionable, Reactive, Refreshable, Scalable, Selectable, Viewable
Direct Known Subclasses:
Arrow

public class Line
extends Shape


Fields inherited from class GP.Graphics.Shape
ourNumShapes
 
Constructor Summary
Line()
           
Line(Container container)
           
Line(Line line)
           
 
Method Summary
 Graphic Copy()
           
 Position GetEnd()
           
 Position GetStart()
           
 double GetThickness()
           
 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 SetEndPoints(Position one, Position two)
           
 void SetSize(Size size)
          This method should set the current size of the object.
 void SetThickness(double thickness)
           
 void SetThickness(Value thickness)
           
 
Methods inherited from class GP.Graphics.Shape
Act, AddBehavior, ApplyBehaviors, ApplyInstincts, DeSelect, equals, Fill, Frame, GetApplet, GetBoxBoundedSize, GetColor, GetContainer, GetCurrentTime, GetFillStyle, GetOrientation, GetPivot, GetPosition, GetSize, Hide, IsVisible, Move, Move, Move, MoveBackward, MoveForward, MoveToBack, MoveToFront, Pause, Play, PositionIsOnlyInsideMe, PreferedSize, React, Refresh, RemoveAllBehaviors, RemoveBehavior, ReplaceAllBehaviors, Scale, Scale, Scale, Select, SetColor, SetContainer, SetFillStyle, SetOrientation, SetPivot, SetPosition, Show, Show, Start, Stop, toString, Turn, Turn, Turn, Turn, Turn, Turn
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Line

public Line()

Line

public Line(Container container)

Line

public Line(Line line)
Method Detail

Copy

public Graphic Copy()
Overrides:
Copy in class Shape

SetEndPoints

public void SetEndPoints(Position one,
                         Position two)

GetStart

public Position GetStart()

GetEnd

public Position GetEnd()

SetThickness

public void SetThickness(double thickness)

SetThickness

public void SetThickness(Value thickness)

GetThickness

public double GetThickness()

SetSize

public void SetSize(Size size)
Description copied from interface: Scalable
This method should set the current size of the object.
Overrides:
SetSize in class Shape
Following copied from interface: GP.Scalable
Parameters:
size - the new size

IsPositionInside

public boolean IsPositionInside(Position position)
Description copied from interface: Graphic
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.
Overrides:
IsPositionInside in class Shape
Following copied from interface: GP.Graphic
Parameters:
position - the position in question
Returns:
true if the position is inside, false otherwise