Package omero.model
Class SmartPathI
- java.lang.Object
-
- Ice.ObjectImpl
-
- omero.model.IObject
-
- omero.model.Shape
-
- omero.model.Path
-
- omero.model.PathI
-
- omero.model.SmartPathI
-
- All Implemented Interfaces:
Ice.Object
,java.io.Serializable
,java.lang.Cloneable
,ome.model.ModelBased
,_IObjectOperations
,_IObjectOperationsNC
,_PathOperations
,_PathOperationsNC
,_ShapeOperations
,_ShapeOperationsNC
,SmartShape
public class SmartPathI extends PathI 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.PathI
ANNOTATIONLINKS, D, DETAILS, FILLCOLOR, FILLRULE, FONTFAMILY, FONTSIZE, FONTSTYLE, LOCKED, ROI, STROKECOLOR, STROKEDASHARRAY, STROKEWIDTH, TEXTVALUE, THEC, THET, THEZ, TRANSFORM
-
Fields inherited from class omero.model.Path
__ids, d, serialVersionUID, textValue
-
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 SmartPathI()
-
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.PathI
addAllShapeAnnotationLinkSet, addShapeAnnotationLink, addShapeAnnotationLinkToBoth, cast, clearAnnotationLinks, copyAnnotationLinks, copyObject, errorIfUnloaded, fillObject, findShapeAnnotationLink, getAnnotationLinks, getAnnotationLinksCountPerOwner, getD, getDetails, getFillColor, getFillRule, getFontFamily, getFontSize, getFontStyle, getId, getLocked, getRoi, getStrokeColor, getStrokeDashArray, getStrokeWidth, getTextValue, getTheC, getTheT, getTheZ, getTransform, getVersion, isAnnotated, isAnnotationLinksLoaded, isGlobal, isLink, isLoaded, isMutable, iterateAnnotationLinks, linkAnnotation, linkedAnnotationList, proxy, reloadAnnotationLinks, removeAllShapeAnnotationLinkSet, removeShapeAnnotationLink, removeShapeAnnotationLinkFromBoth, setAnnotationLinks, setD, setFillColor, setFillRule, setFontFamily, setFontSize, setFontStyle, setId, setLocked, setRoi, setStrokeColor, setStrokeDashArray, setStrokeWidth, setTextValue, setTheC, setTheT, setTheZ, setTransform, setVersion, shallowCopy, sizeOfAnnotationLinks, throwNullCollectionException, toggleCollectionsLoaded, unlinkAnnotation, unload, unloadAnnotationLinks, unloadCollections, unloadD, unloadDetails, unloadFillColor, unloadFillRule, unloadFontFamily, unloadFontSize, unloadFontStyle, unloadLocked, unloadRoi, unloadStrokeColor, unloadStrokeDashArray, unloadStrokeWidth, unloadTextValue, unloadTheC, unloadTheT, unloadTheZ, unloadTransform
-
Methods inherited from class omero.model.Path
___getD, ___getTextValue, ___setD, ___setTextValue, __dispatch, __readImpl, __writeImpl, clone, getD, getTextValue, ice_id, ice_id, ice_ids, ice_ids, ice_isA, ice_isA, ice_staticId, setD, setTextValue
-
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
-
-