public class Dissector extends ZDisplayable implements VectorData
Displayable.DataPackage, Displayable.DoEdit, Displayable.DoEdits, Displayable.DoTransforms, Displayable.SliderListenerlayer_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 |
|---|
Dissector(Project project,
long id,
HashMap<String,String> ht,
HashMap<Displayable,String> ht_links)
Reconstruct from XML.
|
Dissector(Project project,
long id,
String title,
float width,
float height,
float alpha,
boolean visible,
Color color,
boolean locked,
AffineTransform at) |
Dissector(Project project,
String title,
double x,
double y) |
| Modifier and Type | Method and Description |
|---|---|
void |
addItem(int tag,
int radius,
String data)
For reconstruction purposes from XML.
|
boolean |
apply(Layer la,
Area roi,
CoordinateTransform ict)
Applies the 2D transform @ict (which is expected to operate on the
world coordinates version of the data contained here) only to the
data that falls within the @param roi (in world coords), and then
recomputes the bounding box and affine transform (to a translation
or identity).
|
boolean |
apply(VectorDataTransform vdt) |
protected boolean |
calculateBoundingBox(Layer la) |
Displayable |
clone(Project pr,
boolean copy_id)
Returns a deep copy.
|
boolean |
contains(Layer layer,
double x,
double y)
Calls contains(x_p, y_p) unless overriden -- in ZDisplayable objects, it tests whether the given point is contained in the part of the ZDisplayable that shows in the given layer.
|
boolean |
crop(List<Layer> range)
Retain the data within the layer range, and through out all the rest.
|
static void |
exportDTD(StringBuilder sb_header,
HashSet<String> hs,
String indent) |
void |
exportXML(StringBuilder sb_body,
String indent,
XMLOptions options)
The oid is this objects' id, whereas the 'id' tag will be the id of the wrapper Thing object.
|
Area |
getAreaAt(Layer layer)
This area is meant to represent the entire area where a Displayable paints to in the @param layer.
|
Layer |
getFirstLayer()
Returns the layer of lowest Z coordinate where this ZDisplayable has a point in.
|
String |
getInfo()
Returns:
- first line: the title of this dissector
- second line: the number of items included in this dissector
and then a list of 5 tab-separated columns: item tag, radius, x, y, z
|
Collection<Long> |
getLayerIds()
Get the list of Layer ids on which this ZDisplayable has data on.
|
boolean |
intersects(Area area,
double z_first,
double z_last) |
boolean |
isDeletable() |
protected boolean |
layerRemoved(Layer la)
Update internal datastructures to reflect the fact that @param layer has been removed from the containing LayerSet.
|
boolean |
linkPatches()
Link the Patch objects that lay underneath the part of the bounding box of this profile that shows in the current layer, so that they cannot be dragged independently.
|
ij.measure.ResultsTable |
measure(ij.measure.ResultsTable rt)
Does nothing unless overriden.
|
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 |
paint(Graphics2D g,
Rectangle srcRect,
double magnification,
boolean active,
int channels,
Layer active_layer,
List<Layer> layers) |
void |
paintSnapshot(Graphics2D g,
Layer layer,
List<Layer> layers,
Rectangle srcRect,
double mag)
Always paint as box.
|
exportDTD, getBucketable, getLayerSet, paintsAt, remove, remove2, setColor, setLayer, setLayerSet, setLayerSet, setVisible, softRemove, transformPoints, updateBucket, updateBucketadjustProperties, areThereLayerCrossLinks, canSendTo, clone, clone, commonDTDChildren, contains, deselect, destroy, displacePoints, exportSVG, findById, findNearestPoint, findNearestPoint, getAffineTransform, getAffineTransformCopy, getAlpha, getAnnotation, getArea, getAreaForBucket, getBoundingBox, getBoundingBox, getBoundingBox, getBounds, getBounds, getColor, getComposite, getComposite, getCompositeMode, getHeight, getIntersection, getLayer, getLayersWithData, getLinked, getLinked, getLinkedBox, getLinkedGroup, getLinkedProperties, getLinkedProperties, getLinkedProperty, getLinkedProperty, getMinimalBoundingBox, getNameId, getPerimeter, getPerimeter, getProperties, getProperty, getProperty, getShortTitle, getTitle, getWidth, getX, getXMLSafeValue, getXMLSafeValue, getY, hasLinkedGroupWithinLayer, hasProperties, intersects, intersects, intersects, intersects, inverseTransformPoint, isLinked, isLinked, isLinked, isLocked, isLocked2, isOnlyLinkedTo, isOnlyLinkedTo, isOutOfRepaintingClip, isOutOfRepaintingClip, isRoughlyInside, isVisible, keyPressed, link, link, makeAdjustPropertiesDialog, mouseWheelMoved, 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 Dissector(Project project, long id, String title, float width, float height, float alpha, boolean visible, Color color, boolean locked, AffineTransform at)
public void paint(Graphics2D g, Rectangle srcRect, double magnification, boolean active, int channels, Layer active_layer, List<Layer> layers)
paint in interface Paintablepaint in class Displayablepublic Layer getFirstLayer()
ZDisplayablegetFirstLayer in class ZDisplayablepublic boolean linkPatches()
ZDisplayablelinkPatches in class ZDisplayablepublic boolean contains(Layer layer, double x, double y)
Displayablecontains in class Displayablepublic Displayable clone(Project pr, boolean copy_id)
clone in class Displayablepublic boolean isDeletable()
isDeletable in class Displayablepublic void mousePressed(MouseEvent me, Layer la, int x_p, int y_p, double mag)
mousePressed in class Displayablepublic 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 Displayablepublic 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 Displayableprotected boolean calculateBoundingBox(Layer la)
calculateBoundingBox in class ZDisplayablepublic static void exportDTD(StringBuilder sb_header, HashSet<String> hs, String indent)
public void exportXML(StringBuilder sb_body, String indent, XMLOptions options)
DisplayableexportXML in class ZDisplayablepublic void addItem(int tag,
int radius,
String data)
public String getInfo()
public void paintSnapshot(Graphics2D g, Layer layer, List<Layer> layers, Rectangle srcRect, double mag)
paintSnapshot in class Displayablepublic boolean intersects(Area area, double z_first, double z_last)
intersects in class ZDisplayablepublic ij.measure.ResultsTable measure(ij.measure.ResultsTable rt)
Displayablemeasure in class Displayablepublic boolean crop(List<Layer> range)
crop in class ZDisplayableprotected boolean layerRemoved(Layer la)
ZDisplayablelayerRemoved in class ZDisplayablepublic boolean apply(Layer la, Area roi, CoordinateTransform ict) throws Exception
VectorDataapply in interface VectorDatala - Only data at this Layer may be transformed.roi - Only data inside this world-coordinates Area may be transformed.ict - The transform to apply to the data that is in @param la and within @param roi.Exceptionpublic boolean apply(VectorDataTransform vdt) throws Exception
apply in interface VectorDataExceptionpublic Collection<Long> getLayerIds()
ZDisplayablegetLayerIds in class ZDisplayablepublic Area getAreaAt(Layer layer)
DisplayablegetAreaAt in class DisplayableCopyright © 2015–2021 Fiji. All rights reserved.