Main Page   Namespace List   Class Hierarchy   Compound List   Namespace Members   Compound Members   Related Pages  

FontStyleNode Class Reference

Abstract base class for font style nodes. More...

Inheritance diagram for FontStyleNode:

Node FontStyle List of all members.

Public Methods

virtual ~FontStyleNode ()=0 throw ()
 Destructor.

virtual const FontStyleNode * toFontStyle () const throw ()
 Cast to a FontStyleNode.

virtual FontStyleNode * toFontStyle () throw ()
 Cast to a FontStyleNode.

virtual const MFStringgetFamily () const=0 throw ()
 Get the list of font families.

virtual const SFBoolgetHorizontal () const=0 throw ()
 Get the flag indicating whether the text should be horizontal or vertical.

virtual const MFStringgetJustify () const=0 throw ()
 Get the descriptor for the text justification.

virtual const SFStringgetLanguage () const=0 throw ()
 Get the language code.

virtual const SFBoolgetLeftToRight () const=0 throw ()
 Get the flag indicating whether the text should be rendered left-to-right.

virtual const SFFloatgetSize () const=0 throw ()
 Get the size of the text.

virtual const SFFloatgetSpacing () const=0 throw ()
 Get the spacing for the text.

virtual const SFStringgetStyle () const=0 throw ()
 Get the style for the text.

virtual const SFBoolgetTopToBottom () const=0 throw ()
 Get the flag indicating whether the text should be rendered top-to-bottom.


Protected Methods

 FontStyleNode (const NodeType &nodeType, const ScopePtr &scope)
 Constructor.


Detailed Description

Abstract base class for font style nodes.


Constructor & Destructor Documentation

~FontStyleNode   throw () [pure virtual]
 

Destructor.

FontStyleNode const NodeType   nodeType,
const ScopePtr   scope
[protected]
 

Constructor.

Parameters:
nodeType the NodeType associated with the node.
scope the Scope the node belongs to.

Member Function Documentation

const MFString & getFamily   const throw () [pure virtual]
 

Get the list of font families.

Returns:
an MFString containing the font families that may be used for this FontStyle.

Implemented in FontStyle.

const SFBool & getHorizontal   const throw () [pure virtual]
 

Get the flag indicating whether the text should be horizontal or vertical.

Returns:
TRUE if the text should be horizontal, or FALSE if the text should be vertical.

Implemented in FontStyle.

const MFString & getJustify   const throw () [pure virtual]
 

Get the descriptor for the text justification.

Returns:
an MFString value describing the characteristics of the text justification.

Implemented in FontStyle.

const SFString & getLanguage   const throw () [pure virtual]
 

Get the language code.

Returns:
the language code.

Implemented in FontStyle.

const SFBool & getLeftToRight   const throw () [pure virtual]
 

Get the flag indicating whether the text should be rendered left-to-right.

Returns:
TRUE if the text should be rendered left-to-right, or FALSE if the text should be rendered right-to-left.

Implemented in FontStyle.

const SFFloat & getSize   const throw () [pure virtual]
 

Get the size of the text.

Returns:
the size of the text.

Implemented in FontStyle.

const SFFloat & getSpacing   const throw () [pure virtual]
 

Get the spacing for the text.

Returns:
the spacing for the text.

Implemented in FontStyle.

const SFString & getStyle   const throw () [pure virtual]
 

Get the style for the text.

Returns:
an SFString descriptor of the text style.

Implemented in FontStyle.

const SFBool & getTopToBottom   const throw () [pure virtual]
 

Get the flag indicating whether the text should be rendered top-to-bottom.

Returns:
TRUE if the text should be rendered top-to-bottom, or FALSE if the text should be rendered bottom-to-top.

Implemented in FontStyle.

FontStyleNode * toFontStyle   throw () [virtual]
 

Cast to a FontStyleNode.

Returns:
a pointer to this FontStyleNode.

Reimplemented from Node.

const FontStyleNode * toFontStyle   const throw () [virtual]
 

Cast to a FontStyleNode.

Returns:
a pointer to this FontStyleNode.

Reimplemented from Node.