/** * @return an ordered list of nodes from the root of the tree to this node */ public List getPath(List retVec) { if (retVec == null) retVec = new ArrayList(); if (parent != null) { parent.getPath(retVec); } retVec.add(this); return retVec; }
/** * @return an ordered list of nodes from the root of the tree to this node */ public List getPath(List retVec) { if (retVec == null) { retVec = new ArrayList(); } if (parent != null) { parent.getPath(retVec); } retVec.add(this); return retVec; }
/** * @param retVec * @return an ordered list of nodes from the root of the tree to this node */ public List<SVGElement> getPath(List<SVGElement> retVec) { if (retVec == null) { retVec = new ArrayList<SVGElement>(); } if (parent != null) { parent.getPath(retVec); } retVec.add(this); return retVec; }
/** * @param retVec * @return an ordered list of nodes from the root of the tree to this node */ public List<SVGElement> getPath(List<SVGElement> retVec) { if (retVec == null) { retVec = new ArrayList<SVGElement>(); } if (parent != null) { parent.getPath(retVec); } retVec.add(this); return retVec; }