|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The observable icon overlay cache associated with an overlay manager.
An IconOverlayCache stores overlay icons for any number of explorer views and provides accessor and mutator methods for the cache. Overlay clients are required to update the cache when the state of an element changes and fire change notification for repainting.
Since multiple simultaneous overlays cannot be supported by an explorer,
there must be a client consensus for controlled element types and a clear
separation of responsibility. Nodes requiring the use of overlay icons must
implement the oracle.ide.model.Subject
interface.
Method Summary | |
void |
fireOverlaysChanged()
Repaints all pending element overlay icons after cache updates. |
java.util.Set |
getElementKeySet()
Gets the current set of elements in the overlay cache. |
javax.swing.Icon |
getOverlayIcon(Element e)
Gets an overlay icon for the given element from the cache. |
boolean |
hasOverlayIcon(Element e)
Asks whether the given element has an overlay icon in the cache. |
void |
putOverlayIcon(Element e,
javax.swing.Icon icon)
Puts an overlay icon for the given element into the cache. |
void |
removeOverlayIcon(Element e)
Removes an overlay icon for the given element from the cache. |
Method Detail |
public java.util.Set getElementKeySet()
public void putOverlayIcon(Element e, javax.swing.Icon icon)
e
- the element.public javax.swing.Icon getOverlayIcon(Element e)
e
- the element.
public void removeOverlayIcon(Element e)
e
- the element.public boolean hasOverlayIcon(Element e)
e
- the element.
public void fireOverlaysChanged()
|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright ©1997, 2003, Oracle. All rights reserved.