mapscript.scalebarObj¶
- class mapscript.scalebarObj¶
The SCALEBAR object
Overview
The scalebarObj has the following relationships:
Attributes
align
int See ALIGN
backgroundcolor
colorObj
Scalebar background color - see BACKGROUNDCOLORcolor
height
int Height in pixels - see SIZE
imagecolor
colorObj
Background color of scalebar - see IMAGECOLORintervals
int Number of intervals - see INTERVALS
label
offsetx
int See OFFSET
offsety
int See OFFSET
outlinecolor
colorObj
Foreground outline color - see OUTLINECOLORposition
int For embeded scalebars - see POSITION -
MS_UL
,MS_UC
,MS_UR
,MS_LL
,MS_LC
, orMS_LR
postlabelcache
int See POSTLABELCACHE -
MS_TRUE
orMS_FALSE
status
int ON, OFF or EMBED - see STATUS -
MS_ON
,MS_OFF
, orMS_EMBED
.style
int 0 or 1 - see STYLE
thisown
The membership flag
transparent
int Allows transparency for an embedded scalebar - see TRANSPARENT
units
int See UNITS
width
int Height in pixels - see SIZE
Methods
- __init__()[sorgente]¶
- convertToString() char [sorgente]¶
Saves the object to a string. Provides the inverse option for updateFromString.
- updateFromString(snippet: char) int [sorgente]¶
Update a scalebar from a string snippet. Returns
MS_SUCCESS
orMS_FAILURE