flatscape.util
Class OverlayUtils

java.lang.Object
  |
  +--flatscape.util.OverlayUtils

public class OverlayUtils
extends java.lang.Object

Utilities for handling overlays

Copyright (c) 2001 Rutgers, The State University of New Jersey

Since:
manifold %Version%
Version:
%Version%, %Time%

Constructor Summary
OverlayUtils()
           
 
Method Summary
static FGlyph getOverlay(FGlyph root, java.util.List path)
          Searches a glyph tree for a match to the given path.
static java.lang.String getOverlayDescriptor(FSceneGraph scenegraph, org.w3c.dom.Element overlay)
          Generates a descriptive string of the path to a specific overlay.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OverlayUtils

public OverlayUtils()
Method Detail

getOverlay

public static FGlyph getOverlay(FGlyph root,
                                java.util.List path)
Searches a glyph tree for a match to the given path. The matching is done on the name property.

Parameters:
root - the root of the glyph tree to search
path - the path as a list of strings excluding the root
Returns:
the glyph at end of the path if found, else null

getOverlayDescriptor

public static java.lang.String getOverlayDescriptor(FSceneGraph scenegraph,
                                                    org.w3c.dom.Element overlay)
Generates a descriptive string of the path to a specific overlay. The root is not shown.



Copyright (c) 2003 Rutgers, The State University of New Jersey