Class EventSettingsViewModel
java.lang.Object
de.xima.fc.workflow.designer.bpmn.model.settings.ASettingsViewViewModel
de.xima.fc.workflow.designer.bpmn.model.settings.EventSettingsViewModel
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BoundaryEventSettingsViewModel, EndEventSettingsViewModel, IntermediateCatchEventSettingsViewModel, IntermediateThrowEventSettingsViewModel, StartEventSettingsViewModel
View model for layout settings related to various
events 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 TextSettingsViewModel -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEventSettingsViewModel(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 event shape to the annotation text.final StringgetColor()Gets the color of the event shape.final doubleGets the diameter of the event shape (a circle).final TextSettingsViewModelGets the text settings for the event's name.final voidsetAnnotationDistance(double annotationDistance) Sets the distance from the event shape to the annotation text.final voidSets the color of the event shape.final voidsetDiameter(double diameter) Sets the diameter of the event shape (a circle).
-
Field Details
-
textSettings
-
annotationDistance
@Min(0L) protected @Min(0L) double annotationDistance -
color
-
diameter
@Min(0L) protected @Min(0L) double diameter
-
-
Constructor Details
-
EventSettingsViewModel
-
-
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 event shape to the annotation text.- Returns:
- The distance in pixels.
-
setAnnotationDistance
public final void setAnnotationDistance(double annotationDistance) Sets the distance from the event shape to the annotation text.- Parameters:
annotationDistance- The distance in pixels.
-
getColor
Gets the color of the event shape.- Returns:
- The color as a CSS color string.
-
setColor
Sets the color of the event shape.- Parameters:
color- The color as a CSS color string.
-
getDiameter
public final double getDiameter()Gets the diameter of the event shape (a circle).- Returns:
- The diameter in pixels.
-
setDiameter
public final void setDiameter(double diameter) Sets the diameter of the event shape (a circle).- Parameters:
diameter- The diameter in pixels.
-
getTextSettings
Gets the text settings for the event's name.- Returns:
- The text settings view model.
-