Class Point2DCharge

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public class Point2DCharge
    extends java.awt.geom.Point2D.Double
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.awt.geom.Point2D

        java.awt.geom.Point2D.Double, java.awt.geom.Point2D.Float
    • Field Summary

      • Fields inherited from class java.awt.geom.Point2D.Double

        x, y
    • Constructor Summary

      Constructors 
      Constructor Description
      Point2DCharge​(double x, double y)  
      Point2DCharge​(java.awt.geom.Point2D pt, double ch)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void apply​(VectorForce value)  
      boolean equals​(java.lang.Object obj)  
      double getCharge()  
      int hashCode()  
      void setCharge​(double charge)  
      void setLocation​(double x, double y)  
      void setLocation​(java.awt.geom.Point2D p)  
      void setMoveObserver​(MoveObserver moveObserver)  
      java.lang.String toString()  
      • Methods inherited from class java.awt.geom.Point2D.Double

        getX, getY
      • Methods inherited from class java.awt.geom.Point2D

        clone, distance, distance, distance, distanceSq, distanceSq, distanceSq
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Point2DCharge

        public Point2DCharge​(double x,
                             double y)
      • Point2DCharge

        public Point2DCharge​(java.awt.geom.Point2D pt,
                             double ch)
    • Method Detail

      • setLocation

        public final void setLocation​(double x,
                                      double y)
        Overrides:
        setLocation in class java.awt.geom.Point2D.Double
      • setLocation

        public final void setLocation​(java.awt.geom.Point2D p)
        Overrides:
        setLocation in class java.awt.geom.Point2D
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.awt.geom.Point2D.Double
      • getCharge

        public final double getCharge()
      • setCharge

        public final void setCharge​(double charge)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.awt.geom.Point2D
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.awt.geom.Point2D
      • setMoveObserver

        public final void setMoveObserver​(MoveObserver moveObserver)