@Entity @ClassBridge(name="details", impl=DetailsFieldBridge.class, index=UN_TOKENIZED, store=NO) public abstract class Shape extends java.lang.Object implements java.io.Serializable, IObject, IMutable, IAnnotated
Modifier and Type | Class and Description |
---|---|
static class |
Shape.Details |
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
_dynamicFields |
protected boolean |
_loaded |
protected java.util.Set<ShapeAnnotationLink> |
annotationLinks |
static java.lang.String |
ANNOTATIONLINKS |
static java.lang.String |
ANNOTATIONLINKSCOUNTPEROWNER |
protected Details |
details |
static java.lang.String |
DETAILS |
static java.lang.String |
EVENT_FILTER |
static java.lang.String |
EVENT_FILTER_ANNOTATIONLINKS |
static java.util.Set<java.lang.String> |
FIELDS |
protected java.lang.Integer |
fillColor |
static java.lang.String |
FILLCOLOR |
protected java.lang.String |
fillRule |
static java.lang.String |
FILLRULE |
protected java.lang.String |
fontFamily |
static java.lang.String |
FONTFAMILY |
protected Length |
fontSize |
static java.lang.String |
FONTSIZE |
protected java.lang.String |
fontStyle |
static java.lang.String |
FONTSTYLE |
static java.lang.String |
GROUP_FILTER |
static java.lang.String |
GROUP_FILTER_ANNOTATIONLINKS |
protected java.lang.Long |
id |
static java.lang.String |
ID |
protected java.lang.Boolean |
locked |
static java.lang.String |
LOCKED |
static java.lang.String |
OWNER_FILTER |
static java.lang.String |
OWNER_FILTER_ANNOTATIONLINKS |
static java.lang.String |
PERMS_FILTER |
static java.lang.String |
PERMS_FILTER_ANNOTATIONLINKS |
protected Roi |
roi |
static java.lang.String |
ROI |
protected java.lang.Integer |
strokeColor |
static java.lang.String |
STROKECOLOR |
protected java.lang.String |
strokeDashArray |
static java.lang.String |
STROKEDASHARRAY |
protected Length |
strokeWidth |
static java.lang.String |
STROKEWIDTH |
protected java.lang.Integer |
theC |
static java.lang.String |
THEC |
protected java.lang.Integer |
theT |
static java.lang.String |
THET |
protected java.lang.Integer |
theZ |
static java.lang.String |
THEZ |
protected AffineTransform |
transform |
static java.lang.String |
TRANSFORM |
protected java.lang.Integer |
version |
static java.lang.String |
VERSION |
Modifier | Constructor and Description |
---|---|
|
Shape() |
protected |
Shape(java.lang.Long id) |
|
Shape(java.lang.Long id,
boolean loaded)
Main constructor.
|
|
Shape(Roi _roi) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptFilter(Filter __filter) |
void |
addShapeAnnotationLink(ShapeAnnotationLink target)
use instead of setAnnotationLinks .
|
void |
addShapeAnnotationLink(ShapeAnnotationLink link,
boolean bothSides)
Adds a ome.model.annotations.ShapeAnnotationLink to annotationLinks, allowing for recursion -- whether
or not addShapeAnnotationLink will be called on the addition if it is loaded
|
void |
addShapeAnnotationLinkSet(java.util.Collection<ShapeAnnotationLink> targets)
use like addShapeAnnotationLink.
|
void |
clearAnnotationLinks()
clears the set.
|
<E> java.util.List<E> |
collectAnnotationLinks(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.annotations.ShapeAnnotationLink while
collecting the results.
|
<E> java.util.List<E> |
eachLinkedAnnotation(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.annotations.Annotation while
collecting the results.
|
protected void |
errorIfUnloaded() |
java.util.Set<java.lang.String> |
fields()
returns a Set of field names that belong to this class
|
java.util.Set<ShapeAnnotationLink> |
findShapeAnnotationLink(Annotation target)
find all ome.model.annotations.ShapeAnnotationLink which have the argument as their child.
|
protected java.util.Set<ShapeAnnotationLink> |
getAnnotationLinks()
returns annotationLinks .
|
java.util.Map<java.lang.Long,java.lang.Long> |
getAnnotationLinksCountPerOwner()
If fetched, returns the count(*) of ome.model.annotations.ShapeAnnotationLink that a user has.
|
Details |
getDetails()
The details of this object correspond to low-level system
information.
|
java.lang.Integer |
getFillColor()
Simple field ome.model.roi.Shape.fillColor (java.lang.Integer)
|
java.lang.String |
getFillRule()
Simple field ome.model.roi.Shape.fillRule (java.lang.String)
|
java.lang.String |
getFontFamily()
Simple field ome.model.roi.Shape.fontFamily (java.lang.String)
|
Length |
getFontSize()
Enum-mapped unit-based field ome.model.roi.Shape.fontSize (ome.model.units.Length)
|
java.lang.String |
getFontStyle()
Simple field ome.model.roi.Shape.fontStyle (java.lang.String)
|
GraphHolder |
getGraphHolder()
retrieves the
GraphHolder for this entity. |
java.lang.Long |
getId()
The DB unique identifier for this object.
|
java.lang.Boolean |
getLocked()
Simple field ome.model.roi.Shape.locked (java.lang.Boolean)
|
Roi |
getRoi()
Many-to-one field ome.model.roi.Shape.roi (ome.model.roi.Roi)
|
java.lang.Integer |
getStrokeColor()
Simple field ome.model.roi.Shape.strokeColor (java.lang.Integer)
|
java.lang.String |
getStrokeDashArray()
Simple field ome.model.roi.Shape.strokeDashArray (java.lang.String)
|
Length |
getStrokeWidth()
Enum-mapped unit-based field ome.model.roi.Shape.strokeWidth (ome.model.units.Length)
|
java.lang.Integer |
getTheC()
Simple field ome.model.roi.Shape.theC (java.lang.Integer)
|
java.lang.Integer |
getTheT()
Simple field ome.model.roi.Shape.theT (java.lang.Integer)
|
java.lang.Integer |
getTheZ()
Simple field ome.model.roi.Shape.theZ (java.lang.Integer)
|
AffineTransform |
getTransform()
Many-to-one field ome.model.roi.Shape.transform (ome.model.roi.AffineTransform)
|
java.lang.Integer |
getVersion()
This version number is controlled by the database for optimisitic
locking.
|
boolean |
isLoaded()
transient field (not stored in the DB) which specifies whether this
object has been loaded from the DB or is only a wrapper around the ID.
|
boolean |
isValid()
calls the class-specific validator for this instance and returns the
value from
Validation.isValid() |
java.util.Iterator<ShapeAnnotationLink> |
iterateAnnotationLinks()
should be used rather than accessing the annotationLinks set directly.
|
ShapeAnnotationLink |
linkAnnotation(Annotation addition)
Adds a ome.model.annotations.ShapeAnnotationLink to annotationLinks .
|
java.util.Iterator<Annotation> |
linkedAnnotationIterator()
provides an iterator over the parent values of the annotationLinks.
|
java.util.List<Annotation> |
linkedAnnotationList()
produces a
List -copy of the underlying collection. |
void |
putAt(java.lang.String field,
java.lang.Object value)
stores a value in this instance.
|
void |
removeShapeAnnotationLink(ShapeAnnotationLink target)
removes a single element from this set and makes the inverse call on ome.model.annotations.ShapeAnnotationLink
|
void |
removeShapeAnnotationLink(ShapeAnnotationLink link,
boolean bothSides)
removes the given ShapeAnnotationLink from annotationLinks, allowing for recursion -- whether
or not the removal will call unlinkShape again if loaded.
|
void |
removeShapeAnnotationLinkSet(java.util.Collection<ShapeAnnotationLink> targets)
use like removeShapeAnnotationLink
|
java.lang.Object |
retrieve(java.lang.String field)
retrieves a value from this instance.
|
protected void |
setAnnotationLinks(java.util.Set<ShapeAnnotationLink> annotationLinks)
setter for annotationLinks should be avoided.
|
protected void |
setAnnotationLinksCountPerOwner(java.util.Map<java.lang.Long,java.lang.Long> map) |
protected void |
setDetails(Details details)
Use the
Details.copy(ome.model.internal.Details)
or Details.shallowCopy(ome.model.internal.Details)
methods to set the Shape.Details instance instead. |
void |
setFillColor(java.lang.Integer fillColor) |
void |
setFillRule(java.lang.String fillRule) |
void |
setFontFamily(java.lang.String fontFamily) |
void |
setFontSize(Length fontSize) |
void |
setFontStyle(java.lang.String fontStyle) |
void |
setId(java.lang.Long id)
usually unneeded.
|
void |
setLocked(java.lang.Boolean locked) |
void |
setRoi(Roi roi) |
void |
setStrokeColor(java.lang.Integer strokeColor) |
void |
setStrokeDashArray(java.lang.String strokeDashArray) |
void |
setStrokeWidth(Length strokeWidth) |
void |
setTheC(java.lang.Integer theC) |
void |
setTheT(java.lang.Integer theT) |
void |
setTheZ(java.lang.Integer theZ) |
void |
setTransform(AffineTransform transform) |
void |
setVersion(java.lang.Integer version)
use with caution.
|
int |
sizeOfAnnotationLinks()
returns the size of annotationLinks.
|
protected void |
throwNullCollectionException(java.lang.String propertyName) |
java.lang.String |
toString() |
void |
unlinkAnnotation(Annotation removal)
unlinks all ome.model.annotations.Annotation instances from this instance.
|
void |
unload()
set the loaded field to false, and set all non-ID fields to null.
|
java.util.Collection<ShapeAnnotationLink> |
unmodifiableAnnotationLinks()
Returns an unmodifiable collection-view
|
Validation |
validate()
calls the class-specific validator for this instance and returns the
Validation object. |
public static final java.lang.String OWNER_FILTER
public static final java.lang.String GROUP_FILTER
public static final java.lang.String EVENT_FILTER
public static final java.lang.String PERMS_FILTER
public static final java.lang.String ID
protected java.lang.Long id
public static final java.lang.String VERSION
protected java.lang.Integer version
protected java.lang.Integer theZ
protected java.lang.Integer theT
protected java.lang.Integer theC
protected Roi roi
protected java.lang.Boolean locked
protected AffineTransform transform
protected java.lang.Integer fillColor
protected java.lang.String fillRule
protected java.lang.Integer strokeColor
protected java.lang.String strokeDashArray
protected Length strokeWidth
protected java.lang.String fontFamily
protected Length fontSize
protected java.lang.String fontStyle
protected java.util.Set<ShapeAnnotationLink> annotationLinks
public static final java.lang.String OWNER_FILTER_ANNOTATIONLINKS
public static final java.lang.String GROUP_FILTER_ANNOTATIONLINKS
public static final java.lang.String EVENT_FILTER_ANNOTATIONLINKS
public static final java.lang.String PERMS_FILTER_ANNOTATIONLINKS
protected Details details
public static final java.lang.String THEZ
public static final java.lang.String THET
public static final java.lang.String THEC
public static final java.lang.String ROI
public static final java.lang.String LOCKED
public static final java.lang.String TRANSFORM
public static final java.lang.String FILLCOLOR
public static final java.lang.String FILLRULE
public static final java.lang.String STROKECOLOR
public static final java.lang.String STROKEDASHARRAY
public static final java.lang.String STROKEWIDTH
public static final java.lang.String FONTFAMILY
public static final java.lang.String FONTSIZE
public static final java.lang.String FONTSTYLE
public static final java.lang.String ANNOTATIONLINKSCOUNTPEROWNER
public static final java.lang.String ANNOTATIONLINKS
public static final java.lang.String DETAILS
public static final java.util.Set<java.lang.String> FIELDS
protected java.util.Map<java.lang.String,java.lang.Object> _dynamicFields
protected boolean _loaded
public Shape()
protected Shape(java.lang.Long id)
public Shape(java.lang.Long id, boolean loaded)
public Shape(Roi _roi)
@DocumentId public java.lang.Long getId()
public void setId(java.lang.Long id)
IObject
public java.lang.Integer getVersion()
getVersion
in interface IMutable
public void setVersion(java.lang.Integer version)
IMutable
setVersion
in interface IMutable
version
- Value for this objects version.@Field(index=UN_TOKENIZED) @Field(index=UN_TOKENIZED,name="combined_fields") public java.lang.Integer getTheZ()
public void setTheZ(java.lang.Integer theZ)
@Field(index=UN_TOKENIZED) @Field(index=UN_TOKENIZED,name="combined_fields") public java.lang.Integer getTheT()
public void setTheT(java.lang.Integer theT)
@Field(index=UN_TOKENIZED) @Field(index=UN_TOKENIZED,name="combined_fields") public java.lang.Integer getTheC()
public void setTheC(java.lang.Integer theC)
public Roi getRoi()
public void setRoi(Roi roi)
public java.lang.Boolean getLocked()
public void setLocked(java.lang.Boolean locked)
public AffineTransform getTransform()
public void setTransform(AffineTransform transform)
@Field(index=UN_TOKENIZED) @Field(index=UN_TOKENIZED,name="combined_fields") public java.lang.Integer getFillColor()
public void setFillColor(java.lang.Integer fillColor)
@Field(index=TOKENIZED) @Field(index=TOKENIZED,name="combined_fields") public java.lang.String getFillRule()
public void setFillRule(java.lang.String fillRule)
@Field(index=UN_TOKENIZED) @Field(index=UN_TOKENIZED,name="combined_fields") public java.lang.Integer getStrokeColor()
public void setStrokeColor(java.lang.Integer strokeColor)
@Field(index=TOKENIZED) @Field(index=TOKENIZED,name="combined_fields") public java.lang.String getStrokeDashArray()
public void setStrokeDashArray(java.lang.String strokeDashArray)
public Length getStrokeWidth()
public void setStrokeWidth(Length strokeWidth)
@Field(index=TOKENIZED) @Field(index=TOKENIZED,name="combined_fields") public java.lang.String getFontFamily()
public void setFontFamily(java.lang.String fontFamily)
public Length getFontSize()
public void setFontSize(Length fontSize)
@Field(index=TOKENIZED) @Field(index=TOKENIZED,name="combined_fields") public java.lang.String getFontStyle()
public void setFontStyle(java.lang.String fontStyle)
protected java.util.Set<ShapeAnnotationLink> getAnnotationLinks()
protected void setAnnotationLinks(java.util.Set<ShapeAnnotationLink> annotationLinks)
public int sizeOfAnnotationLinks()
sizeOfAnnotationLinks
in interface IAnnotated
public java.util.Iterator<ShapeAnnotationLink> iterateAnnotationLinks()
EmptyIterator
. To test for a null collection,
see of sizeOfAnnotationLinks()
is less than zero.iterateAnnotationLinks
in interface IAnnotated
public java.util.Collection<ShapeAnnotationLink> unmodifiableAnnotationLinks()
unmodifiableAnnotationLinks
in interface IAnnotated
public <E> java.util.List<E> collectAnnotationLinks(CBlock<E> block)
block == null
, then the
iterator values themselves are collected. This method uses
iterateAnnotationLinks()
internally and so will return a value
even if the underlying collection is null.collectAnnotationLinks
in interface IAnnotated
public void addShapeAnnotationLink(ShapeAnnotationLink target)
public void addShapeAnnotationLinkSet(java.util.Collection<ShapeAnnotationLink> targets)
public void removeShapeAnnotationLink(ShapeAnnotationLink target)
public void removeShapeAnnotationLinkSet(java.util.Collection<ShapeAnnotationLink> targets)
public ShapeAnnotationLink linkAnnotation(Annotation addition)
linkAnnotation
in interface IAnnotated
public void addShapeAnnotationLink(ShapeAnnotationLink link, boolean bothSides)
public java.util.Iterator<Annotation> linkedAnnotationIterator()
ConcurrentModificationException
.
Use linkedAnnotationList()
instead.linkedAnnotationIterator
in interface IAnnotated
public java.util.Set<ShapeAnnotationLink> findShapeAnnotationLink(Annotation target)
public java.util.List<Annotation> linkedAnnotationList()
List
-copy of the underlying collection. Unlike,
linkedAnnotationIterator()
, while using the returned List
,
modifications can be made to the underlying collection without throwing
ConcurrentModificationException
.linkedAnnotationList
in interface IAnnotated
public <E> java.util.List<E> eachLinkedAnnotation(CBlock<E> block)
block == null
, then the
iterator values themselves are collected.eachLinkedAnnotation
in interface IAnnotated
public void unlinkAnnotation(Annotation removal)
unlinkAnnotation
in interface IAnnotated
public void removeShapeAnnotationLink(ShapeAnnotationLink link, boolean bothSides)
public void clearAnnotationLinks()
clearAnnotationLinks
in interface IAnnotated
protected void setAnnotationLinksCountPerOwner(java.util.Map<java.lang.Long,java.lang.Long> map)
public java.util.Map<java.lang.Long,java.lang.Long> getAnnotationLinksCountPerOwner()
public Details getDetails()
Details
type.getDetails
in interface IObject
protected void setDetails(Details details)
Details.copy(ome.model.internal.Details)
or Details.shallowCopy(ome.model.internal.Details)
methods to set the Shape.Details
instance instead.public boolean isValid()
IObject
Validation.isValid()
public Validation validate()
IObject
Validation
object.public boolean acceptFilter(Filter __filter)
acceptFilter
in interface Filterable
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Set<java.lang.String> fields()
IObject
public java.lang.Object retrieve(java.lang.String field)
IObject
field
which match a field of this instance will be delegated to the accessors.
Otherwise, values will be retrieved from a lazy-loaded map filled by
calls to IObject.putAt(String, Object)
public void putAt(java.lang.String field, java.lang.Object value)
IObject
field
which
match a field of this instance will be delegated to the accessors.
Otherwise, values will be stored in a lazy-loaded map.public boolean isLoaded()
IObject
protected void errorIfUnloaded()
public void unload()
IObject
public final GraphHolder getGraphHolder()
IObject
GraphHolder
for this entity. If the GraphHolder has
not been actively set, a new one will be instatiated.getGraphHolder
in interface IObject
protected void throwNullCollectionException(java.lang.String propertyName)
Version: 5.4.4-ice35-b82
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.