|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.contribution.visualiser.interfaces.simpleImpl.SimpleMarkupProvider
Example implementation of a markup provider. Loads its information about the markups from a file. Manages the list of markups in a hashtable - the hashtable maps the member ID to a list of 'Stripe instances' (markups).
| Field Summary | |
java.util.SortedSet |
markupKinds
|
java.util.Hashtable |
markups
|
| Constructor Summary | |
SimpleMarkupProvider()
|
|
| Method Summary | |
void |
addMarkup(java.lang.String membername,
Stripe s)
Add a Stripe to the member with the given name. |
boolean |
changeMode()
Change the markup provider mode. |
java.util.SortedSet |
getAllMarkupKinds()
Get all the markup kinds. |
Color |
getColorFor(java.lang.String id)
Get the Color assigned to the given kind. |
Color |
getColorFor(java.lang.String ikey,
boolean allocateIfNotFound)
Get the Color assigned to the given kind, or if the boolean argument is true and a Color is not found, assign a new one, else return null. |
java.util.List |
getGroupMarkups(IGroup group)
Get the markups for a group. |
java.util.List |
getMemberMarkups(IMember member)
Get a List of Stripes for the given member, which are its markups. |
boolean |
hasMultipleModes()
Ask if the markup provider has multiple modes. |
void |
initialise()
Initialise the markup provider. |
void |
processMarkups()
Process all the Stripes that have been added to deal with the overlapping cases |
boolean |
processMouseclick(IMember member,
Stripe stripe,
java.lang.String exactKind,
int buttonClicked)
Process a mouse click on a stripe. |
void |
setColorFor(java.lang.String string,
Color color)
Set the colour for a given kind. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public java.util.Hashtable markups
public java.util.SortedSet markupKinds
| Constructor Detail |
public SimpleMarkupProvider()
| Method Detail |
public void initialise()
initialise in interface IMarkupProviderpublic boolean changeMode()
changeMode in interface IMarkupProviderpublic boolean hasMultipleModes()
hasMultipleModes in interface IMarkupProviderpublic java.util.List getMemberMarkups(IMember member)
getMemberMarkups in interface IMarkupProvider
public void addMarkup(java.lang.String membername,
Stripe s)
membername - s - public void processMarkups()
public java.util.List getGroupMarkups(IGroup group)
getGroupMarkups in interface IMarkupProviderpublic java.util.SortedSet getAllMarkupKinds()
getAllMarkupKinds in interface IMarkupProviderpublic Color getColorFor(java.lang.String id)
getColorFor in interface IMarkupProvider
public Color getColorFor(java.lang.String ikey,
boolean allocateIfNotFound)
ikey - allocateIfNotFound -
public void setColorFor(java.lang.String string,
Color color)
setColorFor in interface IMarkupProvider
public boolean processMouseclick(IMember member,
Stripe stripe,
java.lang.String exactKind,
int buttonClicked)
processMouseclick in interface IMarkupProviderorg.eclipse.contribution.visualiser.interfaces.IMarkupProvider#processMouseclick(java.lang.String, org.eclipse.contribution.visualiser.core.Stripe, int)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||