Package fr.igred.omero.roi
Class PointWrapper
Class containing an PointData.
 
Wraps function calls to the PointData contained.
- 
Field Summary
Fields inherited from class fr.igred.omero.roi.GenericShapeWrapper
ANNOTATION_LINKFields inherited from class fr.igred.omero.GenericObjectWrapper
data - 
Constructor Summary
ConstructorsConstructorDescriptionConstructor of the PointWrapper class using a new empty PointData.PointWrapper(double x, double y) Constructor of the PointWrapper class using a new empty ShapeData.PointWrapper(PointData point) Constructor of the PointWrapper class using a PointData. - 
Method Summary
Modifier and TypeMethodDescriptiondouble[]Gets the coordinates of the PointData shape.getText()Gets the text on the ShapeData.doublegetX()Returns the x-coordinate of the shape.doublegetY()Returns the y coordinate of the shape.voidsetCoordinates(double[] coordinates) Sets the coordinates of the PointData shape.voidsetCoordinates(double x, double y) Sets the coordinates the PointData shape.voidSets the text on the ShapeData.voidsetX(double x) Sets the x-coordinate of the shape.voidsetY(double y) Sets the y-coordinate of the shape.Converts the shape to anShape.toImageJ()Converts shape to ImageJ ROI.Methods inherited from class fr.igred.omero.roi.GenericShapeWrapper
annotationLinkType, asShapeData, copyFromIJRoi, copyToIJRoi, createTransformedAWTShape, getBoundingBox, getC, getFill, getFontSize, getStroke, getT, getZ, link, setC, setCZT, setFill, setFontSize, setStroke, setT, setTransform, setTransform, setZ, toAWTTransformMethods inherited from class fr.igred.omero.AnnotatableWrapper
addAndReplaceFile, addAndReplaceFile, addAndReplaceTable, addAndReplaceTable, addFile, addFileAnnotation, addKeyValuePair, addMapAnnotation, addPairKeyValue, addTable, addTag, addTag, addTag, addTags, addTags, copyAnnotationLinks, getAnnotations, getFileAnnotations, getKeyValuePairs, getMapAnnotations, getMyRating, getRatings, getTable, getTables, getTags, getValue, isLinked, link, link, linkIfNotLinked, rate, removeLink, unlinkMethods inherited from class fr.igred.omero.GenericObjectWrapper
asDataObject, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, delete, distinct, flatten, getCreated, getGroupId, getId, getOwner, getUpdated, saveAndUpdate, toString, wrap, wrap 
- 
Constructor Details
- 
PointWrapper
Constructor of the PointWrapper class using a PointData.- Parameters:
 point- The PointData to wrap.
 - 
PointWrapper
public PointWrapper()Constructor of the PointWrapper class using a new empty PointData. - 
PointWrapper
public PointWrapper(double x, double y) Constructor of the PointWrapper class using a new empty ShapeData.- Parameters:
 x- x-coordinate of the shape.y- y-coordinate of the shape.
 
 - 
 - 
Method Details
- 
getText
Gets the text on the ShapeData.- Specified by:
 getTextin classGenericShapeWrapper<PointData>- Returns:
 - the text
 
 - 
setText
Sets the text on the ShapeData.- Specified by:
 setTextin classGenericShapeWrapper<PointData>- Parameters:
 text- the text
 - 
toAWTShape
Converts the shape to anShape.- Specified by:
 toAWTShapein classGenericShapeWrapper<PointData>- Returns:
 - The converted AWT Shape.
 
 - 
getX
public double getX()Returns the x-coordinate of the shape.- Returns:
 - See above.
 
 - 
setX
public void setX(double x) Sets the x-coordinate of the shape.- Parameters:
 x- See above.
 - 
getY
public double getY()Returns the y coordinate of the shape.- Returns:
 - See above.
 
 - 
setY
public void setY(double y) Sets the y-coordinate of the shape.- Parameters:
 y- See above.
 - 
setCoordinates
public void setCoordinates(double x, double y) Sets the coordinates the PointData shape.- Parameters:
 x- x-coordinate of the PointData shape.y- y-coordinate of the PointData shape.
 - 
getCoordinates
public double[] getCoordinates()Gets the coordinates of the PointData shape.- Returns:
 - Array of coordinates containing {X,Y}.
 
 - 
setCoordinates
public void setCoordinates(double[] coordinates) Sets the coordinates of the PointData shape.- Parameters:
 coordinates- Array of coordinates containing {X,Y}.
 - 
toImageJ
Converts shape to ImageJ ROI.- Overrides:
 toImageJin classGenericShapeWrapper<PointData>- Returns:
 - An ImageJ ROI.
 
 
 -