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
public abstract class GatewaySettingsViewModel extends ASettingsViewViewModel
View model for layout settings related to variousgatewaysin BPMN diagrams.- Since:
- 8.4.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected @javax.validation.constraints.Min(0L) doubleannotationDistanceprotected @NotEmpty @CssColorString Stringcolorprotected @javax.validation.constraints.Min(0L) doubleheightprotected @Valid TextSettingsViewModeltextSettingsprotected @javax.validation.constraints.Min(0L) doublewidth
-
Constructor Summary
Constructors Modifier Constructor Description protectedGatewaySettingsViewModel(TextSettingsViewModel textSettings)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidapplyFromSettings(IWorkflowBpmnLayoutSettings settings)Applies the settings from the givenIWorkflowBpmnLayoutSettingsinstance to this view model.abstract voidapplyFromSettings(FlowchartToBpmnConverterSettings settings)Applies the settings from the givenFlowchartToBpmnConverterSettingsinstance to this view model.abstract voidapplyToBuilder(WorkflowBpmnLayoutSettings.Builder builder)Applies the settings from this view model to the givenWorkflowBpmnLayoutSettings.Builderinstance.abstract voidapplyToBuilder(FlowchartToBpmnConverterSettings.Builder builder)Applies the settings from this view model to the givenFlowchartToBpmnConverterSettings.Builderinstance.doublegetAnnotationDistance()Gets the distance from the gateway shape to the annotation.StringgetColor()Gets the color of the gateway shape.doublegetHeight()Gets the height of the gateway shape (a rhombus).TextSettingsViewModelgetTextSettings()Gets the text settings for the gateway's name.doublegetWidth()Gets the width of the gateway shape (a rhombus).voidsetAnnotationDistance(double annotationDistance)Sets the distance from the gateway shape to the annotation.voidsetColor(String color)Sets the color of the gateway shape.voidsetHeight(double height)Sets the height of the gateway shape (a rhombus).voidsetWidth(double width)Sets the width of the gateway shape (a rhombus).
-
-
-
Field Detail
-
textSettings
@Valid protected final @Valid TextSettingsViewModel textSettings
-
annotationDistance
@Min(0L) protected @javax.validation.constraints.Min(0L) double annotationDistance
-
color
@NotEmpty @CssColorString protected @NotEmpty @CssColorString String color
-
height
@Min(0L) protected @javax.validation.constraints.Min(0L) double height
-
width
@Min(0L) protected @javax.validation.constraints.Min(0L) double width
-
-
Constructor Detail
-
GatewaySettingsViewModel
protected GatewaySettingsViewModel(TextSettingsViewModel textSettings)
-
-
Method Detail
-
applyFromSettings
public abstract void applyFromSettings(IWorkflowBpmnLayoutSettings settings)
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
public abstract void applyFromSettings(FlowchartToBpmnConverterSettings settings)
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
public abstract void applyToBuilder(WorkflowBpmnLayoutSettings.Builder builder)
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
public abstract void applyToBuilder(FlowchartToBpmnConverterSettings.Builder builder)
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
public final String getColor()
Gets the color of the gateway shape.- Returns:
- The color as a CSS color string.
-
setColor
public final void setColor(String color)
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
public final TextSettingsViewModel 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.
-
-