public void addPolygonRecord1(EsriLayer layer){
  OMGraphicList shapeData=new EsriPolygonList();
  double[] part0=new double[]{45.0f,-70.0f,30.0f,-30.0f,10.0f,-80.0f,30.0f,-120.0f,45.0f,-70.0f};
  EsriPolygon poly0=new EsriPolygon(part0,OMGraphic.DECIMAL_DEGREES,OMGraphic.LINETYPE_STRAIGHT);
  shapeData.add(poly0);
  ArrayList tabularData=new ArrayList();
  tabularData.add(0,"first value");
  tabularData.add(1,new Double(12.54));
  layer.addRecord(shapeData,tabularData);
}

public void addPolygonRecord1 ( EsriLayer layer ) { OMGraphicList shapeData = new EsriPolygonList ( ) ; double [ ] part0 = new double [ ] { 45.0f , - 70.0f , 30.0f , - 30.0f , 10.0f , - 80.0f , 30.0f , - 120.0f , 45.0f , - 70.0f } ; EsriPolygon poly0 = new EsriPolygon ( part0 , OMGraphic . DECIMAL_DEGREES , OMGraphic . LINETYPE_STRAIGHT ) ; shapeData . add ( poly0 ) ; ArrayList tabularData = new ArrayList ( ) ; tabularData . add ( 0 , "first value" ) ; tabularData . add ( 1 , new Double ( 12.54 ) ) ; layer . addRecord ( shapeData , tabularData ) ; }
creates and esripolygon object with one part
