|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The implementation of this interface is responsible for returning information about the colored stripes that appear on the resources in the visualiser view (The set of resources being determined by the implementation of the IContentProvider). A simple implementation is provided in SimpleMarkupProvider - this provides basic implementations of some of the common features of a markup provider 1) It manages the colors automatically. 2) It considers group markups to be collected markups for the members of the group. Important: The lists returned from get methods should be lists of Stripe instances.
Method Summary | |
boolean |
changeMode()
Markup providers can choose to have multiple stripe modes. |
java.util.SortedSet |
getAllMarkupKinds()
Return a list of all possible 'kinds' covered by all the stripes in the visualisation. |
Color |
getColorFor(java.lang.String kind)
Ask for a color for a given kind - if one is not currently allocated, it will be selected from those available. |
java.util.List |
getGroupMarkups(IGroup group)
Return a list of all stripes in effect on all members of the group. |
java.util.List |
getMemberMarkups(IMember member)
Return a list of all stripes in effect on this member. |
boolean |
hasMultipleModes()
If markup provider has multiple modes the visualiser enables its switch mode icon, otherwise it disables it. |
void |
initialise()
Called when the visualiser initializes and discovers a markup provider implementation. |
boolean |
processMouseclick(IMember member,
Stripe stripe,
java.lang.String exactKind,
int buttonClicked)
Called when the user clicks on a stripe on a member in the visualiser - the information passed is - The full name of the member, e.g. |
void |
setColorFor(java.lang.String kind,
Color color)
When the color picker is used in the visualiser menu to change the color for a particular kind, this call ensures the logic responsible for color management is told. |
Method Detail |
public void initialise()
public java.util.List getMemberMarkups(IMember member)
public java.util.List getGroupMarkups(IGroup group)
public java.util.SortedSet getAllMarkupKinds()
public void setColorFor(java.lang.String kind, Color color)
public Color getColorFor(java.lang.String kind)
public boolean changeMode()
public boolean hasMultipleModes()
public boolean processMouseclick(IMember member, Stripe stripe, java.lang.String exactKind, int buttonClicked)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |