http://sbgn.org/libsbgn/0.2
element label

Documentation

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.)

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.

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.

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.

Properties
This component is not nillable.

Model
<label
  text = xsd:string>
(notes, extension ) bbox?
</label>


Nested Element Summary
 bbox
          
 extension
          
 notes
          

Attribute Summary
 xsd:stringtext
          

Multi-line labels are allowed.

 

Attribute Detail

text

Multi-line labels are allowed. Line breaks are encoded as &#xA; as specified by the XML standard.

Type:
xsd:string
Use:
required
Form:
unqualified

Source
<xsd:element name="label">
<xsd:complexType>
<xsd:complexContent>
<xsd:extension base="SBGNBase">
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="0" ref="sbgn:bbox"/>
</xsd:sequence>
<xsd:attribute name="text" type="xsd:string" use="required">
</xsd:attribute>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:element>


Submit a bug or a feature.
Created by xsddoc, a sub project of xframe, hosted at http://xframe.sourceforge.net.