Package fr.igred.omero.roi
Interface Line
-
- All Superinterfaces:
Annotatable,RemoteObject,Shape
- All Known Implementing Classes:
LineWrapper
public interface Line extends Shape
Interface to handle Line shapes on OMERO.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringARROWString to use arrows as markers
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description LineDataasDataObject()Returns anLineDatacorresponding to the handled object.default double[]getCoordinates()Gets the coordinates of the LineData shape.doublegetX1()Returns the x-coordinate of the starting point of an untransformed line.doublegetX2()Returns the x-coordinate of the end point of an untransformed line.doublegetY1()Returns the y-coordinate of the starting point of an untransformed line.doublegetY2()Returns the y-coordinate of the end point of an untransformed line.default voidsetCoordinates(double[] coordinates)Sets the coordinates of the LineData shape.default voidsetCoordinates(double x1, double y1, double x2, double y2)Sets the coordinates of the LineData shape.voidsetX1(double x1)Set the x-coordinate of the starting point of an untransformed line.voidsetX2(double x2)Set the x-coordinate of the end point of an untransformed line.voidsetY1(double y1)Set the y-coordinate of the starting point of an untransformed line.voidsetY2(double y2)Set the y-coordinate of the end point of an untransformed line.default java.awt.ShapetoAWTShape()Converts the shape to anShape.-
Methods inherited from interface fr.igred.omero.Annotatable
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
-
Methods inherited from interface fr.igred.omero.RemoteObject
canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getGroupId, getId, getOwner, saveAndUpdate
-
Methods inherited from interface fr.igred.omero.roi.Shape
createTransformedAWTShape, getBoundingBox, getC, getCZT, getFill, getFontSize, getStroke, getT, getText, getZ, link, setC, setCZT, setFill, setFontSize, setStroke, setT, setText, setTransform, setTransform, setZ, toAWTTransform, toImageJ
-
-
-
-
Field Detail
-
ARROW
static final java.lang.String ARROW
String to use arrows as markers- See Also:
- Constant Field Values
-
-
Method Detail
-
asDataObject
LineData asDataObject()
Returns anLineDatacorresponding to the handled object.- Specified by:
asDataObjectin interfaceRemoteObject- Specified by:
asDataObjectin interfaceShape- Returns:
- See above.
-
toAWTShape
default java.awt.Shape toAWTShape()
Converts the shape to anShape.- Specified by:
toAWTShapein interfaceShape- Returns:
- The converted AWT Shape.
-
getX1
double getX1()
Returns the x-coordinate of the starting point of an untransformed line.- Returns:
- See above.
-
setX1
void setX1(double x1)
Set the x-coordinate of the starting point of an untransformed line.- Parameters:
x1- See above.
-
getX2
double getX2()
Returns the x-coordinate of the end point of an untransformed line.- Returns:
- See above.
-
setX2
void setX2(double x2)
Set the x-coordinate of the end point of an untransformed line.- Parameters:
x2- See above.
-
getY1
double getY1()
Returns the y-coordinate of the starting point of an untransformed line.- Returns:
- See above.
-
setY1
void setY1(double y1)
Set the y-coordinate of the starting point of an untransformed line.- Parameters:
y1- See above.
-
getY2
double getY2()
Returns the y-coordinate of the end point of an untransformed line.- Returns:
- See above.
-
setY2
void setY2(double y2)
Set the y-coordinate of the end point of an untransformed line.- Parameters:
y2- See above.
-
setCoordinates
default void setCoordinates(double x1, double y1, double x2, double y2)Sets the coordinates of the LineData shape.- Parameters:
x1- x-coordinate of the starting point of an untransformed line.y1- y-coordinate of the starting point of an untransformed line.x2- x-coordinate of the end point of an untransformed line.y2- y-coordinate of the end point of an untransformed line.
-
getCoordinates
default double[] getCoordinates()
Gets the coordinates of the LineData shape.- Returns:
- Array of coordinates containing {X1,Y1,X2,Y2}.
-
setCoordinates
default void setCoordinates(double[] coordinates)
Sets the coordinates of the LineData shape.- Parameters:
coordinates- Array of coordinates containing {X1,Y1,X2,Y2}.
-
-