public static List<ShapeRecord> line(double startX,double startY,double endX,double endY){
  List<ShapeRecord> shapeRecords=new ArrayList<ShapeRecord>();
  shapeRecords.add(move(startX,startY));
  shapeRecords.addAll(straightEdge(startX,startY,endX,endY));
  return shapeRecords;
}

public static List < ShapeRecord > line ( double startX , double startY , double endX , double endY ) { List < ShapeRecord > shapeRecords = new ArrayList < ShapeRecord > ( ) ; shapeRecords . add ( move ( startX , startY ) ) ; shapeRecords . addAll ( straightEdge ( startX , startY , endX , endY ) ) ; return shapeRecords ; }
creates a list of shaperecord to draw a line from the given origin ( startx , starty ) to the specified coordinates ( in pixels ) .
