com.allen_sauer.gwt.dnd.client.util
Class CoordinateLocation

java.lang.Object
  extended by com.allen_sauer.gwt.dnd.client.util.AbstractLocation
      extended by com.allen_sauer.gwt.dnd.client.util.CoordinateLocation
All Implemented Interfaces:
Location

public class CoordinateLocation
extends AbstractLocation

A position represented by a left (x) and top (y) coordinate.


Constructor Summary
CoordinateLocation(int left, int top)
           
 
Method Summary
 int getLeft()
          Get x coordinate.
 int getTop()
          Get the y coordinate.
 
Methods inherited from class com.allen_sauer.gwt.dnd.client.util.AbstractLocation
newLocationSnappedToGrid, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CoordinateLocation

public CoordinateLocation(int left,
                          int top)
Method Detail

getLeft

public int getLeft()
Description copied from interface: Location
Get x coordinate.

Returns:
the left offset in pixels

getTop

public int getTop()
Description copied from interface: Location
Get the y coordinate.

Returns:
the top offset in pixels


Copyright © 2011 Sage Software, Inc. All rights reserved.