|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.common.perspective.LocationHistory
public class LocationHistory
An ordered map of ExtendedMode
s and Location
s, ordered by
the time when the location was recorded.
Constructor Summary | |
---|---|
LocationHistory()
|
Method Summary | |
---|---|
void |
add(ExtendedMode mode,
Location location)
Sets the location that is to be used for mode . |
Location |
get(ExtendedMode mode)
Gets the location that is to be used for mode . |
ExtendedMode |
getLastMode()
Gets the newest entry of this history. |
Map<Path,Location> |
getLocations()
Gets all the locations that are stored in this history. |
ExtendedMode |
getMode(int index)
Gets the index 'th entry of this history, where an
index of 0 represents the oldest entry. |
List<Path> |
getOrder()
Gets all the identifiers of the ordered ExtendedMode s. |
int |
getSize()
Gets the number of entries this history has. |
void |
insert(int index,
ExtendedMode mode,
Location location)
Sets the location that is to be used for mode . |
void |
remove(ExtendedMode mode)
Removes any entries related to mode . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocationHistory()
Method Detail |
---|
public void add(ExtendedMode mode, Location location)
location
that is to be used for mode
.
mode
- the mode of the locationlocation
- the location to storepublic void insert(int index, ExtendedMode mode, Location location)
location
that is to be used for mode
.
index
- the location of the mode, where 0 represents the oldest entrymode
- the mode of the locationlocation
- the location to storepublic Location get(ExtendedMode mode)
mode
.
mode
- the mode whose location is searched
null
if not foundpublic void remove(ExtendedMode mode)
mode
.
mode
- the mode to removepublic int getSize()
public ExtendedMode getMode(int index)
index
'th entry of this history, where an
index of 0 represents the oldest entry.
index
- the location of the entry
index
public ExtendedMode getLastMode()
null
public List<Path> getOrder()
ExtendedMode
s.
public Map<Path,Location> getLocations()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |