public interface Locatable<T extends NodeLocation>
Modifier and Type | Method and Description |
---|---|
boolean |
isMoved(T loc)
Determines if the location of this and a node location are different
within a structure.
|
boolean |
isRepositioned(T loc)
Determines if the location of this and a node location would require
animation if they were two locations of a single node, assuming
isMoved(NodeLocation) returned false for the other node. |
boolean isMoved(T loc)
loc
- the node location to be compared.loc
and the location of this item are
different locations within a structure, false if they are in different
structures or are at the same location in the same structure.boolean isRepositioned(T loc)
isMoved(NodeLocation)
returned false for the other node.loc
- the node location to be compared.loc
and the
location of this, animation would be required, assuming that they are the
same location within a structure. For structures where structure location
defines screen position (linked lists, linked hashtables), this can just
return false.