com.dbarnes.sgme
Class MapWidget

java.lang.Object
  extended by com.dbarnes.sgme.MapWidget

public class MapWidget
extends java.lang.Object

Represents an instance of a Widget on a Map. More than one MapWidget may exist at any given set of coordinates.


Constructor Summary
MapWidget(int x, int y, Widget widget)
          Creates and initializes the MapWidget object.
 
Method Summary
 Widget getWidget()
          Returns the Widget object.
 int getX()
          Returns the x coordinate.
 int getY()
          Returns the y coordinate.
 void setWidget(Widget widget)
          Sets the Widget object.
 void setX(int x)
          Sets the x coordinate.
 void setY(int y)
          Sets the x coordinate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapWidget

public MapWidget(int x,
                 int y,
                 Widget widget)
Creates and initializes the MapWidget object.

Method Detail

getWidget

public Widget getWidget()
Returns the Widget object.


setWidget

public void setWidget(Widget widget)
Sets the Widget object.


getX

public int getX()
Returns the x coordinate.


setX

public void setX(int x)
Sets the x coordinate.


getY

public int getY()
Returns the y coordinate.


setY

public void setY(int y)
Sets the x coordinate.



Copyright 2006-2009 Don Barnes. All Rights Reserved.