lingua-franca 0.10.1
Lingua Franca code generator
Loading...
Searching...
No Matches
org.lflang.diagram.synthesis.styles.LinguaFrancaStyleExtensions Class Reference

Extension class that provides styles and coloring for the Lingua Franca diagram synthesis. More...

Inherits org.lflang.diagram.synthesis.AbstractSynthesisExtensions.

Public Member Functions

void addArrayDecorator (KEdge edge, Integer size)
KContainerRendering addCloudIcon (final KContainerRendering parent)
KRendering addCloudUploadIcon (KContainerRendering parent)
KRendering addFixedTailArrowDecorator (KPolyline pl)
void addPhysicalConnectionSquiggle (KEdge edge, Colors parentBackgroundColor, float relative)
 Draws the physical-connection "squiggle" directly on the edge's line as a decorator instead of as an inline center label.
void applyOnEdgeAbsentAfterStyle (KLabel label)
void applyOnEdgeDelayStyle (KLabel label)
void applyOnEdgeLabelStyle (KLabel label)
void applyOnEdgePysicalDelayStyle (KLabel label, Colors parentBackgroundColor)
void applyOnEdgePysicalStyle (KLabel label, Colors parentBackgroundColor)
void applyOnEdgeStyle (KLabel label)
KRendering boldLineSelectionStyle (KRendering r)
KText boldTextSelectionStyle (KText t)
void commentStyle (KRendering r)
void errorStyle (KRendering r)
boolean getBooleanValue (SynthesisOption option)
float getFloatValue (SynthesisOption option)
Object getObjectValue (final SynthesisOption option)
void maxWaitCommentStyle (KRendering r)
KRendering noSelectionStyle (KRendering r)
KRendering underlineSelectionStyle (KRendering r)

Static Public Attributes

static final Property< Colors > LABEL_PARENT_BACKGROUND
 INTERNAL property to communicate a node's background color.
static final SynthesisOption SELECTION_HIGHLIGHTING_COLOR
static final String SELECTION_HIGHLIGHTING_COLOR_LABEL = "Selection Coloring"

Package Functions

public< T extends EObject > T associateWith (T derived, Object source)
public< T extends AbstractDiagramSynthesis<?> > T getRootSynthesis ()

Detailed Description

Extension class that provides styles and coloring for the Lingua Franca diagram synthesis.

Author
Alexander Schulz-Rosengarten

Member Function Documentation

◆ addArrayDecorator()

void org.lflang.diagram.synthesis.styles.LinguaFrancaStyleExtensions.addArrayDecorator ( KEdge edge,
Integer size )

◆ addCloudIcon()

KContainerRendering org.lflang.diagram.synthesis.styles.LinguaFrancaStyleExtensions.addCloudIcon ( final KContainerRendering parent)

◆ addCloudUploadIcon()

KRendering org.lflang.diagram.synthesis.styles.LinguaFrancaStyleExtensions.addCloudUploadIcon ( KContainerRendering parent)

◆ addFixedTailArrowDecorator()

KRendering org.lflang.diagram.synthesis.styles.LinguaFrancaStyleExtensions.addFixedTailArrowDecorator ( KPolyline pl)

◆ addPhysicalConnectionSquiggle()

void org.lflang.diagram.synthesis.styles.LinguaFrancaStyleExtensions.addPhysicalConnectionSquiggle ( KEdge edge,
Colors parentBackgroundColor,
float relative )

Draws the physical-connection "squiggle" directly on the edge's line as a decorator instead of as an inline center label.

