// Path: src/main/java/com/orange/dgil/trail/android/drawingtool/TrailOptions.java
// @Getter
// public class TrailOptions {
//   @Getter(AccessLevel.NONE)
//   private DrawingTools drawingTools;
//   @Getter(AccessLevel.NONE)
//   private AndroidMetrics metrics;
// 
//   @Setter
//   private int color = DefaultDrawerConf.TRAIL_COLOR;
//   @Setter
//   private int shadowColor;
// 
//   private QuillParameters quillParameters;
// 
//   private boolean shadowEnabled;
//   private int shadowOffsetPixels;
//   private int widthPixels;
// 
//   public TrailOptions(AndroidMetrics metrics, DrawingTools drawingTools) {
//     init(metrics, drawingTools);
//   }
// 
//   private void init(AndroidMetrics metrics, DrawingTools drawingTools) {
//     this.metrics = metrics;
//     this.drawingTools = drawingTools;
//     quillParameters = new QuillParameters(metrics);
//     setTrailWidthMicrometers(DefaultDrawerConf.TRAIL_WIDTH_UM);
//   }
// 
//   public void setTrailWidthMicrometers(int micrometers) {
//     widthPixels  = metrics.micrometersToPixels(micrometers);
//     shadowOffsetPixels = (int) (widthPixels * DefaultDrawerConf.SHADOW_OFFSET_FACTOR);
//   }
// 
//   public boolean isShadowAvailable() {
//     return android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.ICE_CREAM_SANDWICH;
//   }
// 
//   public void setShadowEnabled(boolean shadowEnabled) {
//     this.shadowEnabled = shadowEnabled && isShadowAvailable();
//   }
// 
//   public void selectMarkerPen() {
//     drawingTools.selectMarkerPen();
//   }
// 
//   public void selectQuillPen() {
//     drawingTools.selectQuillPen();
//   }
// }


import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.RectF;
import com.orange.dgil.trail.android.drawingtool.TrailOptions;
import lombok.RequiredArgsConstructor;
/**
 * Trail drawing library
 * Copyright (C) 2014 Orange
 * Authors: christophe.maldivi@orange.com, eric.petit@orange.com
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */
package com.orange.dgil.trail.android.drawingtool.quillpen;




@RequiredArgsConstructor
class BitmapDrawer {

  private final Paint paint = new Paint();
// Path: src/main/java/com/orange/dgil/trail/android/drawingtool/TrailOptions.java
// @Getter
// public class TrailOptions {
//   @Getter(AccessLevel.NONE)
//   private DrawingTools drawingTools;
//   @Getter(AccessLevel.NONE)
//   private AndroidMetrics metrics;
// 
//   @Setter
//   private int color = DefaultDrawerConf.TRAIL_COLOR;
//   @Setter
//   private int shadowColor;
// 
//   private QuillParameters quillParameters;
// 
//   private boolean shadowEnabled;
//   private int shadowOffsetPixels;
//   private int widthPixels;
// 
//   public TrailOptions(AndroidMetrics metrics, DrawingTools drawingTools) {
//     init(metrics, drawingTools);
//   }
// 
//   private void init(AndroidMetrics metrics, DrawingTools drawingTools) {
//     this.metrics = metrics;
//     this.drawingTools = drawingTools;
//     quillParameters = new QuillParameters(metrics);
//     setTrailWidthMicrometers(DefaultDrawerConf.TRAIL_WIDTH_UM);
//   }
// 
//   public void setTrailWidthMicrometers(int micrometers) {
//     widthPixels  = metrics.micrometersToPixels(micrometers);
//     shadowOffsetPixels = (int) (widthPixels * DefaultDrawerConf.SHADOW_OFFSET_FACTOR);
//   }
// 
//   public boolean isShadowAvailable() {
//     return android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.ICE_CREAM_SANDWICH;
//   }
// 
//   public void setShadowEnabled(boolean shadowEnabled) {
//     this.shadowEnabled = shadowEnabled && isShadowAvailable();
//   }
// 
//   public void selectMarkerPen() {
//     drawingTools.selectMarkerPen();
//   }
// 
//   public void selectQuillPen() {
//     drawingTools.selectQuillPen();
//   }
// }


// Path: src/main/java/com/orange/dgil/trail/android/drawingtool/quillpen/BitmapDrawer.java
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.RectF;
import com.orange.dgil.trail.android.drawingtool.TrailOptions;
import lombok.RequiredArgsConstructor;

/**
 * Trail drawing library
 * Copyright (C) 2014 Orange
 * Authors: christophe.maldivi@orange.com, eric.petit@orange.com
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */
package com.orange.dgil.trail.android.drawingtool.quillpen;




@RequiredArgsConstructor
class BitmapDrawer {

  private final Paint paint = new Paint();
  private final RectF rectF = new RectF();