Try something like this:
EsriPolygon oEsriPolygon = new EsriPolygon(llPoints,
OMGraphic.DECIMAL_DEGREES, OMGraphic.LINETYPE_STRAIGHT);
oEsriPolygon.setLinePaint(new Color(0, 0, 255));
oEsriPolygon.setFillPaint(new Color(0, 0, 255, 15));
oEsriPolygon.setStroke(new BasicStroke(2.0f));
oGraphicList.add(oEsriPolygon);
The setFillPaint(new Color(0, 0, 255, 15)) function sets the Color alpha
value to 15 which is almost transparent. 255 is solid or opaque.
Martin
-----Original Message-----
From: Norfleet, Timothy [mailto:timothy.norfleet_at_gd-ais.com]
Sent: Wednesday, July 07, 2004 9:00 AM
To: openmap-users_at_bbn.com
Subject: [OpenMap Users] Opaque OMCircle
Hi all,
Can anyone give me suggestion on how to make my fill color
Opaque using the code below? I can make it solid but not opaque.
OMCircle fovCircle = new OMCircle(latitude,
longitude,newRadius);
fovCircle.setLatLon(latitude, longitude);
fovCircle.setRadius(newRadius);
fovCircle.setFillPaint(Color.green);
fovCircle.setLinePaint(Color.white);
renderList.add(fovCircle);
tim
--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Wed Jul 07 2004 - 12:41:38 EDT