Re: [OpenMap Users] Layer names

From: Don Dietrick <dietrick_at_bbn.com>
Date: Tue, 3 Aug 2004 17:30:28 -0400

Hi Ben,

FYI, sending mail to openmap_at_bbn.com and openmap-users_at_bbn.com is a
little redundant, all the BBN people end up getting the message twice.

On Aug 3, 2004, at 3:31 PM, Ben Podoll wrote:

> If I print layer.toString() I get something like this:
>
> com.bbn.openmap.layer.shape.ShapeLayer[US
> Rivers,0,0,0x0,invalid,hidden,alignmentX=null,alignmentY=null,border=,f
> lags=
> 0,maximumSize=,minimumSize=,preferredSize=]

This is the parent JComponent.toString output.

> Why does it get the prettyName as the layer.getName() shouldn't there
> be a
> layer.getPrettyName() and layer.getName()?

layer.getName() is the non-existant layer.getPrettyName().

> The above example I have pretty name of this layer set to "US Rivers"
> and
> the actual name of the layer (as defined in the openmap.properties) is
> "usRivers".

usRivers isn't the actual name of the layer, it's the property prefix
of the layer which can be accessed through layer.getPropertyPrefix().
If you don't use scoped properties to initialize/configure the layer
(which would happen if you configure a layer programmatically) this
would be null, which is perfectly fine.

- Don

> I would much rather work with the actual name rather than the pretty
> name...
> Is there a way to get to that or is it lost once it is inside the
> LayerHandler?
>
> ~Ben
>
>
> --
> [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"]
>
>


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick_at_bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

--
[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 Tue Aug 03 2004 - 17:31:56 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:05 EDT