Package hsa

Class Moveable


  • public class Moveable
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int DIAMETER  
    • Constructor Summary

      Constructors 
      Constructor Description
      Moveable​(double newX, double newY, double newDirection, double newSpeed)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.Color getColor()  
      double getDirection()  
      double getSpeed()  
      double getX()  
      double getY()  
      void paint​(java.awt.Graphics g, int xPos, int yPos)  
      void setColor​(java.awt.Color newColor)  
      void setDirection​(double newDirection)  
      void setLocation​(double newX, double newY)  
      void setSpeed​(double newSpeed)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Moveable

        public Moveable​(double newX,
                        double newY,
                        double newDirection,
                        double newSpeed)
    • Method Detail

      • getX

        public double getX()
      • getY

        public double getY()
      • setLocation

        public void setLocation​(double newX,
                                double newY)
      • getDirection

        public double getDirection()
      • setDirection

        public void setDirection​(double newDirection)
      • getSpeed

        public double getSpeed()
      • setSpeed

        public void setSpeed​(double newSpeed)
      • getColor

        public java.awt.Color getColor()
      • setColor

        public void setColor​(java.awt.Color newColor)
      • paint

        public void paint​(java.awt.Graphics g,
                          int xPos,
                          int yPos)