Stockstyles, Textstyle, Simplevectorpointstyle – Pitney Bowes MapXtreme User Manual
Page 292: Pre-defined styles and the stylerepository class, Stylerepository class, Stockstyles textstyle simplevectorpointstyle

Chapter 15: Stylizing Your Maps
Pre-defined Styles and the StyleRepository Class
MapXtreme v7.1
299
Developer Guide
StockStyles
This class contains static methods to create various default style objects, including black, blue, red
and white interiors, black, blue, and red lines, hollow interiors and lines, and default fonts and point
styles.
SimpleLineStyle redLine = StockStyles.RedLineStyle( );
TextStyle
This class contains style properties used for drawing text. It contains a MapInfo.Styles.Font class
and a BaseLineStyle derived class for callout lines. The BaseLineStyle is optional (the TextStyle may
or may not contain one).
SimpleVectorPointStyle
This class contains style properties for drawing points using MapInfo's 3.0 Compatible proprietary
font (MapInfow.fnt ships with MapXtreme). SimpleVectorPointStyle properties include color, point
size and the shape code of the actual symbol you wish drawn for the point. The standard set
includes symbols 31 through 67.
L
Another symbol font set, called MapInfo Symbol, is a TrueType font set that displays using
the FontPointStyle class.
Pre-defined Styles and the StyleRepository Class
MapXtreme ships with a variety of bitmap images covering many themes that can be used as bitmap
point styles. More than 170 fill patterns and line styles are also available for use. These are all
installed by the application and accessible either through the style dialogs (e.g., LineStyleDlg) or
through the various StyleRepository classes.
For visual representations of supported style elements, see
StyleRepository Class
The StyleRepository class contains style collection classes (VectorSymbolRepository,
BitmapSymbolRepository, LineStyleRepository, InteriorStyleRepository), which allows you to iterate
through all current styles, as well as reload the collections with new styles from a specific file(s) or
directory. The StyleRepository class also contains a repository (TrueTypeFontInfoRepository) that
represents information about the TrueType fonts installed on the system.
The VectorSymbolRepository represents the set of symbols from the MapInfo 3.0 Compatible
symbol set. The BitmapSymbolRepository represents the set of images currently found in the
CustSymb directory. The LineStyleRepository represents the current set of patterns available for line
styles. And the InteriorStyleRepository represents the set of interior patterns available.