Interface Model

All Known Subinterfaces:
ConnectionModel, ItemModel<M>
All Known Implementing Classes:
AbstractModel

public interface Model
Contract for top level functionality for all model elements.
Author:
Daniel Sagenschneider
  • Method Details

    • getX

      int getX()
      Obtains the X co-ordinate for the model.
      Returns:
      X co-ordinate for the model.
    • setX

      void setX(int x)
      Specifies the X co-ordinate for the model.
      Parameters:
      x - X co-ordinate for the model.
    • getY

      int getY()
      Obtains the Y co-ordinate for the model.
      Returns:
      Y co-ordinate for the model.
    • setY

      void setY(int y)
      Specifies the Y co-ordinate for the model.
      Parameters:
      y - Y co-ordinate for the model.
    • addPropertyChangeListener

      void addPropertyChangeListener(PropertyChangeListener listener)
      Adds a PropertyChangeListener to this model element.
      Parameters:
      listener - PropertyChangeListener to this model element.
    • removePropertyChangeListener

      void removePropertyChangeListener(PropertyChangeListener listener)
      Removes a PropertyChangeListener from this model element.
      Parameters:
      listener - PropertyChangeListener.