Package omero.model
Class SmartRectI
- java.lang.Object
-
- Ice.ObjectImpl
-
- omero.model.IObject
-
- omero.model.Shape
-
- omero.model.Rectangle
-
- omero.model.RectangleI
-
- omero.model.SmartRectI
-
- All Implemented Interfaces:
Ice.Object
,java.io.Serializable
,java.lang.Cloneable
,ome.model.ModelBased
,_IObjectOperations
,_IObjectOperationsNC
,_RectangleOperations
,_RectangleOperationsNC
,_ShapeOperations
,_ShapeOperationsNC
,SmartShape
public class SmartRectI extends RectangleI implements SmartShape
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface omero.model.SmartShape
SmartShape.PointCallback, SmartShape.Util
-
-
Field Summary
-
Fields inherited from class omero.model.RectangleI
ANNOTATIONLINKS, DETAILS, FILLCOLOR, FILLRULE, FONTFAMILY, FONTSIZE, FONTSTYLE, HEIGHT, LOCKED, ROI, STROKECOLOR, STROKEDASHARRAY, STROKEWIDTH, TEXTVALUE, THEC, THET, THEZ, TRANSFORM, WIDTH, X, Y
-
Fields inherited from class omero.model.Rectangle
__ids, height, serialVersionUID, textValue, width, x, y
-
Fields inherited from class omero.model.Shape
annotationLinksCountPerOwner, annotationLinksLoaded, annotationLinksSeq, fillColor, fillRule, fontFamily, fontSize, fontStyle, locked, roi, strokeColor, strokeDashArray, strokeWidth, theC, theT, theZ, transform, version
-
-
Constructor Summary
Constructors Constructor Description SmartRectI()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
areaPoints(SmartShape.PointCallback cb)
Calls theSmartShape.PointCallback
with all of the x/y coordinates which are within the shape.java.awt.Shape
asAwtShape()
Converts the currentSmartShape
to aShape
.java.util.List<Point>
asPoints()
Provides some, possibly lossy, bounding polygon of thisSmartShape
via points.void
randomize(java.util.Random random)
Initializes this shape with completely random data.-
Methods inherited from class omero.model.RectangleI
addAllShapeAnnotationLinkSet, addShapeAnnotationLink, addShapeAnnotationLinkToBoth, cast, clearAnnotationLinks, copyAnnotationLinks, copyObject, errorIfUnloaded, fillObject, findShapeAnnotationLink, getAnnotationLinks, getAnnotationLinksCountPerOwner, getDetails, getFillColor, getFillRule, getFontFamily, getFontSize, getFontStyle, getHeight, getId, getLocked, getRoi, getStrokeColor, getStrokeDashArray, getStrokeWidth, getTextValue, getTheC, getTheT, getTheZ, getTransform, getVersion, getWidth, getX, getY, isAnnotated, isAnnotationLinksLoaded, isGlobal, isLink, isLoaded, isMutable, iterateAnnotationLinks, linkAnnotation, linkedAnnotationList, proxy, reloadAnnotationLinks, removeAllShapeAnnotationLinkSet, removeShapeAnnotationLink, removeShapeAnnotationLinkFromBoth, setAnnotationLinks, setFillColor, setFillRule, setFontFamily, setFontSize, setFontStyle, setHeight, setId, setLocked, setRoi, setStrokeColor, setStrokeDashArray, setStrokeWidth, setTextValue, setTheC, setTheT, setTheZ, setTransform, setVersion, setWidth, setX, setY, shallowCopy, sizeOfAnnotationLinks, throwNullCollectionException, toggleCollectionsLoaded, unlinkAnnotation, unload, unloadAnnotationLinks, unloadCollections, unloadDetails, unloadFillColor, unloadFillRule, unloadFontFamily, unloadFontSize, unloadFontStyle, unloadHeight, unloadLocked, unloadRoi, unloadStrokeColor, unloadStrokeDashArray, unloadStrokeWidth, unloadTextValue, unloadTheC, unloadTheT, unloadTheZ, unloadTransform, unloadWidth, unloadX, unloadY
-
Methods inherited from class omero.model.Rectangle
___getHeight, ___getTextValue, ___getWidth, ___getX, ___getY, ___setHeight, ___setTextValue, ___setWidth, ___setX, ___setY, __dispatch, __readImpl, __writeImpl, clone, getHeight, getTextValue, getWidth, getX, getY, ice_id, ice_id, ice_ids, ice_ids, ice_isA, ice_isA, ice_staticId, setHeight, setTextValue, setWidth, setX, setY
-
Methods inherited from class omero.model.Shape
___addAllShapeAnnotationLinkSet, ___addShapeAnnotationLink, ___addShapeAnnotationLinkToBoth, ___clearAnnotationLinks, ___copyAnnotationLinks, ___findShapeAnnotationLink, ___getAnnotationLinksCountPerOwner, ___getFillColor, ___getFillRule, ___getFontFamily, ___getFontSize, ___getFontStyle, ___getLocked, ___getRoi, ___getStrokeColor, ___getStrokeDashArray, ___getStrokeWidth, ___getTheC, ___getTheT, ___getTheZ, ___getTransform, ___getVersion, ___linkAnnotation, ___linkedAnnotationList, ___reloadAnnotationLinks, ___removeAllShapeAnnotationLinkSet, ___removeShapeAnnotationLink, ___removeShapeAnnotationLinkFromBoth, ___setFillColor, ___setFillRule, ___setFontFamily, ___setFontSize, ___setFontStyle, ___setLocked, ___setRoi, ___setStrokeColor, ___setStrokeDashArray, ___setStrokeWidth, ___setTheC, ___setTheT, ___setTheZ, ___setTransform, ___setVersion, ___sizeOfAnnotationLinks, ___unlinkAnnotation, ___unloadAnnotationLinks, addAllShapeAnnotationLinkSet, addShapeAnnotationLink, addShapeAnnotationLinkToBoth, clearAnnotationLinks, copyAnnotationLinks, findShapeAnnotationLink, getAnnotationLinksCountPerOwner, getFillColor, getFillRule, getFontFamily, getFontSize, getFontStyle, getLocked, getRoi, getStrokeColor, getStrokeDashArray, getStrokeWidth, getTheC, getTheT, getTheZ, getTransform, getVersion, linkAnnotation, linkedAnnotationList, reloadAnnotationLinks, removeAllShapeAnnotationLinkSet, removeShapeAnnotationLink, removeShapeAnnotationLinkFromBoth, setFillColor, setFillRule, setFontFamily, setFontSize, setFontStyle, setLocked, setRoi, setStrokeColor, setStrokeDashArray, setStrokeWidth, setTheC, setTheT, setTheZ, setTransform, setVersion, sizeOfAnnotationLinks, unlinkAnnotation, unloadAnnotationLinks
-
Methods inherited from class omero.model.IObject
___getDetails, ___getId, ___isAnnotated, ___isGlobal, ___isLink, ___isLoaded, ___isMutable, ___proxy, ___setId, ___shallowCopy, ___unload, ___unloadCollections, ___unloadDetails, getDetails, getId, isAnnotated, isGlobal, isLink, isLoaded, isMutable, proxy, setId, shallowCopy, unload, unloadCollections, unloadDetails
-
Methods inherited from class Ice.ObjectImpl
___ice_id, ___ice_ids, ___ice_isA, ___ice_ping, __checkMode, __read, __read, __readImpl, __write, __write, __writeImpl, ice_dispatch, ice_dispatch, ice_operationAttributes, ice_ping, ice_ping, ice_postUnmarshal, ice_preMarshal
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface omero.model._IObjectOperationsNC
getDetails, getId, isAnnotated, isGlobal, isLink, isLoaded, isMutable, proxy, setId, shallowCopy, unload, unloadCollections, unloadDetails
-
Methods inherited from interface omero.model._ShapeOperationsNC
addAllShapeAnnotationLinkSet, addShapeAnnotationLink, addShapeAnnotationLinkToBoth, clearAnnotationLinks, copyAnnotationLinks, findShapeAnnotationLink, getAnnotationLinksCountPerOwner, getFillColor, getFillRule, getFontFamily, getFontSize, getFontStyle, getLocked, getRoi, getStrokeColor, getStrokeDashArray, getStrokeWidth, getTheC, getTheT, getTheZ, getTransform, getVersion, linkAnnotation, linkedAnnotationList, reloadAnnotationLinks, removeAllShapeAnnotationLinkSet, removeShapeAnnotationLink, removeShapeAnnotationLinkFromBoth, setFillColor, setFillRule, setFontFamily, setFontSize, setFontStyle, setLocked, setRoi, setStrokeColor, setStrokeDashArray, setStrokeWidth, setTheC, setTheT, setTheZ, setTransform, setVersion, sizeOfAnnotationLinks, unlinkAnnotation, unloadAnnotationLinks
-
-
-
-
Method Detail
-
areaPoints
public void areaPoints(SmartShape.PointCallback cb)
Description copied from interface:SmartShape
Calls theSmartShape.PointCallback
with all of the x/y coordinates which are within the shape.- Specified by:
areaPoints
in interfaceSmartShape
- Parameters:
cb
- the callback to call
-
asAwtShape
public java.awt.Shape asAwtShape()
Description copied from interface:SmartShape
Converts the currentSmartShape
to aShape
. This is useful for determining paths and included points.- Specified by:
asAwtShape
in interfaceSmartShape
- Returns:
- the AWT shape
-
asPoints
public java.util.List<Point> asPoints()
Description copied from interface:SmartShape
Provides some, possibly lossy, bounding polygon of thisSmartShape
via points.- Specified by:
asPoints
in interfaceSmartShape
- Returns:
- the bounding polygon
-
randomize
public void randomize(java.util.Random random)
Description copied from interface:SmartShape
Initializes this shape with completely random data.- Specified by:
randomize
in interfaceSmartShape
- Parameters:
random
- a random number generator
-
-