Unlike an inline label, an on-line decorator follows the routed edge path, so the squiggle stays on the connection line even when the edge is routed around a node. This is used only for self-loop / feedback connections (e.g. a bank's output routed back to its own input), where ELK does not honor inline label placement and the label-based squiggle ends up off the line; ordinary connections continue to use applyOnEdgePysicalStyle. The parentBackgroundColor is used to erase the underlying straight line so the squiggle visually replaces it.

Parameters
edgethe connection edge to decorate
parentBackgroundColorthe background color behind the edge, used to mask the line
relativethe position along the edge path (0..1) at which to center the squiggle

◆ applyOnEdgeAbsentAfterStyle()

void org.lflang.diagram.synthesis.styles.LinguaFrancaStyleExtensions.applyOnEdgeAbsentAfterStyle ( KLabel label)

◆ applyOnEdgeDelayStyle()

void org.lflang.diagram.synthesis.styles.LinguaFrancaStyleExtensions.applyOnEdgeDelayStyle ( KLabel label)

◆ applyOnEdgeLabelStyle()

void org.lflang.diagram.synthesis.styles.LinguaFrancaStyleExtensions.applyOnEdgeLabelStyle ( KLabel label)

◆ applyOnEdgePysicalDelayStyle()

void org.lflang.diagram.synthesis.styles.LinguaFrancaStyleExtensions.applyOnEdgePysicalDelayStyle ( KLabel label,
Colors parentBackgroundColor )

◆ applyOnEdgePysicalStyle()

void org.lflang.diagram.synthesis.styles.LinguaFrancaStyleExtensions.applyOnEdgePysicalStyle ( KLabel label,
Colors parentBackgroundColor )

◆ applyOnEdgeStyle()

void org.lflang.diagram.synthesis.styles.LinguaFrancaStyleExtensions.applyOnEdgeStyle ( KLabel label)

◆ associateWith()

public< T extends EObject > T org.lflang.diagram.synthesis.AbstractSynthesisExtensions.associateWith ( T derived,
Object source )
packageinherited

◆ boldLineSelectionStyle()

KRendering org.lflang.diagram.synthesis.styles.LinguaFrancaStyleExtensions.boldLineSelectionStyle ( KRendering r)

◆ boldTextSelectionStyle()

KText org.lflang.diagram.synthesis.styles.LinguaFrancaStyleExtensions.boldTextSelectionStyle ( KText t)

◆ commentStyle()

void org.lflang.diagram.synthesis.styles.LinguaFrancaStyleExtensions.commentStyle ( KRendering r)

◆ errorStyle()

void org.lflang.diagram.synthesis.styles.LinguaFrancaStyleExtensions.errorStyle ( KRendering r)

◆ getBooleanValue()

boolean org.lflang.diagram.synthesis.AbstractSynthesisExtensions.getBooleanValue ( SynthesisOption option)
inherited

◆ getFloatValue()

float org.lflang.diagram.synthesis.AbstractSynthesisExtensions.getFloatValue ( SynthesisOption option)
inherited

◆ getObjectValue()

Object org.lflang.diagram.synthesis.AbstractSynthesisExtensions.getObjectValue ( final SynthesisOption option)
inherited

◆ getRootSynthesis()

public< T extends AbstractDiagramSynthesis<?> > T org.lflang.diagram.synthesis.AbstractSynthesisExtensions.getRootSynthesis ( )
packageinherited

◆ maxWaitCommentStyle()

void org.lflang.diagram.synthesis.styles.LinguaFrancaStyleExtensions.maxWaitCommentStyle ( KRendering r)

◆ noSelectionStyle()

KRendering org.lflang.diagram.synthesis.styles.LinguaFrancaStyleExtensions.noSelectionStyle ( KRendering r)

◆ underlineSelectionStyle()

KRendering org.lflang.diagram.synthesis.styles.LinguaFrancaStyleExtensions.underlineSelectionStyle ( KRendering r)

Member Data Documentation

◆ LABEL_PARENT_BACKGROUND

final Property<Colors> org.lflang.diagram.synthesis.styles.LinguaFrancaStyleExtensions.LABEL_PARENT_BACKGROUND
static
Initial value:
=
new Property<>(
"org.lflang.linguafranca.diagram.synthesis.styles.label.parent.background", Colors.WHITE)

INTERNAL property to communicate a node's background color.

◆ SELECTION_HIGHLIGHTING_COLOR

final SynthesisOption org.lflang.diagram.synthesis.styles.LinguaFrancaStyleExtensions.SELECTION_HIGHLIGHTING_COLOR
static
Initial value:
=
SynthesisOption.createCheckOption(SELECTION_HIGHLIGHTING_COLOR_LABEL, false)
Diagram synthesis for Lingua Franca programs.
Definition LinguaFrancaSynthesis.java:124
static final SynthesisOption APPEARANCE
Synthesis category.
Definition LinguaFrancaSynthesis.java:187
static final String SELECTION_HIGHLIGHTING_COLOR_LABEL
Definition LinguaFrancaStyleExtensions.java:58

◆ SELECTION_HIGHLIGHTING_COLOR_LABEL

final String org.lflang.diagram.synthesis.styles.LinguaFrancaStyleExtensions.SELECTION_HIGHLIGHTING_COLOR_LABEL = "Selection Coloring"
static

The documentation for this class was generated from the following file:
  • /Users/runner/work/lingua-franca/lingua-franca/core/src/main/java/org/lflang/diagram/synthesis/styles/LinguaFrancaStyleExtensions.java