com.mtp.model
Class PointModel

java.lang.Object
  |
  +--com.mtp.model.PointModel

public class PointModel
extends Object

Model for a Point.

Author:
Matthew Pekar

Field Summary
protected  Listeners listeners
           
protected  DefaultIntegerModel x
           
protected  DefaultIntegerModel y
           
 
Constructor Summary
PointModel()
           
PointModel(int xVal, int yVal)
           
 
Method Summary
 void addListener(PointModelListener l)
           
 boolean equals(Object o)
           
protected  void fireChange()
           
 Point getValue()
           
 int getX()
           
 DefaultIntegerModel getXModel()
           
 int getY()
           
 DefaultIntegerModel getYModel()
           
 void removeListener(PointModelListener l)
           
 void setX(int val)
           
 void setY(int val)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listeners

protected Listeners listeners

x

protected DefaultIntegerModel x

y

protected DefaultIntegerModel y
Constructor Detail

PointModel

public PointModel()

PointModel

public PointModel(int xVal,
                  int yVal)
Method Detail

equals

public boolean equals(Object o)
Overrides:
equals in class Object

getXModel

public DefaultIntegerModel getXModel()

getYModel

public DefaultIntegerModel getYModel()

getX

public int getX()

getY

public int getY()

setX

public void setX(int val)

setY

public void setY(int val)

getValue

public Point getValue()

addListener

public void addListener(PointModelListener l)

removeListener

public void removeListener(PointModelListener l)

fireChange

protected void fireChange()


Copyright © 2002 Matthew Pekar. All Rights Reserved.