public abstract class Shape extends AbstractOMEModelObject
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAMESPACE |
Constructor and Description |
---|
Shape()
Default constructor.
|
Shape(org.w3c.dom.Element element,
OMEModel model)
Constructs Shape recursively from an XML DOM tree.
|
Shape(Shape orig)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
protected org.w3c.dom.Element |
asXMLElement(org.w3c.dom.Document document,
org.w3c.dom.Element Shape_element)
Takes the entire object hierarchy and produced an XML DOM tree taking
into account class hierarchy.
|
Color |
getFillColor() |
FillRule |
getFillRule() |
FontFamily |
getFontFamily() |
NonNegativeInteger |
getFontSize() |
FontStyle |
getFontStyle() |
java.lang.String |
getID() |
LineCap |
getLineCap() |
java.lang.Boolean |
getLocked() |
Color |
getStrokeColor() |
java.lang.String |
getStrokeDashArray() |
java.lang.Double |
getStrokeWidth() |
java.lang.String |
getText() |
NonNegativeInteger |
getTheC() |
NonNegativeInteger |
getTheT() |
NonNegativeInteger |
getTheZ() |
AffineTransform |
getTransform() |
Union |
getUnion() |
java.lang.Boolean |
getVisible() |
boolean |
link(Reference reference,
OMEModelObject o)
Link a given OME model object to this model object.
|
void |
setFillColor(Color fillColor) |
void |
setFillRule(FillRule fillRule) |
void |
setFontFamily(FontFamily fontFamily) |
void |
setFontSize(NonNegativeInteger fontSize) |
void |
setFontStyle(FontStyle fontStyle) |
void |
setID(java.lang.String id) |
void |
setLineCap(LineCap lineCap) |
void |
setLocked(java.lang.Boolean locked) |
void |
setStrokeColor(Color strokeColor) |
void |
setStrokeDashArray(java.lang.String strokeDashArray) |
void |
setStrokeWidth(java.lang.Double strokeWidth) |
void |
setText(java.lang.String text) |
void |
setTheC(NonNegativeInteger theC) |
void |
setTheT(NonNegativeInteger theT) |
void |
setTheZ(NonNegativeInteger theZ) |
void |
setTransform(AffineTransform transform) |
void |
setUnion(Union union_BackReference) |
void |
setVisible(java.lang.Boolean visible) |
void |
update(org.w3c.dom.Element element,
OMEModel model)
Updates Shape recursively from an XML DOM tree.
|
asXMLElement, getChildrenByTagName, stripNamespacePrefix
public static final java.lang.String NAMESPACE
public Shape()
public Shape(org.w3c.dom.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(org.w3c.dom.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 java.lang.String getStrokeDashArray()
public void setStrokeDashArray(java.lang.String strokeDashArray)
public java.lang.Double getStrokeWidth()
public void setStrokeWidth(java.lang.Double strokeWidth)
public java.lang.Boolean getLocked()
public void setLocked(java.lang.Boolean locked)
public FillRule getFillRule()
public void setFillRule(FillRule fillRule)
public java.lang.Boolean getVisible()
public void setVisible(java.lang.Boolean visible)
public LineCap getLineCap()
public void setLineCap(LineCap lineCap)
public NonNegativeInteger getTheC()
public void setTheC(NonNegativeInteger theC)
public FontFamily getFontFamily()
public void setFontFamily(FontFamily fontFamily)
public FontStyle getFontStyle()
public void setFontStyle(FontStyle fontStyle)
public NonNegativeInteger getFontSize()
public void setFontSize(NonNegativeInteger fontSize)
public Color getFillColor()
public void setFillColor(Color fillColor)
public java.lang.String getText()
public void setText(java.lang.String text)
public Color getStrokeColor()
public void setStrokeColor(Color strokeColor)
public NonNegativeInteger getTheT()
public void setTheT(NonNegativeInteger theT)
public java.lang.String getID()
public void setID(java.lang.String id)
public NonNegativeInteger getTheZ()
public void setTheZ(NonNegativeInteger theZ)
public AffineTransform getTransform()
public void setTransform(AffineTransform transform)
public Union getUnion()
public void setUnion(Union union_BackReference)
protected org.w3c.dom.Element asXMLElement(org.w3c.dom.Document document, org.w3c.dom.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 © 2014 Open Microscopy Environment