Compositestyle, Simpleinterior, Font – Pitney Bowes MapXtreme User Manual

Page 290: Fontpointstyle, Gridstyle

Advertising
background image

Chapter 15: Stylizing Your Maps

Style Descriptions

MapXtreme v7.1

297

Developer Guide

MapXtreme ships with a number of bitmap point styles to get you started. They are located in the
CustSymb directory. You can also add your own bitmap images to this directory. The maximum
number of images allowed is 32,767.

CompositeStyle

The CompositeStyle class encompasses the collection of all the style types used for default styles,
modifier styles, and layer override styles. The CompositeStyle can also be used to describe styles
for the Collection object type. The style types contained are AreaStyle, a BaseLineStyle derived
class, TextStyle, a BasePointStyle derived class, RasterStyle and GridStyle. The CompositeStyle
can be constructed with any or all of these types, but must contain at least one of the above.

For example, you can create a style override (a FeatureOverrideStyleModifier) to alter the
appearance of all features in a layer. Since a single layer can contain points and lines and regions,
you might need to specify point, line and area styles when you build your style override. You can
specify all necessary style types in one CompositeStyle object, which you then pass to the
FeatureOverrideStyleModifier constructor.

SimpleInterior

The MapInfo SimpleInterior class contains style properties used for filling the interior of regions.
SimpleInterior attributes include pattern, foreground and background color, and background
transparency. The default for a SimpleInterior is a solid white interior.

Font

The MapInfo Font class contains style properties used for drawing text. Attributes for fonts, include
bold, italic, underline, strikeout, shadow, halo, all caps, double space, size, foreground and
background color. You can also change the font type (e.g., Arial, Times New Roman) and the font
size. Note that the outline font property has been removed. To create an outline, use halo with a
black background.

FontPointStyle

The FontPointStyle class contains style properties used for drawing points using mainly the
MapInfo.Styles.Font class. You can customize the point size, font color, angle of rotation and other
font properties. The maximum point size allowed is 240 points.

GridStyle

This is a helper class containing display style information about a grid such as color inflections, null
cell color and transparency. A grid is a map of continuous color gradation that represents
interpolated data values. For more information on grids see

Chapter 17: Working with Rasters

and Grids

.

Advertising