Modifier and Type | Class and Description |
---|---|
protected static class |
Displayable.DataPackage |
protected static class |
Displayable.DoEdit
For any Displayable data, including: title, visible, locked, color, alpha,
and a 'data' type which includes the actual data (points, areas, etc.) and the links,width,height, and transformation (since all the latter are correlated).
|
protected static class |
Displayable.DoEdits |
protected static class |
Displayable.DoTransforms |
protected class |
Displayable.SliderListener |
Modifier and Type | Field and Description |
---|---|
protected float |
alpha |
protected String |
annotation |
protected AffineTransform |
at |
protected Color |
color |
static byte |
COMPOSITE_ADD |
static byte |
COMPOSITE_COLOR_YCBCR |
static byte |
COMPOSITE_DIFFERENCE |
static byte |
COMPOSITE_MULTIPLY |
static byte |
COMPOSITE_NORMAL |
static byte |
COMPOSITE_SUBTRACT |
protected static String[] |
compositeModes |
protected float |
height
Width and height of the data, not the bounding box.
|
protected HashSet<Displayable> |
hs_linked
The Displayable objects this one is linked to.
|
protected static Color |
last_color |
protected Layer |
layer |
protected Map<Displayable,Map<String,String>> |
linked_props
The table of tables of properties: for any target Displayable, there is a set of properties specific of the relationship between this Displayable and the target one.
|
protected Set<Displayable> |
linked_props_origins
The call back hooks to remove any linked properties in other Displayable instances when this Displayable is removed.
|
protected boolean |
locked |
protected Map<String,String> |
props
The table of key/value property pairs of this Displayable.
|
protected static String |
TAG_ATTR1 |
protected static String |
TAG_ATTR2 |
protected String |
title |
protected boolean |
visible |
protected float |
width
Width and height of the data, not the bounding box.
|
Constructor and Description |
---|
Displayable(Project project,
long id,
HashMap<String,String> ht,
HashMap<Displayable,String> ht_links)
Reconstruct a Displayable from an XML entry.
|
Displayable(Project project,
long id,
String title,
boolean locked,
AffineTransform at,
float width,
float height)
Reconstruct a Displayable from the database.
|
Displayable(Project project,
String title,
double x,
double y)
The minimal public Displayable constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
adjustProperties()
Shows a dialog to adjust properties of this object.
|
static boolean |
areThereLayerCrossLinks(Set<Layer> sublist,
boolean ignore_stacks)
Returns true if any Displayable objects of different layers in sublist are linked to each other.
|
boolean |
canSendTo(Layer layer)
Subclasses can specify the behaviour, for the default is true.
|
Displayable |
clone()
Performs a deep copy of this object.
|
Displayable |
clone(Project pr)
Performs a deep copy of this object but assigning to it the given project.
|
abstract 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.
|
protected static String |
commonDTDChildren() |
boolean |
contains(double x_p,
double y_p)
Test whether the given point falls within the perimeter of this Displayable, considering the position x,y.
|
boolean |
contains(Layer layer,
double x_p,
double y_p)
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.
|
void |
deselect()
Tell this Displayable that is has been deselected from a Display.
|
void |
destroy()
Release resources.
|
static double[][] |
displacePoints(double[][] p,
double dx,
double dy) |
static void |
exportDTD(StringBuilder sb_header,
HashSet<String> hs,
String indent) |
static void |
exportDTD(String type,
StringBuilder sb_header,
HashSet<String> hs,
String indent)
Adds simply DTD !ATTRIBUTE tags.
|
void |
exportSVG(StringBuffer data,
double z_scale,
String indent)
Does nothing unless overriden.
|
void |
exportXML(StringBuilder sb_body,
String in,
XMLOptions options)
The oid is this objects' id, whereas the 'id' tag will be the id of the wrapper Thing object.
|
DBObject |
findById(long id) |
protected static int |
findNearestPoint(double[][] a,
int n_points,
double x_p,
double y_p)
Fine nearest point in array a, from 0 up to n_points, to point x_p,y_p.
|
protected static int |
findNearestPoint(double[][] a,
long[] p_layer,
int n_points,
double x_p,
double y_p,
long lid) |
AffineTransform |
getAffineTransform() |
AffineTransform |
getAffineTransformCopy() |
float |
getAlpha() |
String |
getAnnotation()
Returns null if none.
|
Area |
getArea() |
Area |
getAreaAt(Layer layer)
This area is meant to represent the entire area where a Displayable paints to in the @param layer.
|
protected Area |
getAreaForBucket(Layer layer)
Should call getAreaAt(layer), or methods that are similar but faster.
|
Rectangle |
getBoundingBox()
Bounding box of the transformed data.
|
static Rectangle |
getBoundingBox(Collection<? extends Displayable> ds,
Rectangle r)
Bounding box of a collection of transformed
Displayable s. |
Rectangle |
getBoundingBox(Rectangle r)
Bounding box of the transformed data.
|
protected Rectangle |
getBounds(Rectangle r)
Bounding box of the transformed data (or 0,0,0,0 when no data).
|
Rectangle |
getBounds(Rectangle r,
Layer layer)
Will fill bounding box values into given rectangle -- only that part of this object showing in the given layer will be included in the box.
|
Bucketable |
getBucketable() |
Color |
getColor() |
protected Composite |
getComposite(byte mode) |
static Composite |
getComposite(byte mode,
float alpha) |
byte |
getCompositeMode() |
float |
getHeight()
Returns the height of the data.
|
Area |
getIntersection(Displayable d)
Returns the intersection of this Displayable's area with the given one.
|
Layer |
getLayer() |
Collection<Long> |
getLayerIds() |
LayerSet |
getLayerSet() |
Collection<Layer> |
getLayersWithData()
Override it to provide Layer pointers directly.
|
HashSet<Displayable> |
getLinked()
Return the HashSet of directly linked Displayable objects.
|
HashSet<Displayable> |
getLinked(Class<?> c)
Return those of Class c from among the directly linked.
|
Rectangle |
getLinkedBox(boolean same_layer)
Returns the sum of bounding boxes of all linked Displayables.
|
HashSet<Displayable> |
getLinkedGroup(HashSet<Displayable> hs)
Return the HashSet of all directly and indirectly linked objects.
|
Map<Displayable,Map<String,String>> |
getLinkedProperties()
Returns a copy of this object's linked properties, which may be empty.
|
Map<String,String> |
getLinkedProperties(Displayable target)
Returns a copy of this object's linked properties table for the given Displayable, which may be empty.
|
String |
getLinkedProperty(Displayable target,
String key)
If the key is null or not found, or the aren't any properties linked to the target, returns null; otherwise returns the stored value for key and target.
|
String |
getLinkedProperty(Displayable target,
String key,
String default_value)
If the key is null or not found, or the aren't any properties linked to the target, returns default_value; otherwise returns the stored value for key and target.
|
static Rectangle |
getMinimalBoundingBox(Displayable[] d) |
protected double |
getNameId()
If the title is purely numeric, returns it as a double; otherwise returns 0.
|
Polygon |
getPerimeter()
Subclasses can override this method to provide the exact contour, otherwise it returns the transformed bounding box of the data.
|
Polygon |
getPerimeter(int w,
int n,
int e,
int s)
Returns the perimeter enlarged in all West, North, East and South directions, in pixels.
|
Map<String,String> |
getProperties()
Returns a copy of this object's properties, or null if none.
|
String |
getProperty(String key)
If key is null or not found, returns null; otherwise returns the stored value for key.
|
String |
getProperty(String key,
String default_value)
If key is null or not found, returns default_value; otherwise returns the stored value for key.
|
String |
getShortTitle()
Sublcasses can override this method to provide a proper String, otherwise calls getTitle()
|
String |
getTitle()
Sublcasses can override this method to provide a proper String, otherwise calls toString()
|
float |
getWidth()
Returns the width of the data.
|
int |
getX()
Returns the x of the bounding box.
|
static String |
getXMLSafeValue(Map.Entry<String,String> e,
String value)
Make sure the value is valid for an XML attribute content inside double quotes.
|
static String |
getXMLSafeValue(String value) |
int |
getY()
Returns the y of the bounding box.
|
boolean |
hasLinkedGroupWithinLayer(Layer la) |
boolean |
hasProperties() |
boolean |
intersects(Area area) |
boolean |
intersects(Displayable d)
Check if this perimeter's intersects that of the given Displayable.
|
boolean |
intersects(Layer layer,
Area area)
Calls intersects(area) unless overriden -- intended for ZDisplayable objects to return whether they intersect the given area at the given layer.
|
boolean |
intersects(Layer layer,
Rectangle r) |
Point2D.Double |
inverseTransformPoint(double px,
double py) |
abstract boolean |
isDeletable() |
boolean |
isLinked()
Check if this object is directly linked to any other Displayable objects.
|
boolean |
isLinked(Class<?> c)
Check if this object is directly linked to a Displayable object of the given Class.
|
boolean |
isLinked(Displayable d)
Check if thisobject is directly linked to the given Displayable.
|
boolean |
isLocked()
Check if this or any of the Displayables in the linked group is locked.
|
boolean |
isLocked2()
Return the value of the field 'locked'.
|
boolean |
isOnlyLinkedTo(Class<?> c)
Check if this object is directly linked only to Displayable objects of the given class (returns true) or to none (returns true as well).
|
boolean |
isOnlyLinkedTo(Class<?> c,
Layer layer)
Check if this object is directly linked only to Displayable objects of the given class in the same layer (returns true).
|
boolean |
isOutOfRepaintingClip(double magnification,
Rectangle srcRect,
Rectangle clipRect) |
boolean |
isOutOfRepaintingClip(Rectangle clipRect,
double scale)
For the DisplayNavigator.
|
protected boolean |
isRoughlyInside(Layer layer,
Rectangle r)
If this Displayable intersects with @param r or almost intersects, then returns true.
|
boolean |
isVisible() |
void |
keyPressed(KeyEvent ke) |
void |
link(Displayable d)
Link the given Displayable with this Displayable, and then tell the given Displayable to link this.
|
void |
link(Displayable d,
boolean update_database)
Link the given Displayable with this Displayable, and then tell the given Displayable to link this.
|
boolean |
linkPatches()
Link the Patch objects that lay underneath the bounding box of this Displayable, so that they cannot be dragged independently.
|
protected GenericDialog |
makeAdjustPropertiesDialog() |
ij.measure.ResultsTable |
measure(ij.measure.ResultsTable rt)
Does nothing unless overriden.
|
void |
mouseDragged(MouseEvent me,
Layer layer,
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 layer,
int x_p,
int y_p,
double mag) |
void |
mouseReleased(MouseEvent me,
Layer layer,
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.
|
void |
paint(Graphics2D g,
Rectangle srcRect,
double magnification,
boolean active,
int channels,
Layer active_layer,
List<Layer> layers) |
void |
paintAsBox(Graphics2D g) |
void |
paintOffscreen(Graphics2D g,
Rectangle srcRect,
double magnification,
boolean active,
int channels,
Layer active_layer,
List<Layer> layers)
Paints waiting for data to load, if necessary.
|
void |
paintSnapshot(Graphics2D g,
Layer layer,
List<Layer> layers,
Rectangle srcRect,
double mag) |
static void |
preConcatenate(AffineTransform at,
Collection<Displayable> ds)
Preconcatenate the
at to every Displayable in ds ,
without touching their links; then the buckets are updated for all necessary layers. |
void |
prePaint(Graphics2D g,
Rectangle srcRect,
double magnification,
boolean active,
int channels,
Layer active_layer,
List<Layer> layers) |
void |
preTransform(AffineTransform affine,
boolean linked)
preConcatenate the given affine transform to this Displayable's affine.
|
protected Displayable.DoEdit |
processAdjustPropertiesDialog(GenericDialog gd) |
boolean |
remove(boolean check)
Remove from both the database and any Display that shows the Layer in which this Displayable is shown.
|
protected boolean |
remove2(boolean check)
Remove also from the trees if present; does nothing more than remove(boolean) unless overriden.
|
Map<String,String> |
removeLinkedProperties(Displayable target)
Removes and returns the table of properties lined to the target Displayable.
|
protected void |
removeLinkedPropertiesFromOrigins()
Tell any other Displayable that has a linked property with this Displayable to remove it.
|
void |
repaint()
Repaint this Displayable in all Display instances that are showing it.
|
protected void |
restXML(StringBuilder sb_body,
String in,
XMLOptions options)
Add properties, links, etc.
|
void |
rotate(double radians,
double xo,
double yo)
Rotate relative to an anchor point.
|
void |
rotate(double radians,
double xo,
double yo,
boolean linked)
Rotate relative to an anchor point.
|
static double[][] |
rotatePoints(double[][] p,
double rot,
double xo,
double yo)
Rotate 2D points relative to the given pivot point by the given rot angle (in radians), in the 2D plane.
|
void |
scale(double sx,
double sy,
double xo,
double yo)
Scale relative to an anchor point (will translate as necessary).
|
void |
scale(double sx,
double sy,
double xo,
double yo,
boolean linked)
Scale relative to an anchor point (will translate as necessary).
|
static double[][] |
scalePoints(double[][] p,
double sx,
double sy,
double xo,
double yo)
Scale 2D points relative to the given pivot point xo,yo.
|
void |
setAffineTransform(AffineTransform at)
Sets the matrix values of this Displayable's AffineTransform to those of the given AffineTransform.
|
void |
setAlpha(float alpha) |
protected void |
setAlpha(float alpha,
boolean update) |
void |
setAnnotation(String annotation) |
void |
setColor(Color color) |
void |
setCompositeMode(byte mode)
Sets the composite mode, which determines how is this image
painted to the screen relative to the other images.
|
void |
setDimensions(double width,
double height)
Not accepted if zero or negative.
|
void |
setDimensions(double width,
double height,
boolean repaint)
Sets the dimensions of the bounding box.
|
void |
setLayer(Layer layer) |
void |
setLayer(Layer layer,
boolean update_db) |
void |
setLinkedProperties(Displayable target,
Map<String,String> p)
Add all the properties in map p as properties linked to the target Displayable.
|
boolean |
setLinkedProperty(Displayable target,
String key,
String value)
Add a property that is specific to the relationship between this Displayable and the target, and will be deleted when the target Displayable is deleted.
|
void |
setLocation(double x,
double y)
Sets the top left of the bounding box to x,y.
|
void |
setLocked(boolean lock)
Set the locking state of this Displayable, which affects that of its linked Displayable objects.
|
boolean |
setProperty(String key,
String value)
Set a key/valye property pair; to remove a property, set the value to null.
|
void |
setTitle(String title)
Does not accept null or zero-length titles.
|
void |
setVisible(boolean visible) |
void |
setVisible(boolean visible,
boolean repaint) |
void |
snapTo(int cx,
int cy,
int x_p,
int y_p)
Does nothing unless overriden.
|
boolean |
softRemove()
Calls remove(false) unless overriden.
|
String |
toString()
Minimal info that identifies this object as unique, for display on a JTree node.
|
void |
transform(AffineTransform at)
Concatenate the given affine to this and all its linked objects.
|
static void |
transformPoint(double[][] p,
int i,
double dx,
double dy,
double rot,
double xo,
double yo)
Transform in place only the 'i' point in the points array.
|
Point2D.Double |
transformPoint(double px,
double py)
Apply this Displayable's AffineTransform to the given point.
|
protected static double[] |
transformPoints(AffineTransform aff,
double[] p) |
protected static double[][] |
transformPoints(AffineTransform aff,
double[][] p,
int length)
Will crop second dimension of the given array at the given length.
|
protected double[] |
transformPoints(double[] p)
Transforms the points represented as X1,Y1,X2,Y2...
|
double[][] |
transformPoints(double[][] p)
Returns the argument if this Displayable's AffineTransform is the identity; otherwise returns a new double[][] with all points from @param p transformed according to the AffineTransform.
|
double[][] |
transformPoints(double[][] p,
AffineTransform additional) |
protected double[][] |
transformPoints(double[][] p,
int length) |
protected double[][] |
transformPoints(double[][] p,
int length,
AffineTransform additional)
Will crop second dimension of the given array at the given length.
|
protected double[] |
transformPoints(double[] p,
AffineTransform additional) |
protected float[] |
transformPoints(float[] p)
Transforms the points represented as X1,Y1,X2,Y2...
|
Rectangle |
transformRectangle(Rectangle r)
Returns a new Rectangle which encloses completly the given rectangle after transforming it with this Displayable's AffineTransform.
|
void |
translate(double dx,
double dy) |
void |
translate(double dx,
double dy,
boolean linked)
Translate this Displayable and its linked ones if linked=true.
|
void |
unlink()
Remove all links held by this Displayable.
|
void |
unlink(Displayable d)
Remove the link with the given Displayable, and tell the given Displayable to remove the link with this.
|
void |
unlinkAll(Class<?> c)
Unlink all Displayable objects of the given type linked by this.
|
void |
updateBucket()
Commands the parent container (a Layer or a LayerSet) to update the bucket position of this Displayable.
|
boolean |
updateInDatabase(String key) |
protected static void |
xmlError(DBObject dbo,
String tag,
Object default_value) |
protected void |
xmlError(String tag,
Object default_value) |
addToDatabase, getId, getInfo, getProject, getUniqueIdentifier, removeFromDatabase, updateInDatabase
protected static final String[] compositeModes
public static final byte COMPOSITE_NORMAL
public static final byte COMPOSITE_ADD
public static final byte COMPOSITE_SUBTRACT
public static final byte COMPOSITE_MULTIPLY
public static final byte COMPOSITE_DIFFERENCE
public static final byte COMPOSITE_COLOR_YCBCR
protected final AffineTransform at
protected float width
protected float height
protected boolean locked
protected String title
protected String annotation
protected static Color last_color
protected Color color
protected float alpha
protected boolean visible
protected Layer layer
protected HashSet<Displayable> hs_linked
protected Map<Displayable,Map<String,String>> linked_props
protected Set<Displayable> linked_props_origins
protected static final String TAG_ATTR1
protected static final String TAG_ATTR2
public Displayable(Project project, String title, double x, double y)
public Displayable(Project project, long id, String title, boolean locked, AffineTransform at, float width, float height)
public byte getCompositeMode()
protected Composite getComposite(byte mode)
public void setCompositeMode(byte mode)
mode
- Any of the COMPOSITE_* modes available.IllegalArgumentException
- if the mode
is not valid.public static Composite getComposite(byte mode, float alpha)
public boolean setProperty(String key, String value)
public String getProperty(String key)
public String getProperty(String key, String default_value)
public Map<String,String> getProperties()
public boolean hasProperties()
public boolean setLinkedProperty(Displayable target, String key, String value)
public void setLinkedProperties(Displayable target, Map<String,String> p)
public Map<String,String> removeLinkedProperties(Displayable target)
protected void removeLinkedPropertiesFromOrigins()
public String getLinkedProperty(Displayable target, String key)
public String getLinkedProperty(Displayable target, String key, String default_value)
public Map<String,String> getLinkedProperties(Displayable target)
public Map<Displayable,Map<String,String>> getLinkedProperties()
public void setLocked(boolean lock)
public boolean isLocked2()
public boolean isLocked()
public void paint(Graphics2D g, Rectangle srcRect, double magnification, boolean active, int channels, Layer active_layer, List<Layer> layers)
public void prePaint(Graphics2D g, Rectangle srcRect, double magnification, boolean active, int channels, Layer active_layer, List<Layer> layers)
public void paintOffscreen(Graphics2D g, Rectangle srcRect, double magnification, boolean active, int channels, Layer active_layer, List<Layer> layers)
public void setDimensions(double width, double height)
public void setDimensions(double width, double height, boolean repaint)
public void setLayer(Layer layer, boolean update_db)
public void setLayer(Layer layer)
public Layer getLayer()
public void setTitle(String title)
public String getTitle()
DBObject
public String getShortTitle()
DBObject
getShortTitle
in class DBObject
public int getX()
public int getY()
public float getWidth()
public float getHeight()
public Rectangle getBoundingBox()
public Rectangle getBounds(Rectangle r, Layer layer)
public Rectangle getBoundingBox(Rectangle r)
protected Rectangle getBounds(Rectangle r)
public static Rectangle getBoundingBox(Collection<? extends Displayable> ds, Rectangle r)
Displayable
s.
If the list is empty, there is no bounding box, so it returns null.public Polygon getPerimeter()
public Polygon getPerimeter(int w, int n, int e, int s)
public boolean contains(double x_p, double y_p)
public boolean contains(Layer layer, double x_p, double y_p)
public void setAlpha(float alpha)
protected void setAlpha(float alpha, boolean update)
public float getAlpha()
public Color getColor()
public HashSet<Displayable> getLinked()
public HashSet<Displayable> getLinked(Class<?> c)
public HashSet<Displayable> getLinkedGroup(HashSet<Displayable> hs)
public void mousePressed(MouseEvent me, Layer layer, int x_p, int y_p, double mag)
public void mouseDragged(MouseEvent me, Layer layer, int x_p, int y_p, int x_d, int y_d, int x_d_old, int y_d_old)
public void mouseReleased(MouseEvent me, Layer layer, int x_p, int y_p, int x_d, int y_d, int x_r, int y_r)
public void mouseWheelMoved(MouseWheelEvent mwe)
public void keyPressed(KeyEvent ke)
public boolean isVisible()
public final void setVisible(boolean visible)
public void setVisible(boolean visible, boolean repaint)
public void repaint()
public void setColor(Color color)
public void destroy()
public boolean isOutOfRepaintingClip(double magnification, Rectangle srcRect, Rectangle clipRect)
public boolean isOutOfRepaintingClip(Rectangle clipRect, double scale)
protected boolean remove2(boolean check)
public boolean remove(boolean check)
public void link(Displayable d)
public void link(Displayable d, boolean update_database)
public void unlink()
public void unlink(Displayable d)
public boolean isLinked()
public boolean isLinked(Class<?> c)
public boolean isLinked(Displayable d)
public boolean isOnlyLinkedTo(Class<?> c)
public boolean isOnlyLinkedTo(Class<?> c, Layer layer)
public boolean linkPatches()
public void unlinkAll(Class<?> c)
public boolean intersects(Displayable d)
public boolean intersects(Area area)
public boolean intersects(Layer layer, Area area)
public Area getIntersection(Displayable d)
public Rectangle getLinkedBox(boolean same_layer)
public String toString()
public abstract boolean isDeletable()
public boolean canSendTo(Layer layer)
public void exportSVG(StringBuffer data, double z_scale, String indent)
public void snapTo(int cx, int cy, int x_p, int y_p)
public void adjustProperties()
protected GenericDialog makeAdjustPropertiesDialog()
protected Displayable.DoEdit processAdjustPropertiesDialog(GenericDialog gd)
public static void exportDTD(String type, StringBuilder sb_header, HashSet<String> hs, String indent)
public static void exportDTD(StringBuilder sb_header, HashSet<String> hs, String indent)
protected static String commonDTDChildren()
public void exportXML(StringBuilder sb_body, String in, XMLOptions options)
protected void restXML(StringBuilder sb_body, String in, XMLOptions options)
public static final String getXMLSafeValue(Map.Entry<String,String> e, String value)
public boolean hasLinkedGroupWithinLayer(Layer la)
public static double[][] rotatePoints(double[][] p, double rot, double xo, double yo)
public static double[][] scalePoints(double[][] p, double sx, double sy, double xo, double yo)
public static double[][] displacePoints(double[][] p, double dx, double dy)
public static void transformPoint(double[][] p, int i, double dx, double dy, double rot, double xo, double yo)
protected static int findNearestPoint(double[][] a, int n_points, double x_p, double y_p)
protected static int findNearestPoint(double[][] a, long[] p_layer, int n_points, double x_p, double y_p, long lid)
public Displayable clone()
public abstract Displayable clone(Project pr, boolean copy_id)
public Displayable clone(Project pr)
public LayerSet getLayerSet()
public boolean updateInDatabase(String key)
updateInDatabase
in class DBObject
public static Rectangle getMinimalBoundingBox(Displayable[] d)
public AffineTransform getAffineTransform()
public AffineTransform getAffineTransformCopy()
public void setAffineTransform(AffineTransform at)
public void translate(double dx, double dy, boolean linked)
public void translate(double dx, double dy)
public void rotate(double radians, double xo, double yo)
public void rotate(double radians, double xo, double yo, boolean linked)
public static final void preConcatenate(AffineTransform at, Collection<Displayable> ds)
at
to every Displayable
in ds
,
without touching their links; then the buckets are updated for all necessary layers.public void updateBucket()
public void scale(double sx, double sy, double xo, double yo)
public void scale(double sx, double sy, double xo, double yo, boolean linked)
public void setLocation(double x, double y)
public Point2D.Double transformPoint(double px, double py)
public Point2D.Double inverseTransformPoint(double px, double py)
public final Rectangle transformRectangle(Rectangle r)
public double[][] transformPoints(double[][] p)
protected double[][] transformPoints(double[][] p, int length)
public double[][] transformPoints(double[][] p, AffineTransform additional)
protected final double[][] transformPoints(double[][] p, int length, AffineTransform additional)
protected static final double[][] transformPoints(AffineTransform aff, double[][] p, int length)
protected double[] transformPoints(double[] p, AffineTransform additional)
protected static double[] transformPoints(AffineTransform aff, double[] p)
protected double[] transformPoints(double[] p)
protected float[] transformPoints(float[] p)
public void transform(AffineTransform at)
public void preTransform(AffineTransform affine, boolean linked)
public void paintAsBox(Graphics2D g)
public void paintSnapshot(Graphics2D g, Layer layer, List<Layer> layers, Rectangle srcRect, double mag)
public DBObject findById(long id)
public ij.measure.ResultsTable measure(ij.measure.ResultsTable rt)
public Bucketable getBucketable()
protected double getNameId()
public static final boolean areThereLayerCrossLinks(Set<Layer> sublist, boolean ignore_stacks)
public Collection<Long> getLayerIds()
public Collection<Layer> getLayersWithData()
public Area getArea()
public Area getAreaAt(Layer layer)
protected Area getAreaForBucket(Layer layer)
protected boolean isRoughlyInside(Layer layer, Rectangle r)
public void setAnnotation(String annotation)
public String getAnnotation()
public boolean softRemove()
public void deselect()
Copyright © 2015–2021 Fiji. All rights reserved.