| 
Method Summary | 
| 
void | 
drawLine(double dx,
         double dy)  
Draws a line segment with displacements dx and dy. | 
| 
void | 
drawPolarLine(double r,
              double theta)  
Draws a line segment using displacements given in polar coordinates. | 
| 
void | 
endFilledRegion()  
Ends the definition of a region and fills it with the current color. | 
| 
void | 
erasePath()  
Erases the entire path drawn by the pen but does not change its position. | 
| 
GRectangle | 
getBounds()  
Returns the bounding box for the entire figure traced by the pen. | 
| 
Color | 
getFillColor()  
Returns the color used to display the filled region of this object. | 
| 
Image | 
getPenImage()  
Returns the image used to draw the pen when setPenVisible has been
 called. | 
| 
double | 
getSpeed()  
Returns the current speed of the pen. | 
| 
void | 
hidePen()  
Makes the pen itself invisible. | 
| 
boolean | 
isPenVisible()  
Returns whether the pen is visible. | 
| 
void | 
scale(double sx,
      double sy)  
Sets the scale factors sx and sy. | 
| 
void | 
setColor(Color color)  
Sets the color of the pen. | 
| 
void | 
setFillColor(Color color)  
Sets the color used to fill a region. | 
| 
void | 
setLocation(double x,
            double y)  
Moves the pen to the point (x, y) without drawing a line. | 
| 
void | 
setPenImage(Image image)  
Sets the image of the pen to be the specified image. | 
| 
void | 
setSpeed(double speed)  
Sets the speed of the pen, which must be a number between 0 (slowest)
 and 1 (fastest). | 
| 
void | 
showPen()  
Makes the pen itself visible. | 
| 
void | 
startFilledRegion()  
Starts defining a region that will be filled with the current color. | 
 
| 
Inherited Method Summary | 
| 
Color | getColor() 
Returns the color used to display this object.
 | 
| 
double | getHeight() 
Returns the height of this object as a double-precision value, which
is defined to be the height of the bounding box.
 | 
| 
GPoint | getLocation() 
Returns the location of this object as a GPoint.
 | 
| 
GDimension | getSize() 
Returns the size of the bounding box for this object.
 | 
| 
double | getWidth() 
Returns the width of this object as a double-precision value, which
is defined to be the width of the bounding box.
 | 
| 
double | getX() 
Returns the x-coordinate of the object.
 | 
| 
double | getY() 
Returns the y-coordinate of the object.
 | 
| 
boolean | isVisible() 
Checks to see whether the trace of the pen is visible.
 | 
| 
void | move(double dx, double dy) 
Moves the pen on the screen by the specified displacements without drawing a line.
 | 
| 
void | movePolar(double r, double theta) 
Moves the pen using displacements given in polar coordinates without drawing
a line.
 | 
| 
void | sendBackward() 
Moves this object one step toward the back in the z dimension.
 | 
| 
void | sendForward() 
Moves this object one step toward the front in the z dimension.
 | 
| 
void | sendToBack() 
Moves this object to the back of the display in the z dimension.
 | 
| 
void | sendToFront() 
Moves this object to the front of the display in the z dimension.
 | 
| 
void | setLocation(GPoint pt) 
Sets the location of this object to the specified point.
 | 
| 
void | setVisible(boolean visible) 
Sets whether the trace of the pen is visible.
 |