Interface Positioned

  • All Superinterfaces:
    java.rmi.Remote, TptRemote
    All Known Subinterfaces:
    Final, Junction, Testlet, TextArea

    public interface Positioned
    extends TptRemote
    The class represents an object with a position (x- and y- coordinate) in the diagram like a state or a junction.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.awt.Point getPosition()
      Return the current position of the object as a two-dimensional Point.
      void setPosition​(int x, int y)
      Set the position of a object.
      void setPosition​(java.awt.Point p)
      Set the position of a object.
    • Method Detail

      • getPosition

        java.awt.Point getPosition()
                            throws java.rmi.RemoteException
        Return the current position of the object as a two-dimensional Point.
        Returns:
        A point representing x-and y- coordinate of this object.
        Throws:
        java.rmi.RemoteException - remote communication problem
      • setPosition

        void setPosition​(java.awt.Point p)
                  throws java.rmi.RemoteException
        Set the position of a object.
        Parameters:
        p - A Point representing the desired position of the object in the two-dimensional drawing area.
        Throws:
        java.rmi.RemoteException - remote communication problem
      • setPosition

        void setPosition​(int x,
                         int y)
                  throws java.rmi.RemoteException
        Set the position of a object.
        Parameters:
        x - the x value of the desired position of the object in the two-dimensional drawing area.
        y - the y value of the desired position of the object in the two-dimensional drawing area.
        Throws:
        java.rmi.RemoteException - remote communication problem