public static class Treeline.RadiusNode extends Node<Float>
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>
Modifier and Type | Field and Description |
---|---|
protected float |
r |
children, color, confidence, la, MAX_EDGE_CONFIDENCE, parent, x, y
DASHED_STROKE, TAG_BACKGROUND
Constructor and Description |
---|
RadiusNode(float lx,
float ly,
Layer la) |
RadiusNode(float lx,
float ly,
Layer la,
float radius) |
RadiusNode(HashMap<String,String> attr)
To reconstruct from XML, without a layer.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(CoordinateTransform ct,
Area roi) |
void |
apply(VectorDataTransform vdt) |
Float |
getData() |
Float |
getDataCopy() |
boolean |
intersects(Area a)
Expects @param a in local coords.
|
boolean |
isRoughlyInside(Rectangle localbox)
May return a false positive but never a false negative.
|
Node<Float> |
newInstance(float lx,
float ly,
Layer layer) |
void |
paintData(Graphics2D g,
Rectangle srcRect,
Tree<Float> tree,
AffineTransform to_screen,
Color cc,
Layer active_layer) |
boolean |
setData(Float radius)
Set the radius to a positive value.
|
protected void |
transformData(AffineTransform aff)
Apply @param aff to the data, not to the x,y position.
|
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, setPosition, setPosition, toString, translate
public RadiusNode(float lx, float ly, Layer la)
public RadiusNode(float lx, float ly, Layer la, float radius)
public Node<Float> newInstance(float lx, float ly, Layer layer)
newInstance
in class Node<Float>
public final boolean setData(Float radius)
public final Float getDataCopy()
getDataCopy
in class Node<Float>
public boolean isRoughlyInside(Rectangle localbox)
Node
isRoughlyInside
in class Node<Float>
public void paintData(Graphics2D g, Rectangle srcRect, Tree<Float> tree, AffineTransform to_screen, Color cc, Layer active_layer)
public boolean intersects(Area a)
intersects
in class Node<Float>
public void apply(CoordinateTransform ct, Area roi)
public void apply(VectorDataTransform vdt)
protected void transformData(AffineTransform aff)
Node
transformData
in class Node<Float>
Copyright © 2015–2021 Fiji. All rights reserved.