public class Treeline extends Tree<Float>
Modifier and Type | Class and Description |
---|---|
static class |
Treeline.RadiusNode |
Tree.MeasurementPair, Tree.MeasurePathDistance<I>, Tree.MeshData, Tree.NodePath, Tree.Pair
Displayable.DataPackage, Displayable.DoEdit, Displayable.DoEdits, Displayable.DoTransforms, Displayable.SliderListener
Modifier and Type | Field and Description |
---|---|
protected static float |
last_radius |
end_nodes, node_layer_map, root
layer_set
alpha, 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 |
---|
Treeline(Project project,
long id,
HashMap<String,String> ht_attr,
HashMap<Displayable,String> ht_links)
Reconstruct from XML.
|
Treeline(Project project,
long id,
String title,
float width,
float height,
float alpha,
boolean visible,
Color color,
boolean locked,
AffineTransform at)
For cloning purposes, does not call addToDatabase()
|
Treeline(Project project,
String title) |
Modifier and Type | Method and Description |
---|---|
protected Node<Float> |
adjustNodeRadius(float inc,
float x,
float y,
Layer layer,
DisplayCanvas dc) |
protected boolean |
askAdjustRadius(Node<Float> nd) |
Treeline |
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.
|
protected Tree.MeasurementPair |
createMeasurementPair(Tree.NodePath np) |
static void |
exportDTD(StringBuilder sb_header,
HashSet<String> hs,
String indent) |
protected boolean |
exportXMLNodeAttributes(StringBuilder indent,
StringBuilder sb,
Node<Float> node)
Export the radius only if it is larger than zero.
|
protected boolean |
exportXMLNodeData(StringBuilder indent,
StringBuilder sb,
Node<Float> node) |
Tree.MeshData |
generateMesh(double scale_,
int parallels)
Returns a list of two lists: the
List<Point3f> and the corresponding List<Color3f> . |
protected Rectangle |
getBounds(Collection<? extends Node<Float>> nodes) |
void |
keyPressed(KeyEvent ke) |
void |
mouseDragged(MouseEvent me,
Layer la,
int x_p,
int y_p,
int x_d,
int y_d,
int x_d_old,
int y_d_old) |
void |
mousePressed(MouseEvent me,
Layer la,
int x_p,
int y_p,
double mag) |
void |
mouseReleased(MouseEvent me,
Layer la,
int x_p,
int y_p,
int x_d,
int y_d,
int x_r,
int y_r) |
void |
mouseWheelMoved(MouseWheelEvent mwe)
Does nothing unless overriden.
|
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.
|
protected boolean |
requireAltDownToEditRadius() |
addNode, addToLinkLater, adjustEdgeConfidence, adjustNodeColors, apply, apply, asPoint, asVertices, cacheSubtree, calculateBoundingBox, canJoin, clearCache, clearState, colorizeByBranchBetweennessCentrality, colorizeByNodeBetweennessCentrality, computeAllDegrees, computeCentrality, contains, copyAs, createCoordinate, createMultiTableView, createNewNode, createReviewStack, crop, 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, layerRemoved, linkPatches, markNear, measure, 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, updateViewData
exportDTD, getBucketable, getLayerSet, remove, setColor, setLayer, setLayerSet, setLayerSet, setVisible, softRemove, transformPoints, updateBucket, updateBucket
adjustProperties, 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, xmlError
addToDatabase, getId, getInfo, getProject, getUniqueIdentifier, removeFromDatabase, updateInDatabase
public Treeline(Project project, long id, HashMap<String,String> ht_attr, HashMap<Displayable,String> ht_links)
public Treeline(Project project, long id, String title, float width, float height, float alpha, boolean visible, Color color, boolean locked, AffineTransform at)
public Tree<Float> newInstance()
Tree
newInstance
in class Tree<Float>
public Node<Float> newNode(HashMap<String,String> ht_attr)
Tree
public Treeline clone(Project pr, boolean copy_id)
Displayable
clone
in class Displayable
public void mousePressed(MouseEvent me, Layer la, int x_p, int y_p, double mag)
mousePressed
in class Tree<Float>
protected boolean requireAltDownToEditRadius()
public void mouseDragged(MouseEvent me, Layer la, int x_p, int y_p, int x_d, int y_d, int x_d_old, int y_d_old)
mouseDragged
in class Tree<Float>
public void mouseReleased(MouseEvent me, Layer la, int x_p, int y_p, int x_d, int y_d, int x_r, int y_r)
mouseReleased
in class Tree<Float>
public void mouseWheelMoved(MouseWheelEvent mwe)
Displayable
mouseWheelMoved
in class Tree<Float>
protected Node<Float> adjustNodeRadius(float inc, float x, float y, Layer layer, DisplayCanvas dc)
public static void exportDTD(StringBuilder sb_header, HashSet<String> hs, String indent)
protected boolean exportXMLNodeAttributes(StringBuilder indent, StringBuilder sb, Node<Float> node)
exportXMLNodeAttributes
in class Tree<Float>
protected boolean exportXMLNodeData(StringBuilder indent, StringBuilder sb, Node<Float> node)
exportXMLNodeData
in class Tree<Float>
public Tree.MeshData generateMesh(double scale_, int parallels)
List<Point3f>
and the corresponding List<Color3f>
.public void keyPressed(KeyEvent ke)
keyPressed
in class Tree<Float>
protected Rectangle getBounds(Collection<? extends Node<Float>> nodes)
protected Tree.MeasurementPair createMeasurementPair(Tree.NodePath np)
createMeasurementPair
in class Tree<Float>
Copyright © 2015–2021 Fiji. All rights reserved.