All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

SPAkern Class TEXT_ENT

SPAbase.ACIS_OBJECT
  |
  +---SPAkern.ENTITY
    |
    +---TEXT_ENT
 

Usage: you must use this class as is. You should never derive it.


public class TEXT_ENT

Stores simple text display information.

See also:
SPAposition


Constructor and Destructor Index


o TEXT_ENT()
C++ allocation constructor requests memory for this object but does not populate it.
o TEXT_ENT(SPAposition&,char*,char*,int)
C++ initialize constructor requests memory for this object and populates it with the data supplied as arguments.

Method Index


o font_name()
Gets the name of the text font.
o font_size()
Gets the size of the font.
o internal_set_font_name(char*)
o internal_set_string(char*)
o location()
Gets the location of the text.
o operator*=(SPAtransf&)
Changes the location of text by applying a transformation.
o set_font_name(char*)
Sets the text font.
o set_font_size(int)
Sets the size of the font.
o set_location(SPAposition&)
Indicates that the tolerance needs to be recalculated.
o set_string(char*)
Changes the text string.
o string()
Gets the text string.

Constructor and Destructor


o TEXT_ENT
public TEXT_ENT()
C++ allocation constructor requests memory for this object but does not populate it.

Role: The allocation constructor is used primarily by restore. Applications should call this constructor only with the overloaded new operator, because this reserves the memory on the heap, a requirement to support roll back and history management.
o TEXT_ENT
public TEXT_ENT( const SPAposition& loc,
const char* string,
const char* font= NULL,
int size= -1 )
C++ initialize constructor requests memory for this object and populates it with the data supplied as arguments.

Role: Applications should call this constructor only with the overloaded new operator, because this reserves the memory on the heap, a requirement to support roll back and history management.

Parameters:
loc
location of text.
string
string of text to be displayed.
font
size of font.
size
size in points of font.

Methods


o font_name
public const char * font_name()
Gets the name of the text font.
o font_size
public int font_size()
Gets the size of the font.
o internal_set_font_name
public void internal_set_font_name( const char* )
o internal_set_string
public void internal_set_string( const char* )
o location
public SPAposition location()
Gets the location of the text.
o operator*=
public void operator*=( const SPAtransf& transf)
Changes the location of text by applying a transformation.

Parameters:
transf
transformation .
o set_font_name
public void set_font_name( const char* font)
Sets the text font.

Parameters:
font
text font.
o set_font_size
public void set_font_size(int size)
Sets the size of the font.

Parameters:
size
size of font in points.
o set_location
public void set_location( const SPAposition& loc)
Indicates that the tolerance needs to be recalculated.

Parameters:
loc
location.
o set_string
public void set_string( const char* string)
Changes the text string.

Parameters:
string
text string.
o string
public const char * string()
Gets the text string.

This object is included in the file: text.hxx

Copyright (c) 1989-2007 by Spatial Corp. All rights reserved.