code: @Override
      protected boolean prepare(final Context2D context, final Attributes attr, final double alpha)
      {
          final Point2DArray list = attr.getPoints();
  
          if ((null != list) && (list.size() == 2))
          {
              if (attr.isDefined(Attribute.DASH_ARRAY))
              {
                  if (false == LienzoCore.get().isNativeLineDashSupported())
                  {
                      final DashArray dash = attr.getDashArray();
  
                      if (dash != null)
                      {
                          final double[] data = dash.getNormalizedArray();
  
                          if (data.length > 0)
                          {
                              if (setStrokeParams(context, attr, alpha, false))
                              {
                                  final Point2D p0 = list.get(0);
  
                                  final Point2D p1 = list.get(1);
  
                                  context.beginPath();
  
                                  drawDashedLine(context, p0.getX(), p0.getY(), p1.getX(), p1.getY(), data, attr.getStrokeWidth() / 2);
  
                                  context.restore();
                              }
                              return true;
                          }
                      }
                  }
              }
              context.beginPath();
  
              final Point2D p0 = list.get(0);
  
              context.moveTo(p0.getX(), p0.getY());
  
              final Point2D p1 = list.get(1);
  
              context.lineTo(p1.getX(), p1.getY());
  
              return true;
          }
          return false;
      }
docs: Draws this line
  
  @param context