Klasse ViewSolutionSpace
java.lang.Object
org.deidentifier.arx.gui.view.impl.explore.ViewSolutionSpace
- Alle implementierten Schnittstellen:
IView
- Bekannte direkte Unterklassen:
ViewLattice,ViewList,ViewTiles
This class provides an abstract base for views that display parts of the solution space
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungViewSolutionSpace(org.eclipse.swt.widgets.Composite parent, Controller controller) Constructor -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected abstract voidgray.dispose(); Action to redrawprotected voidAction: select nodeprotected voidactionShowMenu(int x, int y) Action show menuprotected doubleasRelativeValue(int generalization, int max) Converts a generalization to a relative value.protected doubleasRelativeValue(InformationLoss<?> infoLoss) Converts an score into a relative value in percent.voiddispose()Disposes the view.protected abstract voideventFilterChanged(ARXResult result, ModelNodeFilter filter) Event: filter changedprotected abstract voidEvent: model changedprotected abstract voidEvent: node selectedprotected abstract voideventResultChanged(ARXResult result) Event: result changedprotected ControllerReturns the controllerprotected org.eclipse.swt.graphics.ColorReturns the inner color.protected ModelgetModel()Returns the modelprotected org.eclipse.swt.graphics.ColorReturns the outer color.protected intgetOuterStrokeWidth(ARXLattice.ARXNode node, int width) Returns the outer stroke width.protected org.eclipse.swt.widgets.CompositeReturns the primary compositeprotected ARXLattice.ARXNodeReturns the selected nodeprotected de.linearbits.swt.tiles.DecoratorString<ARXLattice.ARXNode> Returns the tool tip decoratorprotected org.eclipse.swt.graphics.ColorReturns the color according to a nodes utilityvoidreset()Resets the view.protected voidShows the primary compositeprotected voidshowSecondaryComposite(int num, int max) Shows the secondary compositeprotected StringTrims the label to a predefined lengthvoidupdate(ModelEvent event) Updates the view.
-
Konstruktordetails
-
ViewSolutionSpace
Constructor- Parameter:
parent-controller-
-
-
Methodendetails
-
dispose
public void dispose()Beschreibung aus Schnittstelle kopiert:IViewDisposes the view. -
reset
public void reset()Resets the view. -
update
Beschreibung aus Schnittstelle kopiert:IViewUpdates the view. -
actionRedraw
protected abstract void actionRedraw()gray.dispose(); Action to redraw -
actionSelectNode
Action: select node- Parameter:
node-
-
actionShowMenu
protected void actionShowMenu(int x, int y) Action show menu- Parameter:
x-y-
-
asRelativeValue
Converts an score into a relative value in percent.- Parameter:
infoLoss-- Gibt zurück:
-
asRelativeValue
protected double asRelativeValue(int generalization, int max) Converts a generalization to a relative value.- Parameter:
generalization-max-- Gibt zurück:
-
eventFilterChanged
Event: filter changed- Parameter:
result-filter-
-
eventModelChanged
protected abstract void eventModelChanged()Event: model changed -
eventNodeSelected
protected abstract void eventNodeSelected()Event: node selected -
eventResultChanged
Event: result changed- Parameter:
result-
-
getController
Returns the controller- Gibt zurück:
-
getInnerColor
Returns the inner color.- Parameter:
node-- Gibt zurück:
-
getModel
Returns the model- Gibt zurück:
-
getOuterColor
Returns the outer color.- Parameter:
node-- Gibt zurück:
-
getOuterStrokeWidth
Returns the outer stroke width.- Parameter:
node-width-- Gibt zurück:
-
getPrimaryComposite
protected org.eclipse.swt.widgets.Composite getPrimaryComposite()Returns the primary composite- Gibt zurück:
-
getSelectedNode
Returns the selected node- Gibt zurück:
-
getTooltipDecorator
Returns the tool tip decorator- Gibt zurück:
-
getUtilityColor
Returns the color according to a nodes utility- Parameter:
node- The node- Gibt zurück:
-
showPrimaryComposite
protected void showPrimaryComposite()Shows the primary composite -
showSecondaryComposite
protected void showSecondaryComposite(int num, int max) Shows the secondary composite -
trimLabel
Trims the label to a predefined length- Parameter:
label-- Gibt zurück:
-