ini.trakem2.display
Class Treeline.RadiusNode

java.lang.Object
  extended by ini.trakem2.display.Node<java.lang.Float>
      extended by ini.trakem2.display.Treeline.RadiusNode
All Implemented Interfaces:
Taggable
Direct Known Subclasses:
Connector.ConnectorNode
Enclosing class:
Treeline

public static class Treeline.RadiusNode
extends Node<java.lang.Float>


Nested Class Summary
 
Nested classes/interfaces inherited from class ini.trakem2.display.Node
Node.BranchAndEndNodeIterator<I>, Node.BranchNodeIterator<I>, Node.BreadthFirstSubtreeIterator<I>, Node.EndNodeIterator<I>, Node.FilteredIterator<I>, Node.NodeCollection<I>, Node.NodeIterator<I>, Node.Operation<I>, Node.SlabIterator<I>, Node.SubtreeIterator<I>
 
Field Summary
protected  float r
           
 
Fields inherited from class ini.trakem2.display.Node
children, color, confidence, FALSE, la, MAX_EDGE_CONFIDENCE, parent, TEST, TRUE, x, y
 
Fields inherited from interface ini.trakem2.display.Taggable
DASHED_STROKE, TAG_BACKGROUND
 
Constructor Summary
Treeline.RadiusNode(float lx, float ly, Layer la)
           
Treeline.RadiusNode(float lx, float ly, Layer la, float radius)
           
Treeline.RadiusNode(java.util.HashMap<java.lang.String,java.lang.String> attr)
          To reconstruct from XML, without a layer.
 
Method Summary
 void apply(mpicbg.models.CoordinateTransform ct, java.awt.geom.Area roi)
           
 void apply(VectorDataTransform vdt)
           
 java.lang.Float getData()
           
 java.lang.Float getDataCopy()
           
 boolean intersects(java.awt.geom.Area a)
          Expects @param a in local coords.
 boolean isRoughlyInside(java.awt.Rectangle localbox)
          May return a false positive but never a false negative.
 Node<java.lang.Float> newInstance(float lx, float ly, Layer layer)
           
 void paintData(java.awt.Graphics2D g, java.awt.Rectangle srcRect, Tree<java.lang.Float> tree, java.awt.geom.AffineTransform to_screen, java.awt.Color cc, Layer active_layer)
           
 boolean setData(java.lang.Float radius)
          Set the radius to a positive value.
protected  void transformData(java.awt.geom.AffineTransform aff)
          Apply @param aff to the data, not to the x,y position.
 
Methods inherited from class ini.trakem2.display.Node
add, addTag, adjustConfidence, apply, applyToSlab, applyToSubtree, asPoint, clone, computeAllDegrees, computeDegree, copyProperties, findLinkTargets, findNextBranchOrEndPoint, findPath, findPreviousBranchOrRootPoint, getArea, getBranchAndEndNodes, getBranchNodes, getChildren, getChildrenCount, getChildrenNodes, getColor, getConfidence, getEdgeConfidence, getEdgeConfidence, getEndNodes, getLayer, getParent, getSlabNodes, getSubtreeNodes, getTags, getX, getY, hasChildren, hasSameTags, hasTag, paintHandle, paintHandle, remove, removeAllTags, removeTag, setColor, setConfidence, setLayer, toString, translate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

r

protected float r
Constructor Detail

Treeline.RadiusNode

public Treeline.RadiusNode(float lx,
                           float ly,
                           Layer la)

Treeline.RadiusNode

public Treeline.RadiusNode(float lx,
                           float ly,
                           Layer la,
                           float radius)

Treeline.RadiusNode

public Treeline.RadiusNode(java.util.HashMap<java.lang.String,java.lang.String> attr)
To reconstruct from XML, without a layer.

Method Detail

newInstance

public Node<java.lang.Float> newInstance(float lx,
                                         float ly,
                                         Layer layer)
Specified by:
newInstance in class Node<java.lang.Float>

setData

public final boolean setData(java.lang.Float radius)
Set the radius to a positive value. When zero or negative, it's set to zero.

Specified by:
setData in class Node<java.lang.Float>

getData

public final java.lang.Float getData()
Specified by:
getData in class Node<java.lang.Float>

getDataCopy

public final java.lang.Float getDataCopy()
Specified by:
getDataCopy in class Node<java.lang.Float>

isRoughlyInside

public boolean isRoughlyInside(java.awt.Rectangle localbox)
Description copied from class: Node
May return a false positive but never a false negative. Checks only for itself and towards its parent.

Overrides:
isRoughlyInside in class Node<java.lang.Float>

paintData

public void paintData(java.awt.Graphics2D g,
                      java.awt.Rectangle srcRect,
                      Tree<java.lang.Float> tree,
                      java.awt.geom.AffineTransform to_screen,
                      java.awt.Color cc,
                      Layer active_layer)
Specified by:
paintData in class Node<java.lang.Float>

intersects

public boolean intersects(java.awt.geom.Area a)
Expects @param a in local coords.

Specified by:
intersects in class Node<java.lang.Float>

apply

public void apply(mpicbg.models.CoordinateTransform ct,
                  java.awt.geom.Area roi)
Overrides:
apply in class Node<java.lang.Float>

apply

public void apply(VectorDataTransform vdt)
Overrides:
apply in class Node<java.lang.Float>

transformData

protected void transformData(java.awt.geom.AffineTransform aff)
Description copied from class: Node
Apply @param aff to the data, not to the x,y position.

Overrides:
transformData in class Node<java.lang.Float>