<xsd:element name="label">
<xsd:annotation>
<xsd:documentation>
<p>The label element describes the text accompanying a glyph. The text attribute is mandatory. Its position can be specified by a bbox (optional). Tools are free to display the text in any style (font, font-size, etc.)</p>
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:complexContent>
<xsd:extension base="SBGNBase">
<xsd:sequence>
<xsd:annotation>
<xsd:documentation>
<p>The bbox element of a label is optional. When no bbox is defined, the bbox of the parent glyph is inherited. The label should be drawn centered horizontally and vertically in the bbox.</p>
<p>When the bbox is inherited, the label can freely spill outside (just like it can spill outside its parent glyph). An explicit bbox provides a stronger hint regarding what surface the label should cover. It defines an upper boundary outside of which the label should (ideally) not spill. It also represents a preferred size: the surface covered by the label can be smaller, but should ideally be as close as possible to the bbox.</p>
<p>In most glyphs (EPNs, unit of information, etc.), the label is supposed to be centered, so the bbox is usually omitted (unless there's a specific hint to be shared concerning the area the label should ideally cover). However, labels can be drawn anywhere inside compartments or complex, so these should preferably have an explicit bbox.</p>
</xsd:documentation>
</xsd:annotation>
<xsd:element ref="sbgn:bbox" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="text" type="xsd:string" use="required">
<xsd:annotation>
<xsd:documentation>
<p>Multi-line labels are allowed. Line breaks are encoded as 
 as specified by the XML standard.</p>
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:element> |