|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.contribution.visualiser.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).
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. |
void |
addMarkupKind(IMarkupKind kind)
Add a markup kind |
void |
deactivate()
Deactivate the provider |
java.util.SortedSet |
getAllMarkupKinds()
Get all the markup kinds. |
org.eclipse.swt.graphics.Color |
getColorFor(IMarkupKind kind)
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. |
protected org.eclipse.swt.graphics.Color |
getNextColourFor(java.lang.String p)
Get the next assignable colour and assign it to the String argument. |
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 |
resetMarkupsAndKinds()
Empty the data structures that contain the stripe and kind information |
void |
setColorFor(IMarkupKind kind,
org.eclipse.swt.graphics.Color color)
Set the color for a kind. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleMarkupProvider()
Method Detail |
public void initialise()
initialise
in interface IMarkupProvider
public java.util.List getMemberMarkups(IMember member)
getMemberMarkups
in interface IMarkupProvider
public void addMarkup(java.lang.String membername, Stripe s)
membername
- s
- public void addMarkupKind(IMarkupKind kind)
kind
- public void processMarkups()
public java.util.List getGroupMarkups(IGroup group)
getGroupMarkups
in interface IMarkupProvider
public java.util.SortedSet getAllMarkupKinds()
getAllMarkupKinds
in interface IMarkupProvider
public org.eclipse.swt.graphics.Color getColorFor(IMarkupKind kind)
getColorFor
in interface IMarkupProvider
kind
- - the kind
public void setColorFor(IMarkupKind kind, org.eclipse.swt.graphics.Color color)
setColorFor
in interface IMarkupProvider
kind
- - the kindcolor
- - the Colorprotected org.eclipse.swt.graphics.Color getNextColourFor(java.lang.String p)
p
- - the kind
public void resetMarkupsAndKinds()
public void resetColours()
public boolean processMouseclick(IMember member, Stripe stripe, int buttonClicked)
processMouseclick
in interface IMarkupProvider
IMarkupProvider.processMouseclick(IMember, Stripe, int)
public void activate()
activate
in interface IMarkupProvider
public void deactivate()
deactivate
in interface IMarkupProvider
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |