Class ElectricCharge


  • public class ElectricCharge
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ElectricCharge​(double x, double y, double charge)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getCharge()  
      java.awt.geom.Point2D getPosition()  
      boolean isMoveable()  
      void move​(double deltax, double deltay)  
      void setMoveable​(boolean moveable)  
      • Methods inherited from class java.lang.Object

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

      • ElectricCharge

        public ElectricCharge​(double x,
                              double y,
                              double charge)
    • Method Detail

      • getPosition

        public java.awt.geom.Point2D getPosition()
      • getCharge

        public double getCharge()
      • isMoveable

        public final boolean isMoveable()
      • setMoveable

        public final void setMoveable​(boolean moveable)
      • move

        public void move​(double deltax,
                         double deltay)