public void addPolylineRecord1(EsriLayer layer){
  OMGraphicList shapeData=new EsriPolylineList();
  double[] part0=new double[]{35.0,-120.0,-25.0,-95.0,56.0,-30.0};
  double[] part1=new double[]{-15.0,-110.0,13.0,-80.0,-25.0,10.0};
  EsriPolyline poly0=new EsriPolyline(part0,OMGraphic.DECIMAL_DEGREES,OMGraphic.LINETYPE_RHUMB);
  EsriPolyline poly1=new EsriPolyline(part1,OMGraphic.DECIMAL_DEGREES,OMGraphic.LINETYPE_RHUMB);
  shapeData.add(poly0);
  shapeData.add(poly1);
  ArrayList tabularData=new ArrayList();
  tabularData.add(0,"first value");
  tabularData.add(1,new Double(12.54));
  layer.addRecord(shapeData,tabularData);
}

public void addPolylineRecord1 ( EsriLayer layer ) { OMGraphicList shapeData = new EsriPolylineList ( ) ; double [ ] part0 = new double [ ] { 35.0 , - 120.0 , - 25.0 , - 95.0 , 56.0 , - 30.0 } ; double [ ] part1 = new double [ ] { - 15.0 , - 110.0 , 13.0 , - 80.0 , - 25.0 , 10.0 } ; EsriPolyline poly0 = new EsriPolyline ( part0 , OMGraphic . DECIMAL_DEGREES , OMGraphic . LINETYPE_RHUMB ) ; EsriPolyline poly1 = new EsriPolyline ( part1 , OMGraphic . DECIMAL_DEGREES , OMGraphic . LINETYPE_RHUMB ) ; shapeData . add ( poly0 ) ; shapeData . add ( poly1 ) ; ArrayList tabularData = new ArrayList ( ) ; tabularData . add ( 0 , "first value" ) ; tabularData . add ( 1 , new Double ( 12.54 ) ) ; layer . addRecord ( shapeData , tabularData ) ; }
creates an esripolyline object with two parts
