Beispiel #1
0
  // ---------------------------------------------
  //  get def node
  // ---------------------------------------------
  public VRMLNode getDefNode(String defName) {
    Map<String, VRMLNodeType> m = handler.getDefMap();

    VRMLNode node = (VRMLNode) m.get(defName);

    return node;
  }
Beispiel #2
0
  // ---------------------------------------------
  //  get all def names
  // ---------------------------------------------
  public String[] getDefNames() {
    Map<String, VRMLNodeType> m = handler.getDefMap();

    Set<String> strSet = m.keySet();
    String[] ret = new String[strSet.size()];

    int i = 0;
    Iterator<String> itr = strSet.iterator();
    while (itr.hasNext()) {
      String defName = itr.next();
      ret[i] = defName;
      i++;
    }

    return ret;
  }