public class LineWrapper extends ShapeWrapper<LineData> implements Line
Wraps function calls to the LineData contained.
ANNOTATION_LINK
data
Constructor and Description |
---|
LineWrapper()
Constructor of the RectangleWrapper class using a new empty LineData.
|
LineWrapper(double x1,
double y1,
double x2,
double y2)
Constructor of the RectangleWrapper class using a new LineData.
|
LineWrapper(Line line)
Constructor of the LineWrapper class using an ImageJ Line ROI.
|
LineWrapper(LineData line)
Constructor of the LineWrapper class using a LineData.
|
Modifier and Type | Method and Description |
---|---|
String |
getText()
Gets the text on the ShapeData.
|
double |
getX1()
Returns the x-coordinate of the starting point of an untransformed line.
|
double |
getX2()
Returns the x-coordinate of the end point of an untransformed line.
|
double |
getY1()
Returns the y-coordinate of the starting point of an untransformed line.
|
double |
getY2()
Returns the y-coordinate of the end point of an untransformed line.
|
void |
setText(String text)
Sets the text on the ShapeData.
|
void |
setX1(double x1)
Set the x-coordinate of the starting point of an untransformed line.
|
void |
setX2(double x2)
Set the x-coordinate of the end point of an untransformed line.
|
void |
setY1(double y1)
Set the y-coordinate of the starting point of an untransformed line.
|
void |
setY2(double y2)
Set the y-coordinate of the end point of an untransformed line.
|
Roi |
toImageJ()
Converts shape to ImageJ ROI.
|
annotationLinkType, copyFromIJRoi, copyToIJRoi, getBoundingBox, getC, getFill, getFontSize, getStroke, getT, getZ, setC, setFill, setFontSize, setStroke, setT, setTransform, setZ, toAWTTransform
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, getCoordinates, setCoordinates, setCoordinates, toAWTShape
createTransformedAWTShape, getBoundingBox, getC, getCZT, getFill, getFontSize, getStroke, getT, getZ, link, setC, setCZT, setFill, setFontSize, setStroke, setT, setTransform, setTransform, setZ, toAWTTransform
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 LineWrapper(LineData line)
line
- The LineData to wrap.public LineWrapper()
public LineWrapper(Line line)
line
- An ImageJ Line ROI.public LineWrapper(double x1, double y1, double x2, double y2)
x1
- x1-coordinate of the shape.y1
- y1-coordinate of the shape.x2
- x2-coordinate of the shape.y2
- y2-coordinate of the shape.public String getText()
public void setText(String text)
public double getX1()
public void setX1(double x1)
public double getX2()
public void setX2(double x2)
public double getY1()
public void setY1(double y1)
public double getY2()
public void setY2(double y2)
Copyright © 2020–2023 GReD. All rights reserved.