|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectmetricsOverlay.augmentationStrategies.AugmentationStrategy
public abstract class AugmentationStrategy
This abstract class provides the required methods for a display strategy.
| Constructor Summary | |
|---|---|
AugmentationStrategy()
|
|
| Method Summary | |
|---|---|
abstract void |
dispose()
Subclasses should override this method |
boolean |
isActive()
Returns whether the display strategy is active or not. |
static org.eclipse.swt.graphics.Color |
parseColor(java.lang.String val)
This method takes in a string and parses it into an SWT compatible colour. |
void |
setActive(boolean active)
Sets this display strategy as active. |
void |
update(MetricFile mf,
Mapping mm)
This class updates the display strategy, it should be overriden by subclasses. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AugmentationStrategy()
| Method Detail |
|---|
public void update(MetricFile mf,
Mapping mm)
mf - the metric file describing the current file and the metrics to
be applied.mm - the name of the current mapping this display strategy belongs
to.public void setActive(boolean active)
active - if true, the display strategy is set to active, else inactive.public boolean isActive()
public static org.eclipse.swt.graphics.Color parseColor(java.lang.String val)
Color {245, 211, 1}. This means that this method is able to
parse the toString method of
org.eclipse.swt.graphics.Color
val - the entered string
nullpublic abstract void dispose()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||