maslab.vis
Class VisRobot

java.lang.Object
  extended by maslab.vis.VisObject
      extended by maslab.vis.VisRobot

public class VisRobot
extends VisObject

A graphical depiction of a robot.


Field Summary
 java.awt.Color color
           
 java.lang.String label
           
 double size
           
 double strokeSizePx
           
 java.awt.Color textColor
           
 double textSize
           
 double theta
           
 double x
           
 double y
           
 
Fields inherited from class maslab.vis.VisObject
coordinateSpace, SCREENSPACE, WORLDSPACE
 
Constructor Summary
VisRobot(java.awt.Color c, double x, double y, double theta, java.lang.String label)
          Create a new robot at the specified x,y, theta.
 
Method Summary
 void paint(VisCanvas vc, java.awt.Graphics2D g, java.awt.image.BufferedImage bi)
          Overriden by each subclass to draw itself onto the provided graphics context.
 void update(double x, double y, double theta)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

public double x

y

public double y

theta

public double theta

size

public double size

label

public java.lang.String label

color

public java.awt.Color color

textColor

public java.awt.Color textColor

textSize

public double textSize

strokeSizePx

public double strokeSizePx
Constructor Detail

VisRobot

public VisRobot(java.awt.Color c,
                double x,
                double y,
                double theta,
                java.lang.String label)
Create a new robot at the specified x,y, theta.

Parameters:
label - A text string to be displayed at the robot position. May be null.
Method Detail

update

public void update(double x,
                   double y,
                   double theta)

paint

public void paint(VisCanvas vc,
                  java.awt.Graphics2D g,
                  java.awt.image.BufferedImage bi)
Description copied from class: VisObject
Overriden by each subclass to draw itself onto the provided graphics context. Applications can choose to use either the Graphics2D (which has the correct transform already set up) or to draw to the buffered image directly.

Specified by:
paint in class VisObject