T
- Subclass of ShapeData
public abstract class ShapeWrapper<T extends ShapeData> extends AnnotatableWrapper<T> implements Shape
Modifier and Type | Field and Description |
---|---|
static String |
ANNOTATION_LINK
Annotation link name for this type of object
|
data
Modifier | Constructor and Description |
---|---|
protected |
ShapeWrapper(T s)
Constructor of the ShapeWrapper class using a ShapeData.
|
Modifier and Type | Method and Description |
---|---|
protected String |
annotationLinkType()
Returns the type of annotation link for this object.
|
protected void |
copyFromIJRoi(Roi ijRoi)
Copies details from an ImageJ ROI (position, stroke color, stroke width).
|
protected void |
copyToIJRoi(Roi ijRoi)
Copies details to an ImageJ ROI (name, position, stroke color, fill color, stroke width).
|
Rectangle |
getBoundingBox()
Returns a new
Rectangle corresponding to the bounding box of the shape, once the related
AffineTransform has been applied. |
int |
getC()
Gets the channel.
|
Color |
getFill()
Gets ShapeData fill color.
|
double |
getFontSize()
Gets ShapeData font size.
|
Color |
getStroke()
Gets the ShapeData stroke color.
|
int |
getT()
Sets the time-point.
|
int |
getZ()
Gets the z-section.
|
void |
setC(int c)
Sets the channel.
|
void |
setFill(Color fillColour)
Sets the ShapeData fill color.
|
void |
setFontSize(double value)
Sets ShapeData font size.
|
void |
setStroke(Color strokeColour)
Sets ShapeData stroke color.
|
void |
setT(int t)
Sets the time-point.
|
void |
setTransform(double a00,
double a10,
double a01,
double a11,
double a02,
double a12)
Sets the transform to the matrix specified by the 6 double precision values.
|
void |
setZ(int z)
Sets the z-section.
|
AffineTransform |
toAWTTransform()
Converts
AffineTransform to AffineTransform . |
Roi |
toImageJ()
Converts shape to ImageJ ROI.
|
addAndReplaceFile, addAndReplaceTable, addKeyValuePair, addTag, addTag, getAnnotations, getFileAnnotations, getMapAnnotations, getMyRating, getTable, getTags, rate, removeLink, unlink
asDataObject, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getGroupId, getId, getOwner, getUpdated, saveAndUpdate, toString, wrap, wrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
asDataObject, createTransformedAWTShape, getCZT, getText, link, setCZT, setText, setTransform, toAWTShape
addAndReplaceFile, addAndReplaceFile, addAndReplaceTable, addAndReplaceTable, addFile, addKeyValuePair, addTable, addTag, addTag, addTags, copyAnnotationLinks, getAnnotationData, getAnnotations, getFileAnnotations, getKeyValuePairs, getMapAnnotations, getMyRating, getTable, getTables, getTags, getValues, isLinked, link, link, linkIfNotLinked, rate, unlink
canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, distinct, flatten, getCreated, getElementsOf, getGroupId, getId, getOwner, getUpdated, saveAndUpdate
public static final String ANNOTATION_LINK
protected ShapeWrapper(T s)
s
- The shape.protected void copyFromIJRoi(Roi ijRoi)
ijRoi
- An ImageJ Roi.protected void copyToIJRoi(Roi ijRoi)
ijRoi
- An ImageJ Roi.public int getC()
public void setC(int c)
public int getZ()
public void setZ(int z)
public int getT()
public void setT(int t)
public double getFontSize()
getFontSize
in interface Shape
public void setFontSize(double value)
setFontSize
in interface Shape
value
- The font size (in typography points)public Color getStroke()
public void setStroke(Color strokeColour)
public Color getFill()
public void setFill(Color fillColour)
public void setTransform(double a00, double a10, double a01, double a11, double a02, double a12)
setTransform
in interface Shape
a00
- the X coordinate scaling element of the 3x3 matrixa10
- the Y coordinate shearing element of the 3x3 matrixa01
- the X coordinate shearing element of the 3x3 matrixa11
- the Y coordinate scaling element of the 3x3 matrixa02
- the X coordinate translation element of the 3x3 matrixa12
- the Y coordinate translation element of the 3x3 matrixpublic AffineTransform toAWTTransform()
AffineTransform
to AffineTransform
.toAWTTransform
in interface Shape
public Rectangle getBoundingBox()
Rectangle
corresponding to the bounding box of the shape, once the related
AffineTransform
has been applied.getBoundingBox
in interface Shape
public Roi toImageJ()
protected String annotationLinkType()
annotationLinkType
in class AnnotatableWrapper<T extends ShapeData>
Copyright © 2020–2023 GReD. All rights reserved.