Drag[en]gine Script Module DragonScript Script API  1.0
StyledTextDefinition Class Reference

Styled text definition. More...

Inheritance diagram for StyledTextDefinition:

Public Member Functions

void addNode (STDNode node)
 Add node. More...
 
void addStyle (STDStyle style)
 Add style replacing style with same name if present. More...
 
void forEachNode (Block ablock)
 Visit nodes with block with STDNode as parameter. More...
 
void forEachStyle (Block ablock)
 Visit styles with block with STDStyle as parameter. More...
 
STDNode getNodeAt (int index)
 Node at index. More...
 
int getNodeCount ()
 Number of nodes. More...
 
Point getPageSize ()
 Optimal page size in pixels. More...
 
int getStyleCount ()
 Number of styles. More...
 
STDStyle getStyleNamed (String name)
 Style with name or null if absent. More...
 
bool hasStyleNamed (String name)
 Style with name is present. More...
 
StyledTextDefinition new ()
 Create styled text definition. More...
 
StyledTextDefinition new (StyledTextDefinition definition)
 Create copy of styled text definition. More...
 
void removeAllNodes ()
 Remove all nodes. More...
 
void removeAllStyles ()
 Remove all styles. More...
 
void setPageSize (Point pageSize)
 Set optimal page size in pixels. More...
 
void setStyle (STDStyle style)
 Set style to use for nodes not having a style set. More...
 

Detailed Description

Styled text definition.

Member Function Documentation

§ addNode()

void addNode ( STDNode  node)

Add node.

§ addStyle()

void addStyle ( STDStyle  style)

Add style replacing style with same name if present.

§ forEachNode()

void forEachNode ( Block  ablock)

Visit nodes with block with STDNode as parameter.

§ forEachStyle()

void forEachStyle ( Block  ablock)

Visit styles with block with STDStyle as parameter.

§ getNodeAt()

STDNode getNodeAt ( int  index)

Node at index.

§ getNodeCount()

int getNodeCount ( )

Number of nodes.

§ getPageSize()

Point getPageSize ( )

Optimal page size in pixels.

Using this page size results in an optimal document layout.

§ getStyleCount()

int getStyleCount ( )

Number of styles.

§ getStyleNamed()

STDStyle getStyleNamed ( String  name)

Style with name or null if absent.

§ hasStyleNamed()

bool hasStyleNamed ( String  name)

Style with name is present.

§ new() [1/2]

Create styled text definition.

§ new() [2/2]

Create copy of styled text definition.

§ removeAllNodes()

void removeAllNodes ( )

Remove all nodes.

§ removeAllStyles()

void removeAllStyles ( )

Remove all styles.

§ setPageSize()

void setPageSize ( Point  pageSize)

Set optimal page size in pixels.

Using this page size results in an optimal document layout.

§ setStyle()

void setStyle ( STDStyle  style)

Set style to use for nodes not having a style set.


The documentation for this class was generated from the following file: