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

Extension class that provides shapes and figures for the Lingua Franca diagram synthesis. More...

Inherits org.lflang.diagram.synthesis.AbstractSynthesisExtensions.

Public Member Functions

Pair< KPort, KPort > addActionFigureAndPorts (KNode node, String text)
 Creates the triangular action node with text and ports.
KRoundedRectangle addCommentFigure (KNode node, String message)
KPolyline addCommentPolyline (KEdge edge)
KRectangle addErrorMessage (KNode node, String title, String message)
 Creates and adds an error message figure.
KRoundedRectangle addMainReactorFigure (KNode node, ReactorInstance reactorInstance, String text)
 Creates the main reactor frame.
KContainerRendering addParameterEntry (KContainerRendering parent, Parameter associate, String text)
KPolygon addReactionFigure (KNode node, ReactionInstance reaction)
 Creates the visual representation of a reaction node.
ReactorFigureComponents addReactorFigure (KNode node, ReactorInstance reactorInstance, String text)
 Creates the visual representation of a reactor node.
KEllipse addResetFigure (KNode node)
 Creates the visual representation of a shutdown trigger.
KPolygon addShutdownFigure (KNode node)
 Creates the visual representation of a shutdown trigger.
KEllipse addStartupFigure (KNode node)
 Creates the visual representation of a startup trigger.
KContainerRendering addStateEntry (KContainerRendering parent, StateVar associate, String text, boolean reset)
KRectangle addStopwatchFigure (KContainerRendering parent)
 Stopwatch figure for deadlines.
KText addTextButton (KContainerRendering container, String text)
 Added a text as collapse expand button.
KEllipse addTimerFigure (KNode node, TimerInstance timer)
 Creates the visual representation of a timer node.
KPolygon addTrianglePort (KPort port, boolean multiport, boolean reverse)
 Creates the visual representation of a reactor port.
Pair< KPort, KPort > addWatchdogFigureAndPorts (KNode node)
 Creates the rectangular node with text and ports.
boolean getBooleanValue (SynthesisOption option)
float getFloatValue (SynthesisOption option)
Object getObjectValue (final SynthesisOption option)

Static Public Attributes

static final float BANK_FIGURE_X_OFFSET_SUM = 6.0f
static final float BANK_FIGURE_Y_OFFSET_SUM = 9.0f
static final Colors CODE_COLOR = Colors.BLACK
static final Colors DEADLINE_COLOR = Colors.WHITE
static final Colors ENCLAVE_BORDER_COLOR = Colors.CORAL_3
static final float REACTION_POINTINESS = 6
static final Property< Boolean > REACTOR_CONTENT_CONTAINER

Package Functions

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

Detailed Description

Extension class that provides shapes and figures for the Lingua Franca diagram synthesis.

Author
Alexander Schulz-Rosengarten

Member Function Documentation

◆ addActionFigureAndPorts()

Pair< KPort, KPort > org.lflang.diagram.synthesis.styles.LinguaFrancaShapeExtensions.addActionFigureAndPorts ( KNode node,
String text )

Creates the triangular action node with text and ports.

◆ addCommentFigure()

KRoundedRectangle org.lflang.diagram.synthesis.styles.LinguaFrancaShapeExtensions.addCommentFigure ( KNode node,
String message )

◆ addCommentPolyline()

KPolyline org.lflang.diagram.synthesis.styles.LinguaFrancaShapeExtensions.addCommentPolyline ( KEdge edge)

◆ addErrorMessage()

KRectangle org.lflang.diagram.synthesis.styles.LinguaFrancaShapeExtensions.addErrorMessage ( KNode node,
String title,
String message )

Creates and adds an error message figure.

◆ addMainReactorFigure()

KRoundedRectangle org.lflang.diagram.synthesis.styles.LinguaFrancaShapeExtensions.addMainReactorFigure ( KNode node,
ReactorInstance reactorInstance,
String text )

Creates the main reactor frame.

◆ addParameterEntry()

KContainerRendering org.lflang.diagram.synthesis.styles.LinguaFrancaShapeExtensions.addParameterEntry ( KContainerRendering parent,
Parameter associate,
String text )

◆ addReactionFigure()

