Hi Don,
That's what I expected, but it doesn't seem to work here (I have 4.6)
within an EsriPlugin....
I've also written the following piece of code:
if (omGraphic instanceof EsriPolyline) {
BasicStroke stroke = new BasicStroke(width);
omGraphic.setLinePaint(Color.yellow);
omGraphic.setMattingPaint(Color.red);
omGraphic.setMatted(true);
omGraphic.setStroke(stroke);
omGraphic.render(g);
}
I obtain a yellow line of 'width' pixels width... but with to matting border
The strange thing is that, when I trace whithin the openmap lib,
"matted" appears to be false in the render() method!
So, I think I missed something somewhere :-(
Enclosed, you'll find a very small shape file to test within an
EsripPlugIn...
Don Dietrick wrote:
> Hi Bart,
>
> In 4.6, I added the methods on OMGraphic that let you set the matting
> paint, which is black and turned off by default.
>
> - Don
>
> On Tuesday, August 5, 2003, at 06:32 AM, Bart Jourquin wrote:
>
>> Hi all,
>>
>> Perhaps I missed something obvious, but ....
>>
>> I have a shape file that contains polylines representing a road
>> network. I can display it using an esriPlugIn layer. Now, I can give
>> a color and/or a width using the basicStrokeEditor. As I have
>> polylines and not polygons, I can't display a border color and a
>> fill color... Is there a way to display roads in yellow with red
>> borders for instance as they are in many GIS?
>>
>> --
>> Prof Dr Bart Jourquin
>> F.U.Ca.M. - G.T.M.
>> Chaussee de Binche, 151a
>> B7000 Mons
>> Belgium
>> Tel. : +32 65 323293
>> Fax. : +32 65 315691
>> http://message.fucam.ac.be/~jourquin
>>
>>
>> --
>> [To unsubscribe to this list send an email to "majdart@bbn.com"
>> with the following text in the BODY of the message "unsubscribe
>> openmap-users"]
>>
>>
>
>
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Don Dietrick, BBN Technologies, dietrick@bbn.com
> 10 Moulton Street, Cambridge, MA 02138
> 617-873-3031 [fax]-2794
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>
> --
> [To unsubscribe to this list send an email to "majdart@bbn.com"
> with the following text in the BODY of the message "unsubscribe
> openmap-users"]
>
-- Prof Dr Bart Jourquin F.U.Ca.M. - G.T.M. Chaussee de Binche, 151a B7000 Mons Belgium Tel. : +32 65 323293 Fax. : +32 65 315691 http://message.fucam.ac.be/~jourquin
-- [To unsubscribe to this list send an email to "majdart@bbn.com" with the following text in the BODY of the message "unsubscribe openmap-users"]
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:36 EDT