Uses of Class
galapagos.Position

Uses of Position in galapagos
 

Fields in galapagos declared as Position
private  Position Turtle.currentPosition
          This turtle's current position in the logical coordinate
private  Position PositionCommand.position
           
private  Position JumpToCommand.position
           
private  Position DrawTextCommand.position
           
private  Position Turtle.redrawCurrentPosition
          The position of this turtle during the redrawing phase.
private  Position PlotCommand.target
           
private  Position MoveToCommand.target
           
 

Methods in galapagos that return Position
private  Position TurtleShape.compose(Position turtlePosition, double turtleOrientation, java.awt.Point refPoint)
          Compute a position of reference point in the global coordinate system.
 

Methods in galapagos with parameters of type Position
(package private)  void Turtle.changePosition(Position newLocation)
          Sets the current position of this turtle.
(package private)  void Turtle.changeRedrawPosition(Position position)
          Changes the position of the turtle while commands in the 'memory' vector are being executed.
private  Position TurtleShape.compose(Position turtlePosition, double turtleOrientation, java.awt.Point refPoint)
          Compute a position of reference point in the global coordinate system.
 void DrawingCanvas.drawText(java.awt.Graphics g, java.awt.Color color, int pensize, Position position, java.lang.String text)
          Draws the text on the Graphics g in the specified color with pensize thickness at position location.
(package private)  void Turtle.drawTextMemory(java.lang.String text, Position position)
          Draws text specified by the DrawTextCommand command in the memory
 java.awt.Polygon TurtleShape.getShape(Position turtlePosition, double turtleOrientation)
          Computes a polygon that represents the turtle's shape.
 void DrawingCanvas.plot(java.awt.Graphics graphic, java.awt.Color color, double size, Position pt1, Position pt2)
          Draws a line between two points pt1 and pt2 on the parameter graphic in the specified color and pen size.
(package private)  void Turtle.plot(Position target, int penState, java.awt.Color penColor, double penSize)
          If the pen is down, this method calls the DrawingCanvas plot method to draw a line between redrawCurrentPosition to target in the specified color and pen size.
(package private)  void Turtle.turnAndMove(Position target)
          Implements the MoveTo command by using the changeOrientation and draw methods.
 

Constructors in galapagos with parameters of type Position
DrawTextCommand(Turtle owner, java.lang.String text, Position position)
           
JumpToCommand(Turtle owner, Position position)
           
MoveToCommand(Turtle owner, Position target)
           
PlotCommand(Turtle owner, Position target, int penState, java.awt.Color penColor, double penSize)
           
PositionCommand(Turtle owner, Position position)