|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectmetricsOverlay.model.augmentation.Augmentation
public abstract class Augmentation
This class provides a representation of a display.
Constructor Summary | |
---|---|
Augmentation()
|
|
Augmentation(java.lang.String augName)
Main constructor |
Method Summary | |
---|---|
void |
addColor(org.eclipse.swt.graphics.Color color)
|
boolean |
canChangeEditableStatus()
|
boolean |
canEdit()
|
int |
compareTo(Augmentation o)
|
abstract void |
disable()
|
double |
getAugMax()
|
int |
getAugMin()
|
IColorManager |
getCManager()
|
java.util.List<org.eclipse.swt.graphics.Color> |
getColors()
|
int |
getImportance()
|
java.lang.String |
getName()
The name of this display |
java.lang.String |
getType()
|
boolean |
isAnnotated()
|
boolean |
isDiscrete()
|
void |
setAnnotations(boolean annotations)
|
void |
setColors(java.util.List<org.eclipse.swt.graphics.Color> colors)
|
void |
setDiscrete(boolean discrete)
|
void |
setEditable(boolean editable)
If allowed, this sets the new editable status. |
void |
setImportance(int importance)
|
void |
setName(java.lang.String name)
This method sets the name of a nameable object. |
java.lang.String |
toString()
This to string method provides a textual representation of the object. |
abstract void |
update(MetricFile mf,
Mapping mm)
This method updates the display strategy, given an update in the eclipse java editor. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Augmentation()
public Augmentation(java.lang.String augName)
augName
- a name defining an implemented type of display
strategy. Existing strategies can be found in AugmentationName.Method Detail |
---|
public java.lang.String getName()
getName
in interface INameable
public java.lang.String getType()
getType
in interface ITyped
public java.lang.String toString()
toString
in class java.lang.Object
public abstract void disable()
public int compareTo(Augmentation o)
compareTo
in interface java.lang.Comparable<Augmentation>
public void addColor(org.eclipse.swt.graphics.Color color)
public void setName(java.lang.String name)
INameable
setName
in interface INameable
name
- the unique name to be set.public int getImportance()
public abstract void update(MetricFile mf, Mapping mm)
mf
- the updated metric file.mm
- the name of the mapping this display applies to.public boolean isAnnotated()
public boolean isDiscrete()
public void setImportance(int importance)
public void setDiscrete(boolean discrete)
public void setAnnotations(boolean annotations)
public double getAugMax()
public int getAugMin()
public IColorManager getCManager()
public java.util.List<org.eclipse.swt.graphics.Color> getColors()
public void setColors(java.util.List<org.eclipse.swt.graphics.Color> colors)
public boolean canChangeEditableStatus()
canChangeEditableStatus
in interface IEditable
public boolean canEdit()
canEdit
in interface IEditable
public void setEditable(boolean editable)
IEditable
setEditable
in interface IEditable
editable
- the new status.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |