예제 #1
0
 private IWavyBorder<double> GetVerticalWavyBorder()
 {
     Func<Position, double> transformer = pos => Height - pos.X;
     var parameters = new WavyBorderParameters(Height - IndentDepth, 1, WaveCount);
     var builder = new UprightWavyBorderBuilder(parameters, new HalfStepExtraStartStrategy());
     return builder.WavyBorder.Transform(transformer);
 }
 public FoldingWavyBorderBuilder(WavyBorderParameters parameters,
     IExtraStrategy extraStrategy)
     : base(parameters, extraStrategy)
 {
     WavyBorderOffset = new WavyBorderOffset(WaveHeight, -0.8);
 }
 public UprightWavyBorderBuilder(WavyBorderParameters parameters,
     IExtraStrategy extraStrategy) : base(parameters, extraStrategy)
 {
     WavyBorderOffset = new WavyBorderOffset(0, 0);
 }