|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Represents an element that occupies a location on a graphical surface.
| Method Summary | |
void |
addPositionListener(PositionListener pl)
Registers an object to listen for position changes by this element. |
int |
getOrder()
Returns the z-coordinate of the element. |
int |
getX()
Returns the x-coordinate of the element. |
int |
getY()
Returns the y-coordinate of the element. |
boolean |
isSetPosition()
Indicates whether this element has explicitly been given an x and y coordinate position. |
void |
removePositionListener(PositionListener pl)
Un-registers an object currently listening for position change events. |
void |
setOrder(int value)
Changes the value of the order attribute and notifies the position
change listeners. |
void |
setX(int value)
Changes the x-coordinate position and causes any position listeners to be notified. |
void |
setY(int value)
Changes the y-coordinate position and causes any position listeners to be notified. |
void |
unsetX()
Clears the current setting for the x attribute. |
void |
unsetY()
Clears the current setting for the y attribute. |
| Method Detail |
public int getX()
x-coordinate of the element.
x-coordinate of the element.public int getY()
y-coordinate of the element.
y-coordinate of the element.public int getOrder()
z-coordinate of the element.
z-coordinate of the element.public void setX(int value)
value - The new x-coordinate position of this element.public void setY(int value)
value - The new y-coordinate position of this element.public void setOrder(int value)
order attribute and notifies the position
change listeners.
value - The new value for the z-order of this element.public void addPositionListener(PositionListener pl)
pl - The object to register for position change event notification.public void removePositionListener(PositionListener pl)
pl - The object to remove from the notification list for position changes.public boolean isSetPosition()
true if both the x and y coordinate
attributes have been set; false otherwise.public void unsetX()
x attribute.
public void unsetY()
y attribute.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||