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

Create styled text rendering pages from styled text definition. More...

Inheritance diagram for StyledTextConverter:
DefaultSTDNodeVisitor STDNodeVisitor

Public Member Functions

void forEachPage (Block ablock)
 Visit pages with block with StyledTextRendering as parameter. More...
 
StyledTextDefinition getDefinition ()
 Styled text definition. More...
 
StyledTextRendering getPageAt (int number)
 Page at index. More...
 
int getPageCount ()
 Number of pages. More...
 
int getPageHeight ()
 Ppage height. More...
 
int getPageWidth ()
 Page width. More...
 
StyledTextConverter new (StyledTextDefinition definition)
 Create styled text converter. More...
 
void setPageSize (int width, int height)
 Set page size. More...
 
void visitImage (STDNImage node)
 Visit image node. More...
 
void visitText (STDNText node)
 Visit text node. More...
 
- Public Member Functions inherited from DefaultSTDNodeVisitor
DefaultSTDNodeVisitor new ()
 Create default styled text definition node visitor. More...
 
void visitImage (STDNImage node)
 Visit image node. More...
 
void visitNode (STDNode node)
 Visit node. More...
 
void visitText (STDNText node)
 Visit text node. More...
 

Protected Member Functions

void beginNewPage ()
 Begin new page. More...
 
RectArea getFreeArea (RectArea area)
 Free area in regard to blockers. More...
 
bool isPunctuation (int char)
 Character is a punctuation character. More...
 
bool isWhiteSpace (int char)
 Character is a white space character. More...
 

Detailed Description

Create styled text rendering pages from styled text definition.

Member Function Documentation

§ beginNewPage()

void beginNewPage ( )
protected

Begin new page.

§ forEachPage()

void forEachPage ( Block  ablock)

Visit pages with block with StyledTextRendering as parameter.

§ getDefinition()

StyledTextDefinition getDefinition ( )

Styled text definition.

§ getFreeArea()

RectArea getFreeArea ( RectArea  area)
protected

Free area in regard to blockers.

§ getPageAt()

StyledTextRendering getPageAt ( int  number)

Page at index.

§ getPageCount()

int getPageCount ( )

Number of pages.

§ getPageHeight()

int getPageHeight ( )

Ppage height.

§ getPageWidth()

int getPageWidth ( )

Page width.

§ isPunctuation()

bool isPunctuation ( int  char)
protected

Character is a punctuation character.

§ isWhiteSpace()

bool isWhiteSpace ( int  char)
protected

Character is a white space character.

§ new()

StyledTextConverter new ( StyledTextDefinition  definition)

Create styled text converter.

§ setPageSize()

void setPageSize ( int  width,
int  height 
)

Set page size.

§ visitImage()

void visitImage ( STDNImage  node)

Visit image node.

Implements STDNodeVisitor.

§ visitText()

void visitText ( STDNText  node)

Visit text node.

Implements STDNodeVisitor.


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