public class Stack extends ZDisplayable implements ImageData
Displayable.DataPackage, Displayable.DoEdit, Displayable.DoEdits, Displayable.DoTransforms, Displayable.SliderListener
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 |
---|
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, updateBucket
adjustProperties, 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, xmlError
addToDatabase, getId, getInfo, getProject, getUniqueIdentifier, removeFromDatabase, updateInDatabase
public Stack(Project project, String title, double x, double y, Layer initial_layer, String file_path)
public InvertibleCoordinateTransform getInvertibleCoordinateTransform()
public Layer getFirstLayer()
ZDisplayable
getFirstLayer
in class ZDisplayable
public boolean intersects(Area area, double z_first, double z_last)
intersects
in class ZDisplayable
public boolean linkPatches()
ZDisplayable
linkPatches
in class ZDisplayable
public Displayable clone(Project pr, boolean copy_id)
Displayable
clone
in class Displayable
public boolean isDeletable()
isDeletable
in class Displayable
public 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 Paintable
paint
in class Displayable
public void prePaint(Graphics2D g, Rectangle srcRect, double magnification, boolean active, int channels, Layer active_layer, List<Layer> _ignored)
prePaint
in interface Paintable
prePaint
in class Displayable
public 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 ZDisplayable
protected Rectangle getBounds(Rectangle rect)
Displayable
getBounds
in class Displayable
public Polygon getPerimeter()
getPerimeter
in class Displayable
public void setInvertibleCoordinateTransformSilently(InvertibleCoordinateTransform ict)
public void setInvertibleCoordinateTransform(InvertibleCoordinateTransform ict)
public void setAffineTransform(AffineTransform at)
Displayable
setAffineTransform
in class Displayable
public boolean remove2(boolean check)
remove2
in class ZDisplayable
protected boolean calculateBoundingBox(Layer la)
calculateBoundingBox
in class ZDisplayable
Copyright © 2015–2021 Fiji. All rights reserved.