ini.trakem2.display
Class Connector.ConnectorNode

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

public static class Connector.ConnectorNode
extends Treeline.RadiusNode


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
 
Fields inherited from class ini.trakem2.display.Treeline.RadiusNode
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
Connector.ConnectorNode(float lx, float ly, Layer la)
           
Connector.ConnectorNode(float lx, float ly, Layer la, float radius)
           
Connector.ConnectorNode(java.util.HashMap<java.lang.String,java.lang.String> attr)
          To reconstruct from XML, without a layer.
 
Method Summary
 java.awt.geom.Area getArea()
          Returns area in local coords.
 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)
           
 void paintHandle(java.awt.Graphics2D g, java.awt.Rectangle srcRect, double magnification, Tree<java.lang.Float> t)
           
 
Methods inherited from class ini.trakem2.display.Treeline.RadiusNode
apply, apply, getData, getDataCopy, setData, transformData
 
Methods inherited from class ini.trakem2.display.Node
add, addTag, adjustConfidence, apply, applyToSlab, applyToSubtree, asPoint, clone, computeAllDegrees, computeDegree, copyProperties, findLinkTargets, findNextBranchOrEndPoint, findPath, findPreviousBranchOrRootPoint, getBranchAndEndNodes, getBranchNodes, getChildren, getChildrenCount, getChildrenNodes, getColor, getConfidence, getEdgeConfidence, getEdgeConfidence, getEndNodes, getLayer, getParent, getSlabNodes, getSubtreeNodes, getTags, getX, getY, hasChildren, hasSameTags, hasTag, 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
 

Constructor Detail

Connector.ConnectorNode

public Connector.ConnectorNode(float lx,
                               float ly,
                               Layer la)

Connector.ConnectorNode

public Connector.ConnectorNode(float lx,
                               float ly,
                               Layer la,
                               float radius)

Connector.ConnectorNode

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

Method Detail

newInstance

public final Node<java.lang.Float> newInstance(float lx,
                                               float ly,
                                               Layer layer)
Overrides:
newInstance in class Treeline.RadiusNode

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)
Overrides:
paintData in class Treeline.RadiusNode

intersects

public boolean intersects(java.awt.geom.Area a)
Description copied from class: Treeline.RadiusNode
Expects @param a in local coords.

Overrides:
intersects in class Treeline.RadiusNode

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 Treeline.RadiusNode

getArea

public java.awt.geom.Area getArea()
Description copied from class: Node
Returns area in local coords.

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

paintHandle

public void paintHandle(java.awt.Graphics2D g,
                        java.awt.Rectangle srcRect,
                        double magnification,
                        Tree<java.lang.Float> t)
Overrides:
paintHandle in class Node<java.lang.Float>