|
|||||||||
Home >> All >> javax >> ide >> menu >> [ spi overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |
javax.ide.menu.spi
Class PositionMap

java.lang.Objectjavax.ide.menu.spi.PositionMap
- final class PositionMap
- extends java.lang.Object
A map that tracks Positionable items. Provides utilities for getting the items in their "resolved" order.
Nested Class Summary | |
private class |
PositionMap.Vertex
A vertex in the graph. |
Field Summary | |
private PositionMap.Vertex |
_currentAncestor
|
private java.util.Map |
_idsToVertices
|
private java.util.List |
_sortedList
|
private static java.lang.Object |
COLOR_VISITED
|
private static java.lang.Object |
COLOR_VISITING
|
Constructor Summary | |
(package private) |
PositionMap()
|
Method Summary | |
void |
add(Positionable p)
Adds a positionable to the map. |
private void |
addToGraph(PositionMap.Vertex thisVertex)
|
Positionable |
get(java.lang.String id)
Get a positionable by its id. |
java.util.List |
getSortedItems()
Gets items in the correct, sorted order. |
private java.util.List |
sort()
Build a sorted list of all items. |
private void |
visit(java.util.Map colorings,
PositionMap.Vertex vertex,
java.util.List topo)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
_idsToVertices
private java.util.Map _idsToVertices
_currentAncestor
private PositionMap.Vertex _currentAncestor
_sortedList
private java.util.List _sortedList
COLOR_VISITING
private static final java.lang.Object COLOR_VISITING
COLOR_VISITED
private static final java.lang.Object COLOR_VISITED
Constructor Detail |
PositionMap
PositionMap()
Method Detail |
add
public void add(Positionable p)
- Adds a positionable to the map.
addToGraph
private void addToGraph(PositionMap.Vertex thisVertex)
getSortedItems
public java.util.List getSortedItems()
- Gets items in the correct, sorted order.
get
public Positionable get(java.lang.String id)
- Get a positionable by its id.
sort
private java.util.List sort()
- Build a sorted list of all items.
visit
private void visit(java.util.Map colorings, PositionMap.Vertex vertex, java.util.List topo)
|
|||||||||
Home >> All >> javax >> ide >> menu >> [ spi overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |