public abstract class ViewSolutionSpace extends java.lang.Object implements IView
Constructor and Description |
---|
ViewSolutionSpace(org.eclipse.swt.widgets.Composite parent,
Controller controller)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
actionRedraw()
gray.dispose();
Action to redraw
|
protected void |
actionSelectNode(ARXLattice.ARXNode node)
Action: select node
|
protected void |
actionShowMenu(int x,
int y)
Action show menu
|
protected double |
asRelativeValue(InformationLoss<?> infoLoss)
Converts an information loss into a relative value in percent.
|
protected double |
asRelativeValue(int generalization,
int max)
Converts a generalization to a relative value.
|
void |
dispose()
Disposes the view.
|
protected abstract void |
eventFilterChanged(ARXResult result,
ModelNodeFilter filter)
Event: filter changed
|
protected abstract void |
eventModelChanged()
Event: model changed
|
protected abstract void |
eventNodeSelected()
Event: node selected
|
protected abstract void |
eventResultChanged(ARXResult result)
Event: result changed
|
protected Controller |
getController()
Returns the controller
|
protected java.text.NumberFormat |
getFormat()
Returns the number formatter
|
protected org.eclipse.swt.graphics.Color |
getInnerColor(ARXLattice.ARXNode node)
Returns the inner color.
|
protected Model |
getModel()
Returns the model
|
protected org.eclipse.swt.graphics.Color |
getOuterColor(ARXLattice.ARXNode node)
Returns the outer color.
|
protected int |
getOuterStrokeWidth(ARXLattice.ARXNode node,
int width)
Returns the outer stroke width.
|
protected org.eclipse.swt.widgets.Composite |
getPrimaryComposite()
Returns the primary composite
|
protected ARXLattice.ARXNode |
getSelectedNode()
Returns the selected node
|
protected de.linearbits.swt.tiles.DecoratorString<ARXLattice.ARXNode> |
getTooltipDecorator()
Returns the tool tip decorator
|
protected org.eclipse.swt.graphics.Color |
getUtilityColor(ARXLattice.ARXNode node)
Returns the color according to a nodes utility
|
void |
reset()
Resets the view.
|
protected void |
showPrimaryComposite()
Shows the primary composite
|
protected void |
showSecondaryComposite(int num,
int max)
Shows the secondary composite
|
protected java.lang.String |
trimLabel(java.lang.String label)
Trims the label to a predefined length
|
void |
update(ModelEvent event)
Updates the view.
|
public ViewSolutionSpace(org.eclipse.swt.widgets.Composite parent, Controller controller)
parent
- controller
- public void dispose()
IView
public void update(ModelEvent event)
IView
protected abstract void actionRedraw()
protected void actionSelectNode(ARXLattice.ARXNode node)
node
- protected void actionShowMenu(int x, int y)
x
- y
- protected double asRelativeValue(InformationLoss<?> infoLoss)
infoLoss
- protected double asRelativeValue(int generalization, int max)
generalization
- max
- protected abstract void eventFilterChanged(ARXResult result, ModelNodeFilter filter)
result
- filter
- protected abstract void eventModelChanged()
protected abstract void eventNodeSelected()
protected abstract void eventResultChanged(ARXResult result)
result
- protected Controller getController()
protected java.text.NumberFormat getFormat()
protected org.eclipse.swt.graphics.Color getInnerColor(ARXLattice.ARXNode node)
node
- protected Model getModel()
protected org.eclipse.swt.graphics.Color getOuterColor(ARXLattice.ARXNode node)
node
- protected int getOuterStrokeWidth(ARXLattice.ARXNode node, int width)
node
- width
- protected org.eclipse.swt.widgets.Composite getPrimaryComposite()
protected ARXLattice.ARXNode getSelectedNode()
protected de.linearbits.swt.tiles.DecoratorString<ARXLattice.ARXNode> getTooltipDecorator()
protected org.eclipse.swt.graphics.Color getUtilityColor(ARXLattice.ARXNode node)
node
- The nodeprotected void showPrimaryComposite()
protected void showSecondaryComposite(int num, int max)
protected java.lang.String trimLabel(java.lang.String label)
label
-