jebl.gui.trees.treeviewer_dev.treelayouts
Class RadialTreeLayout

java.lang.Object
  extended by jebl.gui.trees.treeviewer_dev.treelayouts.AbstractTreeLayout
      extended by jebl.gui.trees.treeviewer_dev.treelayouts.RadialTreeLayout
All Implemented Interfaces:
TreeLayout

public class RadialTreeLayout
extends AbstractTreeLayout

Author:
Andrew Rambaut

Nested Class Summary
 
Nested classes/interfaces inherited from interface jebl.gui.trees.treeviewer_dev.treelayouts.TreeLayout
TreeLayout.AxisType
 
Field Summary
 
Fields inherited from class jebl.gui.trees.treeviewer_dev.treelayouts.AbstractTreeLayout
branchColouringAttribute, branchLabelPaths, branchPaths, calloutPaths, collapseAttributeName, collapsedShapes, nodeBarPaths, nodeLabelPaths, nodePoints, showingCollapsedTipLabels, tipLabelPaths, tree
 
Constructor Summary
RadialTreeLayout()
           
 
Method Summary
 Shape getHeightArea(double height1, double height2)
          Return a shape that defines a particular height interval.
 Line2D getHeightLine(double height)
          Return a line that defines a particular height.
 double getHeightOfPoint(Point2D point)
           
 double getSpread()
           
 TreeLayout.AxisType getXAxisType()
          Return whether the x axis is continuous or discrete
 TreeLayout.AxisType getYAxisType()
          Return whether the y axis is continuous or discrete
 boolean isShowingRootBranch()
          Return whether this layout displays a root branch
 boolean maintainAspectRatio()
          Return whether the two axis scales should be maintained relative to each other
 void setSpread(double spread)
           
protected  void validate()
           
 
Methods inherited from class jebl.gui.trees.treeviewer_dev.treelayouts.AbstractTreeLayout
addTreeLayoutListener, fireTreeLayoutChanged, getBranchColouringAttribute, getBranchLabelPath, getBranchLabelPathMap, getBranchPath, getBranchPathMap, getCalloutPath, getCalloutPathMap, getCollapseAttributeName, getCollapsedShape, getCollapsedShapeMap, getNodeBarPath, getNodeBarPathMap, getNodeLabelPath, getNodeLabelPathMap, getNodePoint, getTipLabelPath, getTipLabelPathMap, invalidate, isShowingCollapsedTipLabels, isShowingColouring, removeTreeLayoutListener, setBranchColouringAttribute, setCollapseAttributeName, setShowingCollapsedTipLabels, setTree
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RadialTreeLayout

public RadialTreeLayout()
Method Detail

getXAxisType

public TreeLayout.AxisType getXAxisType()
Description copied from interface: TreeLayout
Return whether the x axis is continuous or discrete

Returns:
the axis type

getYAxisType

public TreeLayout.AxisType getYAxisType()
Description copied from interface: TreeLayout
Return whether the y axis is continuous or discrete

Returns:
the axis type

isShowingRootBranch

public boolean isShowingRootBranch()
Description copied from interface: TreeLayout
Return whether this layout displays a root branch

Returns:
showing root branch?

maintainAspectRatio

public boolean maintainAspectRatio()
Description copied from interface: TreeLayout
Return whether the two axis scales should be maintained relative to each other

Returns:
a boolean

getHeightOfPoint

public double getHeightOfPoint(Point2D point)

getHeightLine

public Line2D getHeightLine(double height)
Description copied from interface: TreeLayout
Return a line that defines a particular height. Some layouts won't be able to produce this and may throw an UnsupportedOperationException.

Returns:
the line

getHeightArea

public Shape getHeightArea(double height1,
                           double height2)
Description copied from interface: TreeLayout
Return a shape that defines a particular height interval. Some layouts won't be able to produce this and may throw an UnsupportedOperationException.

Returns:
the area

getSpread

public double getSpread()

setSpread

public void setSpread(double spread)

validate

protected void validate()
Specified by:
validate in class AbstractTreeLayout