Modifier and Type | Method and Description |
---|---|
SNTPoint |
getBarycentre()
Returns the center of this annotation bounding box.
|
org.jzy3d.plot3d.primitives.AbstractDrawable |
getDrawable()
Returns the
AbstractDrawable associated with this annotation. |
java.lang.String |
getLabel()
Gets the annotation label
|
void |
setBoundingBoxColor(org.scijava.util.ColorRGB boundingBoxColor)
Determines whether the mesh bounding box should be displayed.
|
void |
setColor(org.scijava.util.ColorRGB color,
double transparencyPercent)
Assigns a color to the annotation.
|
void |
setColor(java.lang.String color)
Script friendly method to assign a color to the annotation.
|
void |
setColor(java.lang.String color,
double transparencyPercent)
Script friendly method to assign a color to the annotation.
|
void |
setSize(float size)
Sets the annotation width.
|
public void setSize(float size)
size
- the new width.public void setColor(org.scijava.util.ColorRGB color, double transparencyPercent)
color
- the color to render the annotation. (If the
annotation contains a wireframe, the wireframe is
rendered using a "contrast" color computed from
this one.transparencyPercent
- the color transparency (in percentage)public void setColor(java.lang.String color, double transparencyPercent)
color
- the color to render the imported file, either a 1)
HTML color codes starting with hash (#
), a
color preset ("red", "blue", etc.), or integer
triples of the form r,g,b
and range
[0, 255]
transparencyPercent
- the color transparency (in percentage)public void setColor(java.lang.String color)
color
- the color to render the imported file, either a 1)
HTML color codes starting with hash (#
), a
color preset ("red", "blue", etc.), or integer
triples of the form r,g,b
and range
[0, 255]
public void setBoundingBoxColor(org.scijava.util.ColorRGB boundingBoxColor)
boundingBoxColor
- the color of the mesh bounding box. If null, no
bounding box is displayedpublic java.lang.String getLabel()
public SNTPoint getBarycentre()
public org.jzy3d.plot3d.primitives.AbstractDrawable getDrawable()
AbstractDrawable
associated with this annotation.