Package fr.igred.omero.roi
Class PointWrapper
- java.lang.Object
- 
- fr.igred.omero.GenericObjectWrapper<T>
- 
- fr.igred.omero.roi.GenericShapeWrapper<PointData>
- 
- fr.igred.omero.roi.PointWrapper
 
 
 
- 
 public class PointWrapper extends GenericShapeWrapper<PointData> Class containing an PointData.Wraps function calls to the PointData contained. 
- 
- 
Field Summary- 
Fields inherited from class fr.igred.omero.GenericObjectWrapperdata
 
- 
 - 
Constructor SummaryConstructors Constructor Description PointWrapper()Constructor 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 shape)Constructor of the PointWrapper class using a PointData.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]getCoordinates()Gets the coordinates of the PointData shape.java.lang.StringgetText()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.voidsetText(java.lang.String text)Sets 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.java.awt.ShapetoAWTShape()Converts the shape to anShape.RoitoImageJ()Converts shape to ImageJ ROI.- 
Methods inherited from class fr.igred.omero.roi.GenericShapeWrapperasShapeData, copyFromIJRoi, copyToIJRoi, createTransformedAWTShape, getBoundingBox, getC, getFill, getFontSize, getStroke, getT, getZ, setC, setCZT, setFill, setFontSize, setStroke, setT, setTransform, setTransform, setZ, toAWTTransform
 - 
Methods inherited from class fr.igred.omero.GenericObjectWrapperasDataObject, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, delete, distinct, flatten, getCreated, getGroupId, getId, getOwner, saveAndUpdate, toString, wrap, wrap
 
- 
 
- 
- 
- 
Constructor Detail- 
PointWrapperpublic PointWrapper(PointData shape) Constructor of the PointWrapper class using a PointData.- Parameters:
- shape- the shape
 
 - 
PointWrapperpublic PointWrapper() Constructor of the PointWrapper class using a new empty PointData.
 - 
PointWrapperpublic 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 Detail- 
getTextpublic java.lang.String getText() Gets the text on the ShapeData.- Specified by:
- getTextin class- GenericShapeWrapper<PointData>
- Returns:
- the text
 
 - 
setTextpublic void setText(java.lang.String text) Sets the text on the ShapeData.- Specified by:
- setTextin class- GenericShapeWrapper<PointData>
- Parameters:
- text- the text
 
 - 
toAWTShapepublic java.awt.Shape toAWTShape() Converts the shape to anShape.- Specified by:
- toAWTShapein class- GenericShapeWrapper<PointData>
- Returns:
- The converted AWT Shape.
 
 - 
getXpublic double getX() Returns the x-coordinate of the shape.- Returns:
- See above.
 
 - 
setXpublic void setX(double x) Sets the x-coordinate of the shape.- Parameters:
- x- See above.
 
 - 
getYpublic double getY() Returns the y coordinate of the shape.- Returns:
- See above.
 
 - 
setYpublic void setY(double y) Sets the y-coordinate of the shape.- Parameters:
- y- See above.
 
 - 
setCoordinatespublic 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.
 
 - 
getCoordinatespublic double[] getCoordinates() Gets the coordinates of the PointData shape.- Returns:
- Array of coordinates containing {X,Y}.
 
 - 
setCoordinatespublic void setCoordinates(double[] coordinates) Sets the coordinates of the PointData shape.- Parameters:
- coordinates- Array of coordinates containing {X,Y}.
 
 - 
toImageJpublic Roi toImageJ() Converts shape to ImageJ ROI.- Overrides:
- toImageJin class- GenericShapeWrapper<PointData>
- Returns:
- An ImageJ ROI.
 
 
- 
 
-