|
|||||||||||
| 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 |
activate()
Activate the provider |
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. |
void |
deactivate()
Deactivate the provider |
java.util.SortedSet |
getAllMarkupKinds()
Get all the markup kinds. |
org.eclipse.swt.graphics.Color |
getColorFor(IMarkupKind id)
Get the colour for a given kind |
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,
int buttonClicked)
Process a mouse click on a stripe. |
void |
resetColours()
Reset the color memory |
void |
setColorFor(IMarkupKind kind,
org.eclipse.swt.graphics.Color color)
Set the color for a 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 org.eclipse.swt.graphics.Color getColorFor(IMarkupKind id)
getColorFor in interface IMarkupProviderid - - the kind
public void setColorFor(IMarkupKind kind,
org.eclipse.swt.graphics.Color color)
setColorFor in interface IMarkupProvidercolor - - the Colorpublic void resetColours()
public boolean processMouseclick(IMember member,
Stripe stripe,
int buttonClicked)
processMouseclick in interface IMarkupProviderorg.eclipse.contribution.visualiser.interfaces.IMarkupProvider#processMouseclick(IMember, Stripe, String, int)public void activate()
activate in interface IMarkupProviderpublic void deactivate()
deactivate in interface IMarkupProvider
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||