Package net.officefloor.model
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 Summary
Modifier and TypeMethodDescriptionvoidAdds aPropertyChangeListenerto this model element.intgetX()Obtains the X co-ordinate for the model.intgetY()Obtains the Y co-ordinate for the model.voidRemoves aPropertyChangeListenerfrom this model element.voidsetX(int x) Specifies the X co-ordinate for the model.voidsetY(int y) Specifies the Y co-ordinate for the model.
-
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
Adds aPropertyChangeListenerto this model element.- Parameters:
listener-PropertyChangeListenerto this model element.
-
removePropertyChangeListener
Removes aPropertyChangeListenerfrom this model element.- Parameters:
listener-PropertyChangeListener.
-