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
public abstract class EventSettingsViewModel extends ASettingsViewViewModel
View model for layout settings related to variousevents
in BPMN diagrams.- Since:
- 8.4.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected @javax.validation.constraints.Min(0L) double
annotationDistance
protected @NotEmpty @CssColorString String
color
protected @javax.validation.constraints.Min(0L) double
diameter
protected @Valid TextSettingsViewModel
textSettings
-
Constructor Summary
Constructors Modifier Constructor Description protected
EventSettingsViewModel(TextSettingsViewModel textSettings)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
applyFromSettings(IWorkflowBpmnLayoutSettings settings)
Applies the settings from the givenIWorkflowBpmnLayoutSettings
instance to this view model.abstract void
applyFromSettings(FlowchartToBpmnConverterSettings settings)
Applies the settings from the givenFlowchartToBpmnConverterSettings
instance to this view model.abstract void
applyToBuilder(WorkflowBpmnLayoutSettings.Builder builder)
Applies the settings from this view model to the givenWorkflowBpmnLayoutSettings.Builder
instance.abstract void
applyToBuilder(FlowchartToBpmnConverterSettings.Builder builder)
Applies the settings from this view model to the givenFlowchartToBpmnConverterSettings.Builder
instance.double
getAnnotationDistance()
Gets the distance from the event shape to the annotation text.String
getColor()
Gets the color of the event shape.double
getDiameter()
Gets the diameter of the event shape (a circle).TextSettingsViewModel
getTextSettings()
Gets the text settings for the event's name.void
setAnnotationDistance(double annotationDistance)
Sets the distance from the event shape to the annotation text.void
setColor(String color)
Sets the color of the event shape.void
setDiameter(double diameter)
Sets the diameter of the event shape (a circle).
-
-
-
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
-
diameter
@Min(0L) protected @javax.validation.constraints.Min(0L) double diameter
-
-
Constructor Detail
-
EventSettingsViewModel
protected EventSettingsViewModel(TextSettingsViewModel textSettings)
-
-
Method Detail
-
applyFromSettings
public abstract void applyFromSettings(IWorkflowBpmnLayoutSettings settings)
Description copied from class:ASettingsViewViewModel
Applies the settings from the givenIWorkflowBpmnLayoutSettings
instance to this view model.- Specified by:
applyFromSettings
in classASettingsViewViewModel
- Parameters:
settings
- The settings to apply.
-
applyFromSettings
public abstract void applyFromSettings(FlowchartToBpmnConverterSettings settings)
Description copied from class:ASettingsViewViewModel
Applies the settings from the givenFlowchartToBpmnConverterSettings
instance to this view model.- Specified by:
applyFromSettings
in classASettingsViewViewModel
- Parameters:
settings
- The settings to apply.
-
applyToBuilder
public abstract void applyToBuilder(WorkflowBpmnLayoutSettings.Builder builder)
Description copied from class:ASettingsViewViewModel
Applies the settings from this view model to the givenWorkflowBpmnLayoutSettings.Builder
instance.- Specified by:
applyToBuilder
in classASettingsViewViewModel
- Parameters:
builder
- The builder to apply settings to.
-
applyToBuilder
public abstract void applyToBuilder(FlowchartToBpmnConverterSettings.Builder builder)
Description copied from class:ASettingsViewViewModel
Applies the settings from this view model to the givenFlowchartToBpmnConverterSettings.Builder
instance.- Specified by:
applyToBuilder
in 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
public final String getColor()
Gets the color of the event shape.- Returns:
- The color as a CSS color string.
-
setColor
public final void setColor(String color)
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
public final TextSettingsViewModel getTextSettings()
Gets the text settings for the event's name.- Returns:
- The text settings view model.
-
-