sidnet.core.misc
Class LocationContext

java.lang.Object
  extended by sidnet.core.misc.LocationContext

public class LocationContext
extends java.lang.Object


Constructor Summary
LocationContext(int width, int height)
          Constructor.
LocationContext(LocationContext locationContext)
          Copy Constructor.
 
Method Summary
 Location2D adapt(Location2D thisLocation, LocationContext thisLocationContext)
          Converts a Location2D information represented relative to one locationContext to a new Location2D represented relative to "thisLocationContext" without having to convert it to NCS first
 int getHeight()
          Getter method.
 int getWidth()
          Getter method.
 void setHeight(int height)
          Setter method.
 void setWidth(int width)
          Setter method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocationContext

public LocationContext(int width,
                       int height)
Constructor. Creates a new instance of LocationContext


LocationContext

public LocationContext(LocationContext locationContext)
Copy Constructor. Creates a new instance of a LocationContext

Method Detail

setWidth

public void setWidth(int width)
Setter method. Sets the width of the panel/field


setHeight

public void setHeight(int height)
Setter method. Sets the height of the panel/field


getWidth

public int getWidth()
Getter method. Gets the width of the panel/field


getHeight

public int getHeight()
Getter method. Gets the height of the panel/field


adapt

public Location2D adapt(Location2D thisLocation,
                        LocationContext thisLocationContext)
Converts a Location2D information represented relative to one locationContext to a new Location2D represented relative to "thisLocationContext" without having to convert it to NCS first