com.depthexplorer
Class RTNRoot
java.lang.Object
edu.tufts.cs.geometry.ComputationUnit
com.depthexplorer.RenderTreeNode
com.depthexplorer.RTNRoot
- All Implemented Interfaces:
- Drawable
public class RTNRoot
- extends RenderTreeNode
- implements Drawable
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 |
RTNRoot
public RTNRoot()
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()