public class Connector extends Treeline
| Modifier and Type | Class and Description |
|---|---|
static class |
Connector.ConnectorNode |
Treeline.RadiusNodeTree.MeasurementPair, Tree.MeasurePathDistance<I>, Tree.MeshData, Tree.NodePath, Tree.PairDisplayable.DataPackage, Displayable.DoEdit, Displayable.DoEdits, Displayable.DoTransforms, Displayable.SliderListenerlast_radiusend_nodes, node_layer_map, rootlayer_setalpha, annotation, at, color, COMPOSITE_ADD, COMPOSITE_COLOR_YCBCR, COMPOSITE_DIFFERENCE, COMPOSITE_MULTIPLY, COMPOSITE_NORMAL, COMPOSITE_SUBTRACT, compositeModes, height, hs_linked, last_color, layer, linked_props, linked_props_origins, locked, props, TAG_ATTR1, TAG_ATTR2, title, visible, width| Constructor and Description |
|---|
Connector(Project project,
long id,
HashMap<String,String> ht_attr,
HashMap<Displayable,String> ht_links)
Reconstruct from XML.
|
Connector(Project project,
long id,
String title,
float width,
float height,
float alpha,
boolean visible,
Color color,
boolean locked,
AffineTransform at) |
Connector(Project project,
String title) |
| Modifier and Type | Method and Description |
|---|---|
int |
addTarget(double x,
double y,
long layer_id,
double r) |
int |
addTarget(float x,
float y,
long layer_id,
float r) |
Connector |
clone(Project pr,
boolean copy_id)
Performs a deep copy of this object, obtaining its unique id either from the given project or the exact same as this object's id.
|
boolean |
crop(List<Layer> range)
If the root node (the origin) does not remain within the range, this Connector is left empty.
|
static void |
exportDTD(StringBuilder sb_header,
HashSet<String> hs,
String indent) |
protected Rectangle |
getBounds(Collection<? extends Node<Float>> nodes) |
Coordinate<Node<Float>> |
getCoordinate(int i)
Get a coordinate for target i.
|
Coordinate<Node<Float>> |
getCoordinateAtOrigin() |
String |
getInfo()
Returns id and project name; this method is meant to be overriden by any of the subclasses.
|
Set<Displayable> |
getOrigins()
Returns the set of Displayable objects under the origin point, or an empty set if none.
|
Set<Displayable> |
getOrigins(Class<?> c)
Returns the set of Displayable objects under the origin point, or an empty set if none.
|
Set<Displayable> |
getOrigins(Class<?> c,
boolean instance_of) |
int |
getTargetCount() |
List<Point3f> |
getTargetPoints(boolean calibrated) |
List<Set<Displayable>> |
getTargets()
Returns the list of sets of visible Displayable objects under each target, or an empty list if none.
|
List<Set<Displayable>> |
getTargets(Class<?> c)
Returns the list of sets of visible Displayable objects under each target, or an empty list if none.
|
List<Set<Displayable>> |
getTargets(Class<?> c,
boolean instance_of) |
boolean |
intersectsOrigin(Area area,
Layer la) |
boolean |
intersectsOrigin(double wx,
double wy,
Layer la)
|
protected boolean |
layerRemoved(Layer la)
If the root node is in Layer @param la, then all nodes are removed.
|
ij.measure.ResultsTable |
measure(ij.measure.ResultsTable rt)
Measures number of branch points and end points, and total cable length.
|
static Connector |
merge(List<Connector> col)
Takes the List of Connector instances and adds the targets of all to the first one.
|
protected void |
mergeTargets(Connector c) |
void |
mousePressed(MouseEvent me,
Layer layer,
int x_p,
int y_p,
double mag)
Add a root or child nodes to root.
|
Tree<Float> |
newInstance()
Create a new instance, intialized with same ZDisplayable-level parameters (affine, color, title, etc.).
|
Node<Float> |
newNode(float lx,
float ly,
Layer la,
Node<?> modelNode) |
Node<Float> |
newNode(HashMap<String,String> ht_attr)
To reconstruct from XML.
|
void |
readLegacyXML(LayerSet ls,
HashMap<String,String> ht_attr,
HashMap<Displayable,String> ht_links) |
protected boolean |
requireAltDownToEditRadius() |
adjustNodeRadius, askAdjustRadius, createMeasurementPair, exportXMLNodeAttributes, exportXMLNodeData, generateMesh, keyPressed, mouseDragged, mouseReleased, mouseWheelMovedaddNode, addToLinkLater, adjustEdgeConfidence, adjustNodeColors, apply, apply, asPoint, asVertices, cacheSubtree, calculateBoundingBox, canJoin, clearCache, clearState, colorizeByBranchBetweennessCentrality, colorizeByNodeBetweennessCentrality, computeAllDegrees, computeCentrality, contains, copyAs, createCoordinate, createMultiTableView, createNewNode, createReviewStack, deselect, destroy, dropAllTags, duplicateAs, exportXML, findClosestNode, findClosestNodeW, findClosestNodeW, findConnectors, findFirstIntersectingNode, findIntersecting, findNearAndGetNext, findNearAndGetPrevious, findNearestEdge, findNearestEndNode, findNearestNode, findNextBranchOrEndPoint, findNode, findNodeNear, findNodeNear, findPreviousBranchOrRootPoint, findTaggedPairs, findTags, fireNodeRemoved, firstIntersectingNode, fix, flyThrough, flyThroughMarked, generateAllReviewStacks, generateRegions, generateReviewStackForSlab, generateReviewStackForSlab, generateSkeleton, generateSubtreeReviewStacks, generateSubtreeReviewStacks, generateTriangles, getActive, getAreaAt, getBounds, getBranchAndEndNodes, getBranchNodes, getEndNodes, getFirstLayer, getLastAdded, getLastEdited, getLastVisited, getLayerIds, getLayersWithData, getMarked, getNodesAt, getNodesToPaint, getNodesToPaint, getOriginPoint, getPaintingBounds, getRoot, getShortTitle, insertNode, intersects, intersects, intersects, isAnyNear, isDeletable, isRoughlyInside, isTagging, join, linkPatches, markNear, measurePathDistance, measurePathDistance, measureTaggedPairs, paint, paint, paintsAt, paintSnapshot, popNode, remove2, removeFromLinkLater, removeNode, removeReviews, repaint, reRoot, reRoot, setActive, setEdgeConfidence, setLastAdded, setLastEdited, setLastMarked, setLastVisited, setRoot, splitAt, splitNear, toClosestPaintedNode, unmark, updateCache, updateView, updateViewDataexportDTD, getBucketable, getLayerSet, remove, setColor, setLayer, setLayerSet, setLayerSet, setVisible, softRemove, transformPoints, updateBucket, updateBucketadjustProperties, areThereLayerCrossLinks, canSendTo, clone, clone, commonDTDChildren, contains, displacePoints, exportSVG, findById, findNearestPoint, findNearestPoint, getAffineTransform, getAffineTransformCopy, getAlpha, getAnnotation, getArea, getAreaForBucket, getBoundingBox, getBoundingBox, getBoundingBox, getBounds, getColor, getComposite, getComposite, getCompositeMode, getHeight, getIntersection, getLayer, getLinked, getLinked, getLinkedBox, getLinkedGroup, getLinkedProperties, getLinkedProperties, getLinkedProperty, getLinkedProperty, getMinimalBoundingBox, getNameId, getPerimeter, getPerimeter, getProperties, getProperty, getProperty, getTitle, getWidth, getX, getXMLSafeValue, getXMLSafeValue, getY, hasLinkedGroupWithinLayer, hasProperties, intersects, intersects, inverseTransformPoint, isLinked, isLinked, isLinked, isLocked, isLocked2, isOnlyLinkedTo, isOnlyLinkedTo, isOutOfRepaintingClip, isOutOfRepaintingClip, isVisible, link, link, makeAdjustPropertiesDialog, paintAsBox, paintOffscreen, preConcatenate, prePaint, preTransform, processAdjustPropertiesDialog, removeLinkedProperties, removeLinkedPropertiesFromOrigins, repaint, restXML, rotate, rotate, rotatePoints, scale, scale, scalePoints, setAffineTransform, setAlpha, setAlpha, setAnnotation, setCompositeMode, setDimensions, setDimensions, setLayer, setLinkedProperties, setLinkedProperty, setLocation, setLocked, setProperty, setTitle, setVisible, snapTo, toString, transform, transformPoint, transformPoint, transformPoints, transformPoints, transformPoints, transformPoints, transformPoints, transformPoints, transformPoints, transformPoints, transformPoints, transformRectangle, translate, translate, unlink, unlink, unlinkAll, updateInDatabase, xmlError, xmlErroraddToDatabase, getId, getProject, getUniqueIdentifier, removeFromDatabase, updateInDatabasepublic Connector(Project project, long id, String title, float width, float height, float alpha, boolean visible, Color color, boolean locked, AffineTransform at)
public Tree<Float> newInstance()
TreenewInstance in class Treelinepublic Node<Float> newNode(HashMap<String,String> ht_attr)
Treepublic void readLegacyXML(LayerSet ls, HashMap<String,String> ht_attr, HashMap<Displayable,String> ht_links)
public int addTarget(float x,
float y,
long layer_id,
float r)
public int addTarget(double x,
double y,
long layer_id,
double r)
protected void mergeTargets(Connector c) throws NoninvertibleTransformException
NoninvertibleTransformExceptionpublic boolean intersectsOrigin(double wx,
double wy,
Layer la)
public Set<Displayable> getOrigins(Class<?> c)
public Set<Displayable> getOrigins(Class<?> c, boolean instance_of)
public Set<Displayable> getOrigins()
public List<Set<Displayable>> getTargets(Class<?> c, boolean instance_of)
public List<Set<Displayable>> getTargets(Class<?> c)
public List<Set<Displayable>> getTargets()
public int getTargetCount()
public static void exportDTD(StringBuilder sb_header, HashSet<String> hs, String indent)
public Connector clone(Project pr, boolean copy_id)
Displayablepublic ij.measure.ResultsTable measure(ij.measure.ResultsTable rt)
Treepublic Coordinate<Node<Float>> getCoordinateAtOrigin()
public Coordinate<Node<Float>> getCoordinate(int i)
public String getInfo()
DBObjectprotected boolean layerRemoved(Layer la)
layerRemoved in class Tree<Float>public static Connector merge(List<Connector> col) throws NoninvertibleTransformException
NoninvertibleTransformExceptionpublic void mousePressed(MouseEvent me, Layer layer, int x_p, int y_p, double mag)
mousePressed in class Treelineprotected boolean requireAltDownToEditRadius()
requireAltDownToEditRadius in class Treelineprotected Rectangle getBounds(Collection<? extends Node<Float>> nodes)
Copyright © 2015–2021 Fiji. All rights reserved.