com.depthexplorer
Class RTNRoot

java.lang.Object
  extended by edu.tufts.cs.geometry.ComputationUnit
      extended by com.depthexplorer.RenderTreeNode
          extended by com.depthexplorer.RTNRoot
All Implemented Interfaces:
Drawable

public class RTNRoot
extends RenderTreeNode
implements Drawable


Nested Class Summary
(package private)  class RTNRoot.StringInputStream
           
 
Field Summary
 
Fields inherited from class com.depthexplorer.RenderTreeNode
children, ps
 
Constructor Summary
RTNRoot()
           
 
Method Summary
 void draw(BufferedImage image, double pointDim, double scale, Point2D center)
           
 void draw(Graphics2D g2, double pointDim)
           
static Properties getProperties()
           
 void load(String xmlURL)
           
 void loadFromString(String xmlData)
           
protected  void process()
           
 void render()
           
static double roundTwoDecimals(double val)
           
protected  void setAttribute(String name, String value)
           
 void setDefaults()
           
 
Methods inherited from class com.depthexplorer.RenderTreeNode
build, colorFromString, getInstanceFromRegistrar, interpolateAttribute, normalizeDepth, processChildren
 
Methods inherited from class edu.tufts.cs.geometry.ComputationUnit
setParameter, setParameterString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RTNRoot

public RTNRoot()
Method Detail

loadFromString

public void loadFromString(String xmlData)
                    throws Exception
Throws:
Exception

load

public void load(String xmlURL)
          throws Exception
Throws:
Exception

render

public void render()

setAttribute

protected void setAttribute(String name,
                            String value)
                     throws Exception
Specified by:
setAttribute in class RenderTreeNode
Throws:
Exception

process

protected void process()
Specified by:
process in class RenderTreeNode

draw

public void draw(Graphics2D g2,
                 double pointDim)
Specified by:
draw in interface Drawable

draw

public void draw(BufferedImage image,
                 double pointDim,
                 double scale,
                 Point2D center)

roundTwoDecimals

public static double roundTwoDecimals(double val)

setDefaults

public void setDefaults()
Specified by:
setDefaults in class RenderTreeNode

getProperties

public static Properties getProperties()