wheelsunh
Interface Locatable

All Known Implementing Classes:
AbstractShape, ConversationBubble, Ellipse, FilterInputBox, Image, InputBox, IntInputBox, Line, Rectangle, RectangularShape, RoundedRectangle, Shape, ShapeGroup, TextBox, TextInputBox

public interface Locatable

Interface for objects that can have their location set and queried.


Method Summary
 java.awt.Point getLocation()
          Returns the object's location.
 int getXLocation()
          Returns the object's x location.
 int getYLocation()
          Returns the object's y location.
 void setLocation(int x, int y)
          Set object's location to given coordinates.
 void setLocation(java.awt.Point p)
          Set object's location to given point.
 

Method Detail

setLocation

void setLocation(int x,
                 int y)
Set object's location to given coordinates.


setLocation

void setLocation(java.awt.Point p)
Set object's location to given point.


getLocation

java.awt.Point getLocation()
Returns the object's location.


getXLocation

int getXLocation()
Returns the object's x location.


getYLocation

int getYLocation()
Returns the object's y location.