Package bar :: Module base :: Class barRegularLabel
[hide private]
[frames] | no frames]

Class barRegularLabel

Regular label is used to indicate area corresponding to ordinary brain structure.

Regular label has no prefix and the fill color is #232323. This value is hardcoded as it is constant across all templates.

Nested Classes [hide private]
Instance Methods [hide private]
_validateCaption(self, caption)
Validate given caption.

Inherited from barStructureLabel: __init__, affineTransform, getXMLelement

Inherited from barAtlasSlideElement (private): _getTextNodeXMLelement

Inherited from barObject: __str__, getElementById, writeXMLtoFile

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Methods [hide private]

Inherited from barStructureLabel: castLabelType, castToCommentLabel, castToSpotLabel, fromXML

Static Methods [hide private]

Inherited from barObject (private): _getAttributesDict

Class Variables [hide private]
str _prefix = ''
prefix that is added to the label when XML element is generated
str _color = '#232323'
color of label

Inherited from barStructureLabel (private): _elementName

Inherited from barAtlasSlideElement (private): _attributes, _attributesNS

Properties [hide private]

Inherited from barStructureLabel: Caption, ID, Location, growlevel

Inherited from object: __class__

Method Details [hide private]

_validateCaption(self, caption)


Validate given caption. Raise ValueError if invalid.

  • caption - text to be validated
Returns: str
Overrides: barStructureLabel._validateCaption
(inherited documentation)