Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import de.cau.cs.kieler.klighd.krendering.extensions.KNodeExtensions
import de.cau.cs.kieler.klighd.krendering.extensions.KPolylineExtensions
import de.cau.cs.kieler.klighd.krendering.extensions.KRenderingExtensions
import de.cau.cs.kieler.klighd.util.KlighdProperties
import de.cau.cs.kieler.klighd.util.KlighdTags
import de.cau.cs.kieler.sccharts.ControlflowRegion
import de.cau.cs.kieler.sccharts.extensions.TextFormat
import java.util.List
Expand Down Expand Up @@ -172,14 +173,14 @@ class ControlflowRegionStyles {
selectionTextUnderline = Underline.NONE // prevents default selection style
val size = estimateTextSize;
setPointPlacementData(LEFT, absLeftOffset, 0, TOP, 1, 0, H_LEFT, V_TOP, 0, 0, size.width + 5, size.height)
setProperty(KlighdProperties.IS_NODE_TITLE, true)
getProperty(KlighdProperties.SEMANTIC_FILTER_TAGS).add(KlighdTags.IS_NODE_TITLE)
]
} else {
container.addKeywordLabel(label, 0) => [
foreground = REGION_LABEL.color
fontSize = 10
setPointPlacementData(LEFT, absLeftOffset, 0, TOP, 1, 0, H_LEFT, V_TOP, 0, 0, 0, 0)
setProperty(KlighdProperties.IS_NODE_TITLE, true)
getProperty(KlighdProperties.SEMANTIC_FILTER_TAGS).add(KlighdTags.IS_NODE_TITLE)
(children.last as KContainerRendering) => [ // Just for spacing at the end
val grid = it?.getChildPlacement()
if (grid instanceof KGridPlacement) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ import static de.cau.cs.kieler.sccharts.ui.synthesis.styles.ColorStore.Color.*

import static extension de.cau.cs.kieler.klighd.syntheses.DiagramSyntheses.*
import static extension org.eclipse.emf.ecore.util.EcoreUtil.*
import de.cau.cs.kieler.klighd.util.KlighdTags

/**
* Styles for {@link State}.
Expand Down Expand Up @@ -240,7 +241,7 @@ class StateStyles {
fontSize = stateLabelTextSize
suppressSelectability
selectionTextUnderline = Underline.NONE // prevents default selection style
// setProperty(KlighdProperties.IS_NODE_TITLE, true)
// getProperty(KlighdProperties.SEMANTIC_FILTER_TAGS).add(KlighdTags.IS_NODE_TITLE)
]
}

Expand All @@ -259,7 +260,7 @@ class StateStyles {
]

children.head => [
setProperty(KlighdProperties.IS_NODE_TITLE, true)
getProperty(KlighdProperties.SEMANTIC_FILTER_TAGS).add(KlighdTags.IS_NODE_TITLE)
setPointPlacementData(createKPosition(LEFT, 0, 0.5f, TOP, 0, 0), H_CENTRAL, V_TOP, 0, 0, 0, 0);
]
]
Expand Down
Loading