/// <summary> /// Creates a new <see cref="LineFixedLength"/> instance. /// </summary> /// <param name="flags">The line fixed length flags.</param> /// <param name="startTrigger">The line start point state trigger.</param> /// <param name="endTrigger">The line end point state trigger.</param> /// <param name="length">The line fixed length.</param> /// <returns>he new instance of the <see cref="LineFixedLength"/> class.</returns> public static LineFixedLength Create(LineFixedLengthFlags flags = LineFixedLengthFlags.Disabled, ShapeState startTrigger = null, ShapeState endTrigger = null, double length = 15.0) { return(new LineFixedLength() { Flags = flags, StartTrigger = startTrigger ?? ShapeState.Create(ShapeStateFlags.Connector | ShapeStateFlags.Output), EndTrigger = endTrigger ?? ShapeState.Create(ShapeStateFlags.Connector | ShapeStateFlags.Input), Length = length }); }
/// <summary> /// /// </summary> /// <param name="flags"></param> /// <param name="length"></param> /// <param name="startTrigger"></param> /// <param name="endTrigger"></param> /// <returns></returns> public static LineFixedLength Create( LineFixedLengthFlags flags = LineFixedLengthFlags.Disabled, double length = 15.0, ShapeState startTrigger = null, ShapeState endTrigger = null) { return new LineFixedLength() { Flags = flags, Length = length, StartTrigger = startTrigger ?? ShapeState.Create(ShapeStateFlags.Connector | ShapeStateFlags.Output), EndTrigger = endTrigger ?? ShapeState.Create(ShapeStateFlags.Connector | ShapeStateFlags.Input) }; }