Package aimax.osm.data.entities

Examples of aimax.osm.data.entities.EntityAttribute


      if (node.getId() >= id)
        id = node.getId() + 1;
    MapNode node = new DefaultMapNode(id);
    node.setName(Long.toString(id));
    List<EntityAttribute> atts = new ArrayList<EntityAttribute>(1);
    atts.add(new EntityAttribute("marker", "yes"));
    node.setAttributes(atts);
    node.setPosition(lat, lon);
    updateEntityViewInfo(node, false);
    markers.add(node);
    fireMapDataEvent(new MapEvent(this, MapEvent.Type.MARKER_ADDED, node
View Full Code Here


 
  public DefaultTrack(long id, String name, String trackType) {
    this.id = id;
    setName(name);
    ArrayList<EntityAttribute> atts = new ArrayList<EntityAttribute>(1);
    atts.add(new EntityAttribute("track_type", trackType));
    setAttributes(atts);
    trkpts = new ArrayList<MapNode>();
  }
View Full Code Here

    String key = tag.getKey();
    String value = tag.getValue();
    if (key.equals("name")) {
      nodeName = value;
    } else {
      EntityAttribute att = EntityAttributeManager.instance().intern
      (new EntityAttribute(key, value));
      if (att != null)
        nodeAttributes.add(att);
    }
  }
View Full Code Here

   * Checks whether <code>att</code> has to be ignored with respect to
   * the attribute filter in use. Otherwise <code>att</code> is added to
   * the internal hash tables and the interned version of it is returned.
   */
  public EntityAttribute intern(EntityAttribute att) {
    EntityAttribute result = null;
    // this version seems to have no measurable advantage:
//    result = internedAttributes.get(att);
//    if (result == null && !ignoredAttNames.contains(att.getName())
//        && (!ignorePathNames || !att.getName().contains(":"))) {
//      result = new EntityAttribute
View Full Code Here

    String key = tag.getKey();
    String value = tag.getValue();
    if (key.equals("name")) {
      wayName = value;
    } else {
      EntityAttribute att = EntityAttributeManager.instance().intern
      (new EntityAttribute(key, value));
      if (att != null)
        wayAttributes.add(att);
    }
  }
View Full Code Here

TOP

Related Classes of aimax.osm.data.entities.EntityAttribute

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.