|
CartoType Android API 9.2-11-g041bcfff8
for Java development on Android
|
Public Member Functions | |
| NoticePosition (NoticeAnchor aAnchor) | |
| NoticePosition (NoticeAnchor aAnchor, double aWidth, String aWidthUnit, double aXInset, String aXInsetUnit, double aYInset, String aYInsetUnit) | |
Positions for notices like the legend or scale bar.
Notices are positioned by moving them inwards from the designated anchor position by the specified insets. For central positions (e.g., the X inset in Top, or both insets in Center) X insets move the position right and Y insets move it down. Units may be 'cm', 'mm', 'in', 'pt' (points: 1/72in), or 'pc' (picas: 1/6in).
The default inset is 3mm, or zero for central positions.
| com.cartotype.NoticePosition.NoticePosition | ( | NoticeAnchor | aAnchor | ) |
Creates a NoticePosition from a NoticeAnchor.
| com.cartotype.NoticePosition.NoticePosition | ( | NoticeAnchor | aAnchor, |
| double | aWidth, | ||
| String | aWidthUnit, | ||
| double | aXInset, | ||
| String | aXInsetUnit, | ||
| double | aYInset, | ||
| String | aYInsetUnit | ||
| ) |
Creates a NoticePosition from a NoticeAnchor, width and insets. Values with null or empty units are ignored, and defaults used instead.