public class Stack extends ZDisplayable implements ImageData
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 |
|---|
Stack(Project project,
long id,
HashMap<String,String> ht,
HashMap<Displayable,String> ht_links)
Construct a Stack from an XML entry.
|
Stack(Project project,
String title,
double x,
double y,
Layer initial_layer,
String file_path) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
calculateBoundingBox(Layer la) |
Displayable |
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.
|
long |
estimateImageFileSize() |
static void |
exportDTD(StringBuilder sb_header,
HashSet<String> hs,
String indent) |
void |
exportXML(StringBuilder sb_body,
String indent,
XMLOptions options)
Opens and closes the tag and exports data.
|
protected Rectangle |
getBounds(Rectangle rect)
Bounding box of the transformed data (or 0,0,0,0 when no data).
|
String |
getFilePath() |
Layer |
getFirstLayer()
Returns the layer of lowest Z coordinate where this ZDisplayable has a point in.
|
InvertibleCoordinateTransform |
getInvertibleCoordinateTransform() |
Polygon |
getPerimeter()
For now, just returns the bounding box---we can refine this later
|
boolean |
intersects(Area area,
double z_first,
double z_last) |
boolean |
isDeletable() |
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.
|
void |
paint(Graphics2D g,
Rectangle srcRect,
double magnification,
boolean active,
int channels,
Layer active_layer,
List<Layer> layers)
Slow paint: will wait until the image is generated and cached, then paint it.
|
void |
prePaint(Graphics2D g,
Rectangle srcRect,
double magnification,
boolean active,
int channels,
Layer active_layer,
List<Layer> _ignored)
Will not paint but fork a task to create an image to paint later, when not already cached.
|
boolean |
remove2(boolean check)
Avoid calling the trees: the stack exists only in the LayerSet ZDisplayable's list.
|
void |
setAffineTransform(AffineTransform at)
Sets the matrix values of this Displayable's AffineTransform to those of the given AffineTransform.
|
void |
setFilePath(String path)
Will decache the ImagePlus if loaded.
|
void |
setInvertibleCoordinateTransform(InvertibleCoordinateTransform ict) |
void |
setInvertibleCoordinateTransformSilently(InvertibleCoordinateTransform ict)
For reconstruction purposes, overwrites the present InvertibleCoordinateTransform, if any, with the given one.
|
crop, exportDTD, getBucketable, getLayerIds, getLayerSet, layerRemoved, paintsAt, remove, setColor, setLayer, setLayerSet, setLayerSet, setVisible, softRemove, transformPoints, updateBucket, updateBucketadjustProperties, areThereLayerCrossLinks, canSendTo, clone, clone, commonDTDChildren, contains, contains, deselect, destroy, displacePoints, exportSVG, findById, findNearestPoint, findNearestPoint, getAffineTransform, getAffineTransformCopy, getAlpha, getAnnotation, getArea, getAreaAt, getAreaForBucket, getBoundingBox, getBoundingBox, getBoundingBox, getBounds, getColor, getComposite, getComposite, getCompositeMode, getHeight, getIntersection, getLayer, getLayersWithData, getLinked, getLinked, getLinkedBox, getLinkedGroup, getLinkedProperties, getLinkedProperties, getLinkedProperty, getLinkedProperty, getMinimalBoundingBox, getNameId, 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, measure, mouseDragged, mousePressed, mouseReleased, mouseWheelMoved, paintAsBox, paintOffscreen, paintSnapshot, preConcatenate, preTransform, processAdjustPropertiesDialog, removeLinkedProperties, removeLinkedPropertiesFromOrigins, repaint, restXML, rotate, rotate, rotatePoints, scale, scale, scalePoints, 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, getInfo, getProject, getUniqueIdentifier, removeFromDatabase, updateInDatabasepublic Stack(Project project, String title, double x, double y, Layer initial_layer, String file_path)
public InvertibleCoordinateTransform getInvertibleCoordinateTransform()
public Layer getFirstLayer()
ZDisplayablegetFirstLayer in class ZDisplayablepublic boolean intersects(Area area, double z_first, double z_last)
intersects in class ZDisplayablepublic boolean linkPatches()
ZDisplayablelinkPatches in class ZDisplayablepublic Displayable clone(Project pr, boolean copy_id)
Displayableclone in class Displayablepublic boolean isDeletable()
isDeletable in class Displayablepublic String getFilePath()
public void setFilePath(String path)
public long estimateImageFileSize()
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 void prePaint(Graphics2D g, Rectangle srcRect, double magnification, boolean active, int channels, Layer active_layer, List<Layer> _ignored)
prePaint in interface PaintableprePaint in class Displayablepublic static final void exportDTD(StringBuilder sb_header, HashSet<String> hs, String indent)
public void exportXML(StringBuilder sb_body, String indent, XMLOptions options)
exportXML in class ZDisplayableprotected Rectangle getBounds(Rectangle rect)
DisplayablegetBounds in class Displayablepublic Polygon getPerimeter()
getPerimeter in class Displayablepublic void setInvertibleCoordinateTransformSilently(InvertibleCoordinateTransform ict)
public void setInvertibleCoordinateTransform(InvertibleCoordinateTransform ict)
public void setAffineTransform(AffineTransform at)
DisplayablesetAffineTransform in class Displayablepublic boolean remove2(boolean check)
remove2 in class ZDisplayableprotected boolean calculateBoundingBox(Layer la)
calculateBoundingBox in class ZDisplayableCopyright © 2015–2021 Fiji. All rights reserved.