public abstract class ShapeData extends DataObject
修飾子とタイプ | フィールドと説明 |
---|---|
static boolean |
READONLY_FLAG
Flag stating that the ROI is read only.
|
protected ShapeSettingsData |
settings
The representation of the shape.
|
修飾子 | コンストラクタと説明 |
---|---|
protected |
ShapeData(omero.model.Shape shape)
Creates a new instance.
|
protected |
ShapeData(omero.model.Shape shape,
boolean clientObject)
Creates a new instance.
|
修飾子とタイプ | メソッドと説明 |
---|---|
protected java.lang.String |
fromPoints(java.lang.String type)
Parses out the type from the points string.
|
int |
getC()
Returns the channel.
|
ROICoordinate |
getROICoordinate()
Returns the ROICoordinate for the ShapeData.
|
ShapeSettingsData |
getShapeSettings()
Returns the settings associated to the shape.
|
int |
getT()
Returns the time-point.
|
java.lang.String |
getTransform()
Returns the transformation.
|
int |
getZ()
Returns the z-section.
|
boolean |
isClientObject()
Returns
true if the object one that has been created client
side. |
boolean |
isReadOnly()
Returns
true if the object a read-only object,
false otherwise. |
boolean |
isVisible()
Returns
true if the shape is visible, false
otherwise. |
protected java.util.List<java.lang.Integer> |
parsePointsToIntegerList(java.lang.String str)
Parses the points list from the string to a list of integer objects.
|
protected java.util.List<java.awt.geom.Point2D.Double> |
parsePointsToPoint2DList(java.lang.String str)
Parses the points list from the string to a list of point2d objects.
|
void |
setC(int c)
Sets the channel.
|
void |
setClientObject(boolean clientObject)
Sets to
true if the object one that has been created client
side, false otherwise. |
void |
setDirty(boolean dirty)
Sets to
true if the figure been changed from the server
side version, false otherwise. |
void |
setReadOnly(boolean readOnly)
Sets to
true if the object is a read-only object,
false otherwise. |
void |
setROICoordinate(ROICoordinate coord)
Sets the ROICoordinate for the ShapeData
|
protected void |
setShapeSettings(omero.model.Shape shape)
Set the settings associated to the shape.
|
void |
setT(int t)
Sets the time-point.
|
void |
setTransform(java.lang.String transform)
Sets the Affine transform of the shape.
|
void |
setVisible(boolean visible)
Sets to
true if the shape is visible, false
otherwise. |
void |
setZ(int z)
Sets the z-section.
|
protected static java.lang.String |
toNumber(double number)
Returns a double array as a number attribute value.
|
protected static java.lang.String |
toPoints(java.awt.geom.Point2D.Double[] points)
Returns a Point2D.Double array as a Points attribute value. as specified
in http://www.w3.org/TR/SVGMobile12/shapes.html#PointsBNF
|
asAnnotation, asChannel, asDataset, asExperimenter, asGroup, asIAnnotated, asImage, asIObject, asPixels, asPlate, asPojo, asPojos, asPojos, asProject, asScreen, asWell, asWellSample, canAnnotate, canDelete, canEdit, canLink, getCreated, getDetails, getGroupId, getId, getOwner, getPermissions, getUpdated, getVersion, isDirty, isLoaded, nullDetails, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, setId, setValue, setVersion, timeOfEvent, toString
public static boolean READONLY_FLAG
protected ShapeSettingsData settings
protected ShapeData(omero.model.Shape shape, boolean clientObject)
shape
- The shape to host.clientObject
- Pass true
if it is a client object,
false
otherwise.protected ShapeData(omero.model.Shape shape)
shape
- The shape to host.protected java.lang.String fromPoints(java.lang.String type)
type
- The value in the list to parse.protected java.util.List<java.awt.geom.Point2D.Double> parsePointsToPoint2DList(java.lang.String str)
str
- the string to convert to points.protected java.util.List<java.lang.Integer> parsePointsToIntegerList(java.lang.String str)
str
- the string to convert to points.protected static java.lang.String toPoints(java.awt.geom.Point2D.Double[] points)
protected static java.lang.String toNumber(double number)
public ShapeSettingsData getShapeSettings()
protected void setShapeSettings(omero.model.Shape shape)
shape
- See above.public boolean isReadOnly()
true
if the object a read-only object,
false
otherwise.public void setReadOnly(boolean readOnly)
true
if the object is a read-only object,
false
otherwise.readOnly
- The value to set.public boolean isClientObject()
true
if the object one that has been created client
side. If so the id will be
null, or invalid.public void setClientObject(boolean clientObject)
true
if the object one that has been created client
side, false
otherwise.clientObject
- The value to set..public int getZ()
public void setZ(int z)
z
- The value to set.public int getC()
public void setC(int c)
c
- The value to set.public int getT()
public void setT(int t)
t
- The value to set.public void setROICoordinate(ROICoordinate coord)
roiCoordinate
- The value to set.public ROICoordinate getROICoordinate()
public java.lang.String getTransform()
public void setTransform(java.lang.String transform)
See
- above.public void setDirty(boolean dirty)
true
if the figure been changed from the server
side version, false
otherwise.setDirty
クラス内 DataObject
dirty
- The value to set.public boolean isVisible()
true
if the shape is visible, false
otherwise.public void setVisible(boolean visible)
true
if the shape is visible, false
otherwise.visible
- The value to set.