Class GatewaySettingsViewModel
java.lang.Object
de.xima.fc.workflow.designer.bpmn.model.settings.ASettingsViewViewModel
de.xima.fc.workflow.designer.bpmn.model.settings.GatewaySettingsViewModel
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ComplexGatewaySettingsViewModel, EventBasedGatewaySettingsViewModel, ExclusiveGatewaySettingsViewModel, InclusiveGatewaySettingsViewModel, ParallelGatewaySettingsViewModel
View model for layout settings related to various
gateways in BPMN diagrams.- Since:
- 8.4.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected @Min(0L) doubleprotected @NotEmpty @CssColorString Stringprotected @Min(0L) doubleprotected final @Valid TextSettingsViewModelprotected @Min(0L) double -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGatewaySettingsViewModel(TextSettingsViewModel textSettings) -
Method Summary
Modifier and TypeMethodDescriptionabstract voidapplyFromSettings(IWorkflowBpmnLayoutSettings settings) Applies the settings from the givenIWorkflowBpmnLayoutSettingsinstance to this view model.abstract voidApplies the settings from the givenFlowchartToBpmnConverterSettingsinstance to this view model.abstract voidApplies the settings from this view model to the givenWorkflowBpmnLayoutSettings.Builderinstance.abstract voidApplies the settings from this view model to the givenFlowchartToBpmnConverterSettings.Builderinstance.final doubleGets the distance from the gateway shape to the annotation.final StringgetColor()Gets the color of the gateway shape.final doubleGets the height of the gateway shape (a rhombus).final TextSettingsViewModelGets the text settings for the gateway's name.final doublegetWidth()Gets the width of the gateway shape (a rhombus).final voidsetAnnotationDistance(double annotationDistance) Sets the distance from the gateway shape to the annotation.final voidSets the color of the gateway shape.final voidsetHeight(double height) Sets the height of the gateway shape (a rhombus).final voidsetWidth(double width) Sets the width of the gateway shape (a rhombus).
-
Field Details
-
textSettings
-
annotationDistance
@Min(0L) protected @Min(0L) double annotationDistance -
color
-
height
@Min(0L) protected @Min(0L) double height -
width
@Min(0L) protected @Min(0L) double width
-
-
Constructor Details
-
GatewaySettingsViewModel
-
-
Method Details
-
applyFromSettings
Description copied from class:ASettingsViewViewModelApplies the settings from the givenIWorkflowBpmnLayoutSettingsinstance to this view model.- Specified by:
applyFromSettingsin classASettingsViewViewModel- Parameters:
settings- The settings to apply.
-
applyFromSettings
Description copied from class:ASettingsViewViewModelApplies the settings from the givenFlowchartToBpmnConverterSettingsinstance to this view model.- Specified by:
applyFromSettingsin classASettingsViewViewModel- Parameters:
settings- The settings to apply.
-
applyToBuilder
Description copied from class:ASettingsViewViewModelApplies the settings from this view model to the givenWorkflowBpmnLayoutSettings.Builderinstance.- Specified by:
applyToBuilderin classASettingsViewViewModel- Parameters:
builder- The builder to apply settings to.
-
applyToBuilder
Description copied from class:ASettingsViewViewModelApplies the settings from this view model to the givenFlowchartToBpmnConverterSettings.Builderinstance.- Specified by:
applyToBuilderin classASettingsViewViewModel- Parameters:
builder- The builder to apply settings to.
-
getAnnotationDistance
public final double getAnnotationDistance()Gets the distance from the gateway shape to the annotation.- Returns:
- The distance in pixels.
-
setAnnotationDistance
public final void setAnnotationDistance(double annotationDistance) Sets the distance from the gateway shape to the annotation.- Parameters:
annotationDistance- The distance in pixels.
-
getColor
Gets the color of the gateway shape.- Returns:
- The color as a CSS color string.
-
setColor
Sets the color of the gateway shape.- Parameters:
color- The color as a CSS color string.
-
getHeight
public final double getHeight()Gets the height of the gateway shape (a rhombus).- Returns:
- The height in pixels.
-
setHeight
public final void setHeight(double height) Sets the height of the gateway shape (a rhombus).- Parameters:
height- The height in pixels.
-
getTextSettings
Gets the text settings for the gateway's name.- Returns:
- The text settings view model.
-
getWidth
public final double getWidth()Gets the width of the gateway shape (a rhombus).- Returns:
- The width in pixels.
-
setWidth
public final void setWidth(double width) Sets the width of the gateway shape (a rhombus).- Parameters:
width- The width in pixels.
-