// TextShapeDecoration.CENTER));
// }
// };
// omList.add(spline3);
OMLine line = new OMLine(40f, -75f, 42f, -70f, OMGraphic.LINETYPE_GREATCIRCLE);
// line.addArrowHead(true);
line.addArrowHead(OMArrowHead.ARROWHEAD_DIRECTION_BOTH);
line.setStroke(new BasicStroke(2));
line.putAttribute(OMGraphicConstants.LABEL,
new OMTextLabeler("Line Label"));
omList.add(line);
OMGraphicList pointList = new OMGraphicList();
for (int i = 0; i < 100; i++) {
point = new OMPoint((float) (Math.random() * 89f), (float) (Math.random() * -179f), 3);
point.setSelectPaint(Color.yellow);
pointList.add(point);
}
omList.add(pointList);
OMEllipse ell = new OMEllipse(new LatLonPoint(60f, -110), 1000, 300, Length.NM, com.bbn.openmap.MoreMath.HALF_PI / 2.0);
ell.setLinePaint(Color.blue);
// ell.setFillPaint(Color.yellow);
omList.add(ell);
ell = new OMEllipse(new LatLonPoint(40f, -75), 800, 250, Length.MILE, 0);
ell.setFillPaint(Color.yellow);
omList.add(ell);
float[] llp2 = new float[] { 0.41789755f, -1.435303f, 0.41813868f,
-1.3967744f };
OMPoly p2 = new OMPoly(llp2, OMGraphic.RADIANS, OMGraphic.LINETYPE_RHUMB);
p2.setLinePaint(Color.yellow);
omList.add(p2);
// OMArc arc = new OMArc(40f, 65f, 750f, Length.MILE, 20f,
// 95f);
OMArc arc = new OMArc((float) 40.0, (float) 65.0, (float) 750.0, Length.MILE, (float) 20.0, (float) 95.0);
arc.setLinePaint(Color.red);
arc.setFillPaint(new Color(120, 0, 0, 128));
arc.setArcType(java.awt.geom.Arc2D.PIE);
arc.putAttribute(OMGraphicConstants.LABEL,
new OMTextLabeler("Arc Label", OMText.JUSTIFY_CENTER));
omList.add(arc);
OMAreaList combo = new OMAreaList();
combo.addOMGraphic(new OMLine((float) 50.453333, (float) 5.223889, (float) 50.375278, (float) 4.873889, 2));
combo.addOMGraphic(new OMLine((float) 50.375278, (float) 4.873889, (float) 50.436944, (float) 4.860556, 2));
// combo.addOMGraphic(new OMLine((float) 50.436944, (float)
// 4.860556, (float) 50.436667, (float) 4.860833, 2));
// combo.addOMGraphic(new OMLine((float) 50.436667, (float)
// 4.860833, (float) 50.490833, (float) 4.847778, 2));
// combo.addOMGraphic(new OMLine((float) 50.491269, (float)
// 4.704239, (float) 50.490833, (float) 4.847778, 3));
combo.addOMGraphic(new OMArc((float) 50.491269, (float) 4.704239, (float) 0.09168520552327833, (float) (28.201865385183652 + 90.21758717585848), (float) -90.21758717585848));
combo.addOMGraphic(new OMLine((float) 50.534167, (float) 4.831111, (float) 50.640833, (float) 4.832222, 2));
combo.addOMGraphic(new OMLine((float) 50.640833, (float) 4.832222, (float) 50.547778, (float) 5.223889, 2));
combo.addOMGraphic(new OMLine((float) 50.547778, (float) 5.223889, (float) 50.453333, (float) 5.223889, 2));
// combo.setConnectParts(true);
// combo.addOMGraphic(new OMLine(30f, -125f, 30f, -100f,
// OMGraphic.LINETYPE_RHUMB));
// combo.addOMGraphic(new OMLine(30f, -100f, 40f, -95f,
// OMGraphic.LINETYPE_GREATCIRCLE));
// combo.addOMGraphic(new OMLine(40f, -95f, 50f, -145f,
// OMGraphic.LINETYPE_GREATCIRCLE));
// combo.addOMGraphic(new OMLine(50f, -145f, 30f, -125f,
// OMGraphic.LINETYPE_STRAIGHT));
combo.setLinePaint(Color.blue);
combo.setFillPaint(Color.green);
omList.add(combo);
OMAreaList combo1 = new OMAreaList();
combo1.addOMGraphic(new OMLine(66.618519f, 141.563497f, 66.028244f, 140.193964f, OMGraphic.LINETYPE_GREATCIRCLE));
combo1.addOMGraphic(new OMLine(66.028244f, 140.193964f, 66.968058f, 137.611042f, OMGraphic.LINETYPE_RHUMB));
combo1.addOMGraphic(new OMLine(66.968058f, 137.611042f, 67.558261f, 139.033958f, OMGraphic.LINETYPE_GREATCIRCLE));
combo1.addOMGraphic(new OMLine(67.558261f, 139.033958f, 66.618519f, 141.563497f, OMGraphic.LINETYPE_RHUMB));
combo1.setLinePaint(Color.red);
combo1.setFillPaint(Color.blue);
omList.add(combo1);
combo1 = new OMAreaList();
combo1.addOMGraphic(new OMLine(65.495278f, 55.488889f, 65.022778f, 55.749167f, OMGraphic.LINETYPE_GREATCIRCLE));
combo1.addOMGraphic(new OMLine(65.022778f, 55.749167f, 64.970278f, 55.208611f, OMGraphic.LINETYPE_RHUMB));
combo1.addOMGraphic(new OMLine(64.970278f, 55.208611f, 65.442778f, 54.948889f, OMGraphic.LINETYPE_GREATCIRCLE));
combo1.addOMGraphic(new OMLine(65.442778f, 54.948889f, 65.495278f, 55.488889f, OMGraphic.LINETYPE_RHUMB));
combo1.setLinePaint(Color.blue);
combo1.setFillPaint(Color.red);
omList.add(combo1);
// OMArc arc1 = new OMArc(100, 100, 200, 200, 0f, -45f);