public abstract class Shape extends AbstractOMEModelObject
Modifier and Type | Field and Description |
---|---|
private List<Annotation> |
annotationLinks |
private Color |
fillColor |
private FillRule |
fillRule |
private FontFamily |
fontFamily |
private Length |
fontSize |
private FontStyle |
fontStyle |
private String |
id |
private LineCap |
lineCap |
private Boolean |
locked |
private static org.slf4j.Logger |
LOGGER
Logger for this class.
|
static String |
NAMESPACE |
private Color |
strokeColor |
private String |
strokeDashArray |
private Length |
strokeWidth |
private String |
text |
private NonNegativeInteger |
theC |
private NonNegativeInteger |
theT |
private NonNegativeInteger |
theZ |
private AffineTransform |
transform |
private Union |
union |
private Boolean |
visible |
Constructor and Description |
---|
Shape()
Default constructor.
|
Shape(Element element,
OMEModel model)
Constructs Shape recursively from an XML DOM tree.
|
Shape(Shape orig)
Copy constructor.
|
asXMLElement, getChildrenByTagName, stripNamespacePrefix
public static final String NAMESPACE
private static final org.slf4j.Logger LOGGER
private String strokeDashArray
private Length strokeWidth
private Boolean locked
private FillRule fillRule
private Boolean visible
private LineCap lineCap
private NonNegativeInteger theC
private FontFamily fontFamily
private FontStyle fontStyle
private Length fontSize
private Color fillColor
private String text
private Color strokeColor
private NonNegativeInteger theT
private String id
private NonNegativeInteger theZ
private AffineTransform transform
private List<Annotation> annotationLinks
private Union union
public Shape()
public Shape(Element element, OMEModel model) throws EnumerationException
element
- Root of the XML DOM tree to construct a model object
graph from.model
- Handler for the OME model which keeps track of instances
and references seen during object population.EnumerationException
- If there is an error instantiating an
enumeration during model object creation.public Shape(Shape orig)
public void update(Element element, OMEModel model) throws EnumerationException
update
in interface OMEModelObject
update
in class AbstractOMEModelObject
element
- Root of the XML DOM tree to construct a model object
graph from.model
- Handler for the OME model which keeps track of instances
and references seen during object population.EnumerationException
- If there is an error instantiating an
enumeration during model object creation.public boolean link(Reference reference, OMEModelObject o)
OMEModelObject
link
in interface OMEModelObject
link
in class AbstractOMEModelObject
reference
- The type qualifier for the reference. This should
be the corresponding reference type for o
. If, for example,
o
is of type Image
, reference
MUST be of type ImageRef
.o
- Model object to link to.true
if this model object was able to handle the
reference, false
otherwise.public String getStrokeDashArray()
public void setStrokeDashArray(String strokeDashArray)
public Length getStrokeWidth()
public void setStrokeWidth(Length strokeWidth)
public Boolean getLocked()
public void setLocked(Boolean locked)
public FillRule getFillRule()
public void setFillRule(FillRule fillRule)
public Boolean getVisible()
public void setVisible(Boolean visible)
public LineCap getLineCap()
public void setLineCap(LineCap lineCap)
public NonNegativeInteger getTheC()
public void setTheC(NonNegativeInteger theC)
public static String getStrokeWidthUnitXsdDefault()
public FontFamily getFontFamily()
public void setFontFamily(FontFamily fontFamily)
public static String getFontSizeUnitXsdDefault()
public FontStyle getFontStyle()
public void setFontStyle(FontStyle fontStyle)
public Length getFontSize()
public void setFontSize(Length fontSize)
public Color getFillColor()
public void setFillColor(Color fillColor)
public String getText()
public void setText(String text)
public Color getStrokeColor()
public void setStrokeColor(Color strokeColor)
public NonNegativeInteger getTheT()
public void setTheT(NonNegativeInteger theT)
public String getID()
public void setID(String id)
public NonNegativeInteger getTheZ()
public void setTheZ(NonNegativeInteger theZ)
public AffineTransform getTransform()
public void setTransform(AffineTransform transform)
public int sizeOfLinkedAnnotationList()
public List<Annotation> copyLinkedAnnotationList()
public Annotation getLinkedAnnotation(int index)
public Annotation setLinkedAnnotation(int index, Annotation o)
public boolean linkAnnotation(Annotation o)
public boolean unlinkAnnotation(Annotation o)
public Union getUnion()
public void setUnion(Union union_BackReference)
protected Element asXMLElement(Document document, Element Shape_element)
AbstractOMEModelObject
asXMLElement
in class AbstractOMEModelObject
document
- Destination document for element creation, etc.Shape_element
- Element from the subclass. If null a new
element will be created of this class.element
populated with properties from this class.Copyright © 2016 Open Microscopy Environment