public void addPolylineRecord2(EsriLayer layer){
  OMGraphicList shapeData=new EsriPolylineList();
  double[] part0=new double[]{12.0f,-175.0f,-30.0f,85.0f,25.0f,15.0f};
  EsriPolyline poly0=new EsriPolyline(part0,OMGraphic.DECIMAL_DEGREES,OMGraphic.LINETYPE_RHUMB);
  shapeData.add(poly0);
  ArrayList tabularData=new ArrayList();
  tabularData.add(0,"second value");
  tabularData.add(1,new Double(30.215));
  layer.addRecord(shapeData,tabularData);
}

public void addPolylineRecord2 ( EsriLayer layer ) { OMGraphicList shapeData = new EsriPolylineList ( ) ; double [ ] part0 = new double [ ] { 12.0f , - 175.0f , - 30.0f , 85.0f , 25.0f , 15.0f } ; EsriPolyline poly0 = new EsriPolyline ( part0 , OMGraphic . DECIMAL_DEGREES , OMGraphic . LINETYPE_RHUMB ) ; shapeData . add ( poly0 ) ; ArrayList tabularData = new ArrayList ( ) ; tabularData . add ( 0 , "second value" ) ; tabularData . add ( 1 , new Double ( 30.215 ) ) ; layer . addRecord ( shapeData , tabularData ) ; }
creates an esripolyline object with one part
