protected OMGraphicList constructMarkerLines(double ctrLon){
  OMGraphicList lines=new OMGraphicList(3);
  OMPoly currentLine;
  for (int j=0; j < 360; j+=180) {
    float lon=(float)j;
    double[] llp={90f,lon,0f,lon,-90f,lon};
    currentLine=new OMPoly(llp,OMGraphic.DECIMAL_DEGREES,boxy ? OMGraphic.LINETYPE_STRAIGHT : OMGraphic.LINETYPE_GREATCIRCLE);
    currentLine.setLinePaint(dateLineColor);
    lines.add(currentLine);
  }
  double[] llp={0f,ctrLon - 180f,0f,ctrLon - 90f,0f,ctrLon,0f,ctrLon + 90f,0f,ctrLon + 180f};
  currentLine=new OMPoly(llp,OMGraphic.DECIMAL_DEGREES,boxy ? OMGraphic.LINETYPE_STRAIGHT : OMGraphic.LINETYPE_GREATCIRCLE);
  currentLine.setLinePaint(equatorColor);
  lines.add(currentLine);
  if (Debug.debugging("graticule")) {
    Debug.output("GraticuleLayer.constructMarkerLines(): " + "constructed " + lines.size() + " graticule lines");
  }
  lines.generate(getProjection());
  return lines;
}

protected OMGraphicList constructMarkerLines ( double ctrLon ) { OMGraphicList lines = new OMGraphicList ( 3 ) ; OMPoly currentLine ; for ( int j = 0 ; j < 360 ; j += 180 ) { float lon = ( float ) j ; double [ ] llp = { 90f , lon , 0f , lon , - 90f , lon } ; currentLine = new OMPoly ( llp , OMGraphic . DECIMAL_DEGREES , boxy ? OMGraphic . LINETYPE_STRAIGHT : OMGraphic . LINETYPE_GREATCIRCLE ) ; currentLine . setLinePaint ( dateLineColor ) ; lines . add ( currentLine ) ; } double [ ] llp = { 0f , ctrLon - 180f , 0f , ctrLon - 90f , 0f , ctrLon , 0f , ctrLon + 90f , 0f , ctrLon + 180f } ; currentLine = new OMPoly ( llp , OMGraphic . DECIMAL_DEGREES , boxy ? OMGraphic . LINETYPE_STRAIGHT : OMGraphic . LINETYPE_GREATCIRCLE ) ; currentLine . setLinePaint ( equatorColor ) ; lines . add ( currentLine ) ; if ( Debug . debugging ( "graticule" ) ) { Debug . output ( "GraticuleLayer.constructMarkerLines(): " + "constructed " + lines . size ( ) + " graticule lines" ) ; } lines . generate ( getProjection ( ) ) ; return lines ; }
constructs the dateline and prime meridian lines .