KPolygon org.lflang.diagram.synthesis.styles.LinguaFrancaShapeExtensions.addReactionFigure ( KNode node,
ReactionInstance reaction )

Creates the visual representation of a reaction node.

◆ addReactorFigure()

ReactorFigureComponents org.lflang.diagram.synthesis.styles.LinguaFrancaShapeExtensions.addReactorFigure ( KNode node,
ReactorInstance reactorInstance,
String text )

Creates the visual representation of a reactor node.

◆ addResetFigure()

KEllipse org.lflang.diagram.synthesis.styles.LinguaFrancaShapeExtensions.addResetFigure ( KNode node)

Creates the visual representation of a shutdown trigger.

◆ addShutdownFigure()

KPolygon org.lflang.diagram.synthesis.styles.LinguaFrancaShapeExtensions.addShutdownFigure ( KNode node)

Creates the visual representation of a shutdown trigger.

◆ addStartupFigure()

KEllipse org.lflang.diagram.synthesis.styles.LinguaFrancaShapeExtensions.addStartupFigure ( KNode node)

Creates the visual representation of a startup trigger.

◆ addStateEntry()

KContainerRendering org.lflang.diagram.synthesis.styles.LinguaFrancaShapeExtensions.addStateEntry ( KContainerRendering parent,
StateVar associate,
String text,
boolean reset )

◆ addStopwatchFigure()

KRectangle org.lflang.diagram.synthesis.styles.LinguaFrancaShapeExtensions.addStopwatchFigure ( KContainerRendering parent)

Stopwatch figure for deadlines.

◆ addTextButton()

KText org.lflang.diagram.synthesis.styles.LinguaFrancaShapeExtensions.addTextButton ( KContainerRendering container,
String text )

Added a text as collapse expand button.

◆ addTimerFigure()

KEllipse org.lflang.diagram.synthesis.styles.LinguaFrancaShapeExtensions.addTimerFigure ( KNode node,
TimerInstance timer )

Creates the visual representation of a timer node.

◆ addTrianglePort()

KPolygon org.lflang.diagram.synthesis.styles.LinguaFrancaShapeExtensions.addTrianglePort ( KPort port,
boolean multiport,
boolean reverse )

Creates the visual representation of a reactor port.

◆ addWatchdogFigureAndPorts()

Pair< KPort, KPort > org.lflang.diagram.synthesis.styles.LinguaFrancaShapeExtensions.addWatchdogFigureAndPorts ( KNode node)

Creates the rectangular node with text and ports.

◆ associateWith()

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

◆ 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

Member Data Documentation

◆ BANK_FIGURE_X_OFFSET_SUM

final float org.lflang.diagram.synthesis.styles.LinguaFrancaShapeExtensions.BANK_FIGURE_X_OFFSET_SUM = 6.0f
static

◆ BANK_FIGURE_Y_OFFSET_SUM

final float org.lflang.diagram.synthesis.styles.LinguaFrancaShapeExtensions.BANK_FIGURE_Y_OFFSET_SUM = 9.0f
static

◆ CODE_COLOR

final Colors org.lflang.diagram.synthesis.styles.LinguaFrancaShapeExtensions.CODE_COLOR = Colors.BLACK
static

◆ DEADLINE_COLOR

final Colors org.lflang.diagram.synthesis.styles.LinguaFrancaShapeExtensions.DEADLINE_COLOR = Colors.WHITE
static

◆ ENCLAVE_BORDER_COLOR

final Colors org.lflang.diagram.synthesis.styles.LinguaFrancaShapeExtensions.ENCLAVE_BORDER_COLOR = Colors.CORAL_3
static

◆ REACTION_POINTINESS

final float org.lflang.diagram.synthesis.styles.LinguaFrancaShapeExtensions.REACTION_POINTINESS = 6
static

◆ REACTOR_CONTENT_CONTAINER

final Property<Boolean> org.lflang.diagram.synthesis.styles.LinguaFrancaShapeExtensions.REACTOR_CONTENT_CONTAINER
static
Initial value:
=
new Property<>("org.lflang.diagram.synthesis.shapes.reactor.content", false)

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/LinguaFrancaShapeExtensions.java