@Entity @ClassBridge(name="details", impl=DetailsFieldBridge.class, index=UN_TOKENIZED, store=NO) public abstract class Shape extends Object implements Serializable, IObject, IMutable, IAnnotated
Modifier and Type | Class and Description |
---|---|
static class |
Shape.Details |
Modifier | Constructor and Description |
---|---|
|
Shape() |
protected |
Shape(Long id) |
|
Shape(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(Collection<ShapeAnnotationLink> targets)
use like addShapeAnnotationLink.
|
void |
clearAnnotationLinks()
clears the set.
|
<E> 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> 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() |
Set<String> |
fields()
returns a Set of field names that belong to this class
|
Set<ShapeAnnotationLink> |
findShapeAnnotationLink(Annotation target)
find all ome.model.annotations.ShapeAnnotationLink which have the argument as their child.
|
protected Set<ShapeAnnotationLink> |
getAnnotationLinks()
returns annotationLinks .
|
Map<Long,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.
|
Integer |
getFillColor()
Simple field ome.model.roi.Shape.fillColor (java.lang.Integer)
|
String |
getFillRule()
Simple field ome.model.roi.Shape.fillRule (java.lang.String)
|
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)
|
String |
getFontStretch()
Simple field ome.model.roi.Shape.fontStretch (java.lang.String)
|
String |
getFontStyle()
Simple field ome.model.roi.Shape.fontStyle (java.lang.String)
|
String |
getFontVariant()
Simple field ome.model.roi.Shape.fontVariant (java.lang.String)
|
String |
getFontWeight()
Simple field ome.model.roi.Shape.fontWeight (java.lang.String)
|
String |
getG()
Simple field ome.model.roi.Shape.g (java.lang.String)
|
GraphHolder |
getGraphHolder()
retrieves the
GraphHolder for this entity. |
Long |
getId()
The DB unique identifier for this object.
|
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)
|
Integer |
getStrokeColor()
Simple field ome.model.roi.Shape.strokeColor (java.lang.Integer)
|
String |
getStrokeDashArray()
Simple field ome.model.roi.Shape.strokeDashArray (java.lang.String)
|
Integer |
getStrokeDashOffset()
Simple field ome.model.roi.Shape.strokeDashOffset (java.lang.Integer)
|
String |
getStrokeLineCap()
Simple field ome.model.roi.Shape.strokeLineCap (java.lang.String)
|
String |
getStrokeLineJoin()
Simple field ome.model.roi.Shape.strokeLineJoin (java.lang.String)
|
Integer |
getStrokeMiterLimit()
Simple field ome.model.roi.Shape.strokeMiterLimit (java.lang.Integer)
|
Length |
getStrokeWidth()
Enum-mapped unit-based field ome.model.roi.Shape.strokeWidth (ome.model.units.Length)
|
Integer |
getTheC()
Simple field ome.model.roi.Shape.theC (java.lang.Integer)
|
Integer |
getTheT()
Simple field ome.model.roi.Shape.theT (java.lang.Integer)
|
Integer |
getTheZ()
Simple field ome.model.roi.Shape.theZ (java.lang.Integer)
|
String |
getTransform()
Simple field ome.model.roi.Shape.transform (java.lang.String)
|
String |
getVectorEffect()
Simple field ome.model.roi.Shape.vectorEffect (java.lang.String)
|
Integer |
getVersion()
This version number is controlled by the database for optimisitic
locking.
|
Boolean |
getVisibility()
Simple field ome.model.roi.Shape.visibility (java.lang.Boolean)
|
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() |
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 .
|
Iterator<Annotation> |
linkedAnnotationIterator()
provides an iterator over the parent values of the annotationLinks.
|
List<Annotation> |
linkedAnnotationList()
produces a
List -copy of the underlying collection. |
void |
putAt(String field,
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(Collection<ShapeAnnotationLink> targets)
use like removeShapeAnnotationLink
|
Object |
retrieve(String field)
retrieves a value from this instance.
|
protected void |
setAnnotationLinks(Set<ShapeAnnotationLink> annotationLinks)
setter for annotationLinks should be avoided.
|
protected void |
setAnnotationLinksCountPerOwner(Map<Long,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(Integer fillColor) |
void |
setFillRule(String fillRule) |
void |
setFontFamily(String fontFamily) |
void |
setFontSize(Length fontSize) |
void |
setFontStretch(String fontStretch) |
void |
setFontStyle(String fontStyle) |
void |
setFontVariant(String fontVariant) |
void |
setFontWeight(String fontWeight) |
void |
setG(String g) |
void |
setId(Long id)
usually unneeded.
|
void |
setLocked(Boolean locked) |
void |
setRoi(Roi roi) |
void |
setStrokeColor(Integer strokeColor) |
void |
setStrokeDashArray(String strokeDashArray) |
void |
setStrokeDashOffset(Integer strokeDashOffset) |
void |
setStrokeLineCap(String strokeLineCap) |
void |
setStrokeLineJoin(String strokeLineJoin) |
void |
setStrokeMiterLimit(Integer strokeMiterLimit) |
void |
setStrokeWidth(Length strokeWidth) |
void |
setTheC(Integer theC) |
void |
setTheT(Integer theT) |
void |
setTheZ(Integer theZ) |
void |
setTransform(String transform) |
void |
setVectorEffect(String vectorEffect) |
void |
setVersion(Integer version)
use with caution.
|
void |
setVisibility(Boolean visibility) |
int |
sizeOfAnnotationLinks()
returns the size of annotationLinks.
|
protected void |
throwNullCollectionException(String propertyName) |
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.
|
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 String OWNER_FILTER
public static final String GROUP_FILTER
public static final String EVENT_FILTER
public static final String PERMS_FILTER
public static final String ID
protected Long id
public static final String VERSION
protected Integer version
protected Integer theZ
protected Integer theT
protected Integer theC
protected Roi roi
protected Boolean locked
protected String g
protected String transform
protected String vectorEffect
protected Boolean visibility
protected Integer fillColor
protected String fillRule
protected Integer strokeColor
protected String strokeDashArray
protected Integer strokeDashOffset
protected String strokeLineCap
protected String strokeLineJoin
protected Integer strokeMiterLimit
protected Length strokeWidth
protected String fontFamily
protected Length fontSize
protected String fontStretch
protected String fontStyle
protected String fontVariant
protected String fontWeight
protected Set<ShapeAnnotationLink> annotationLinks
public static final String OWNER_FILTER_ANNOTATIONLINKS
public static final String GROUP_FILTER_ANNOTATIONLINKS
public static final String EVENT_FILTER_ANNOTATIONLINKS
public static final String PERMS_FILTER_ANNOTATIONLINKS
protected Details details
public static final String THEZ
public static final String THET
public static final String THEC
public static final String ROI
public static final String LOCKED
public static final String G
public static final String TRANSFORM
public static final String VECTOREFFECT
public static final String VISIBILITY
public static final String FILLCOLOR
public static final String FILLRULE
public static final String STROKECOLOR
public static final String STROKEDASHARRAY
public static final String STROKEDASHOFFSET
public static final String STROKELINECAP
public static final String STROKELINEJOIN
public static final String STROKEMITERLIMIT
public static final String STROKEWIDTH
public static final String FONTFAMILY
public static final String FONTSIZE
public static final String FONTSTRETCH
public static final String FONTSTYLE
public static final String FONTVARIANT
public static final String FONTWEIGHT
public static final String ANNOTATIONLINKSCOUNTPEROWNER
public static final String ANNOTATIONLINKS
public static final String DETAILS
protected boolean _loaded
public Shape()
protected Shape(Long id)
public Shape(Long id, boolean loaded)
public Shape(Roi _roi)
@DocumentId public Long getId()
public void setId(Long id)
IObject
public Integer getVersion()
getVersion
in interface IMutable
public void setVersion(Integer version)
IMutable
setVersion
in interface IMutable
version
- Value for this objects version.@Fields(value={@Field(index=UN_TOKENIZED),@Field(index=UN_TOKENIZED,name="combined_fields")}) public Integer getTheZ()
public void setTheZ(Integer theZ)
@Fields(value={@Field(index=UN_TOKENIZED),@Field(index=UN_TOKENIZED,name="combined_fields")}) public Integer getTheT()
public void setTheT(Integer theT)
@Fields(value={@Field(index=UN_TOKENIZED),@Field(index=UN_TOKENIZED,name="combined_fields")}) public Integer getTheC()
public void setTheC(Integer theC)
public Roi getRoi()
public void setRoi(Roi roi)
public Boolean getLocked()
public void setLocked(Boolean locked)
@Fields(value={@Field(index=TOKENIZED),@Field(index=TOKENIZED,name="combined_fields")}) public String getG()
public void setG(String g)
@Fields(value={@Field(index=TOKENIZED),@Field(index=TOKENIZED,name="combined_fields")}) public String getTransform()
public void setTransform(String transform)
@Fields(value={@Field(index=TOKENIZED),@Field(index=TOKENIZED,name="combined_fields")}) public String getVectorEffect()
public void setVectorEffect(String vectorEffect)
public Boolean getVisibility()
public void setVisibility(Boolean visibility)
@Fields(value={@Field(index=UN_TOKENIZED),@Field(index=UN_TOKENIZED,name="combined_fields")}) public Integer getFillColor()
public void setFillColor(Integer fillColor)
@Fields(value={@Field(index=TOKENIZED),@Field(index=TOKENIZED,name="combined_fields")}) public String getFillRule()
public void setFillRule(String fillRule)
@Fields(value={@Field(index=UN_TOKENIZED),@Field(index=UN_TOKENIZED,name="combined_fields")}) public Integer getStrokeColor()
public void setStrokeColor(Integer strokeColor)
@Fields(value={@Field(index=TOKENIZED),@Field(index=TOKENIZED,name="combined_fields")}) public String getStrokeDashArray()
public void setStrokeDashArray(String strokeDashArray)
@Fields(value={@Field(index=UN_TOKENIZED),@Field(index=UN_TOKENIZED,name="combined_fields")}) public Integer getStrokeDashOffset()
public void setStrokeDashOffset(Integer strokeDashOffset)
@Fields(value={@Field(index=TOKENIZED),@Field(index=TOKENIZED,name="combined_fields")}) public String getStrokeLineCap()
public void setStrokeLineCap(String strokeLineCap)
@Fields(value={@Field(index=TOKENIZED),@Field(index=TOKENIZED,name="combined_fields")}) public String getStrokeLineJoin()
public void setStrokeLineJoin(String strokeLineJoin)
@Fields(value={@Field(index=UN_TOKENIZED),@Field(index=UN_TOKENIZED,name="combined_fields")}) public Integer getStrokeMiterLimit()
public void setStrokeMiterLimit(Integer strokeMiterLimit)
public Length getStrokeWidth()
public void setStrokeWidth(Length strokeWidth)
@Fields(value={@Field(index=TOKENIZED),@Field(index=TOKENIZED,name="combined_fields")}) public String getFontFamily()
public void setFontFamily(String fontFamily)
public Length getFontSize()
public void setFontSize(Length fontSize)
@Fields(value={@Field(index=TOKENIZED),@Field(index=TOKENIZED,name="combined_fields")}) public String getFontStretch()
public void setFontStretch(String fontStretch)
@Fields(value={@Field(index=TOKENIZED),@Field(index=TOKENIZED,name="combined_fields")}) public String getFontStyle()
public void setFontStyle(String fontStyle)
@Fields(value={@Field(index=TOKENIZED),@Field(index=TOKENIZED,name="combined_fields")}) public String getFontVariant()
public void setFontVariant(String fontVariant)
@Fields(value={@Field(index=TOKENIZED),@Field(index=TOKENIZED,name="combined_fields")}) public String getFontWeight()
public void setFontWeight(String fontWeight)
protected Set<ShapeAnnotationLink> getAnnotationLinks()
protected void setAnnotationLinks(Set<ShapeAnnotationLink> annotationLinks)
public int sizeOfAnnotationLinks()
sizeOfAnnotationLinks
in interface IAnnotated
public Iterator<ShapeAnnotationLink> iterateAnnotationLinks()
EmptyIterator
. To test for a null collection,
see of sizeOfAnnotationLinks()
is less than zero.iterateAnnotationLinks
in interface IAnnotated
public Collection<ShapeAnnotationLink> unmodifiableAnnotationLinks()
unmodifiableAnnotationLinks
in interface IAnnotated
public <E> 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(Collection<ShapeAnnotationLink> targets)
public void removeShapeAnnotationLink(ShapeAnnotationLink target)
public void removeShapeAnnotationLinkSet(Collection<ShapeAnnotationLink> targets)
public ShapeAnnotationLink linkAnnotation(Annotation addition)
linkAnnotation
in interface IAnnotated
public void addShapeAnnotationLink(ShapeAnnotationLink link, boolean bothSides)
public Iterator<Annotation> linkedAnnotationIterator()
ConcurrentModificationException
.
Use linkedAnnotationList()
instead.linkedAnnotationIterator
in interface IAnnotated
public Set<ShapeAnnotationLink> findShapeAnnotationLink(Annotation target)
public 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> 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
public Map<Long,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 Set<String> fields()
IObject
public Object retrieve(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(String field, 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(String propertyName)
Version: 5.1.4-ice35-b55
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.