Class DiagramSideBar
java.lang.Object
de.cau.cs.kieler.klighd.ui.internal.options.DiagramSideBar
Builds up the diagram side bar containing the controls for configuring diagram synthesis and
layout options.
- Author:
- chsch
-
Method Summary
Modifier and TypeMethodDescriptionstatic DiagramSideBarcreateSideBar(org.eclipse.swt.widgets.Composite parent, org.eclipse.swt.widgets.Composite diagramContainer, ViewContext viewContext) Creates and attaches a side bar to the givenparentComposite.
The givendiagramContaineris thereby integrated in the tree of widgets.voiddispose()Disposes theResources.org.eclipse.elk.core.LayoutConfiguratorProvides theLayoutConfiguratorwith layout settings fromthisside bar.voidresetLayoutOptionsToDefaults(boolean doLayout) Resets the layout option settings configured via the sidebar's controls.voidupdateOptions(org.eclipse.swt.widgets.Composite diagramComposite, ViewContext theViewContext, boolean fitSpace) Update the options to be displayed in the options pane.
-
Method Details
-
getLayoutConfig
public org.eclipse.elk.core.LayoutConfigurator getLayoutConfig()Provides theLayoutConfiguratorwith layout settings fromthisside bar.- Returns:
- the employed
LayoutConfigurator
-
createSideBar
public static DiagramSideBar createSideBar(org.eclipse.swt.widgets.Composite parent, org.eclipse.swt.widgets.Composite diagramContainer, ViewContext viewContext) Creates and attaches a side bar to the givenparentComposite.
The givendiagramContaineris thereby integrated in the tree of widgets.- Parameters:
parent- the parentCompositeto attach the side bar todiagramContainer- theCompositeaccommodating the diagram (later on)viewContext- theViewContextto get the configured option entries from- Returns:
- an instance of
DiagramSideBarallowing to access the employedLayoutConfigurator
-
updateOptions
public void updateOptions(org.eclipse.swt.widgets.Composite diagramComposite, ViewContext theViewContext, boolean fitSpace) Update the options to be displayed in the options pane.- Parameters:
diagramComposite- theCompositethe diagram canvas is contained intheViewContext- the currentViewContextfitSpace- true if the diagram shall fit the available space
-
resetLayoutOptionsToDefaults
public void resetLayoutOptionsToDefaults(boolean doLayout) Resets the layout option settings configured via the sidebar's controls.- Parameters:
doLayout- iftruea subsequent layout run will be triggered
-
dispose
public void dispose()Disposes theResources.
-