From the Help:
setorigin(string relativeTo, int xOffset, int yOffset)
Positions floating text labels relative to the main shape.
relativeTo is one of N, NE, E, SE, S, SW, W, NW, CENTER
xOffset and yOffset are in pixels, not percentage values, and can be negative
What the help doesn't tell you is that the location of the text placement varies (seemingly) randomly depending upon the value of relativeTo! Sometimes the text location is such that the last line of a long text (typically the name) emitted via the label, is on the location specified (say, 0,0) and other times, the first line of the text is at the location, yet other times, the centre of the text is at the location. It's not even (apparently) related to where on the points of the compass, you're setting the relativeTo value. This makes the ability to accurately position the text "go out the window".
Can anybody confirm this behaviour? It may be caused by some seemingly unrelated setting (see my XML discussion) or it may be just my machines or ...
Could anybody suggest a rational mechanism for such functionality? For example, the first line of the text will start at the nominated location (and move down the screen as the text grows) for ALL the relativeTo locations. Not the greatest, but at least consistent.
Perhaps an additional parameter is required to describe the desired directional process?
Thoughts?
TIA,
Paolo