public abstract class ViewProperties extends java.lang.Object implements IView
Modifier and Type | Class and Description |
---|---|
protected class |
ViewProperties.Property
A class for properties displayed in the tree view.
|
Modifier and Type | Field and Description |
---|---|
protected java.text.NumberFormat |
format
Internal stuff.
|
protected Model |
model
Internal stuff.
|
protected org.eclipse.swt.widgets.Composite |
root
Internal stuff.
|
protected java.util.List<ViewProperties.Property> |
roots
Internal stuff.
|
protected org.eclipse.jface.viewers.TreeViewer |
treeViewer
Internal stuff.
|
Modifier | Constructor and Description |
---|---|
protected |
ViewProperties(org.eclipse.swt.widgets.Composite parent,
Controller controller,
ModelEvent.ModelPart target,
ModelEvent.ModelPart reset)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected double |
asRelativeValue(InformationLoss<?> infoLoss,
ARXResult result)
Converts an information loss into a relative value in percent
TODO: Code duplicate from NodePropertiesView.
|
void |
dispose()
Disposes the view.
|
protected AnalysisContext |
getContext()
Returns the context.
|
void |
reset()
Resets the view.
|
protected abstract void |
update()
Implement this to update the view.
|
void |
update(ModelEvent event)
Updates the view.
|
protected final java.util.List<ViewProperties.Property> roots
protected final org.eclipse.swt.widgets.Composite root
protected final java.text.NumberFormat format
protected Model model
protected org.eclipse.jface.viewers.TreeViewer treeViewer
protected ViewProperties(org.eclipse.swt.widgets.Composite parent, Controller controller, ModelEvent.ModelPart target, ModelEvent.ModelPart reset)
parent
- controller
- target
- reset
- public void dispose()
IView
public void reset()
IView
public void update(ModelEvent event)
IView
protected double asRelativeValue(InformationLoss<?> infoLoss, ARXResult result)
infoLoss
- result
- protected AnalysisContext getContext()
protected abstract void update()