Feature Requests item #1108557, was opened at 2005-01-24 13:18
Message generated for change (Comment added) made by hansonr
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=379136&aid=1108557&group_id=23629

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
Priority: 5
Submitted By: friedar (friedar)
Assigned to: Bob Hanson (hansonr)
Summary: labeloffset  left/center/right

Initial Comment:
Use of the "labeloffset" command was initially confusing and 
frustrating to me although I think I now understand how it works. 
It was confusing because the default position for a label is with the 
label *center* justified on the atom but the command "labeloffset 
1 0" moves the label to a position that is offset 1 pixel *from left 
justified* rather than from the default center position. If you are 
using a label that is longer than a character or two, the jump 
between these positions is huge, whereas "labeloffset 0 2" moves 
the label a miniscule amount (1 pixel further to the right than 
"labeloffset 1 0"). Same thing with -1 0, of course, on the opposite 
side. In addition it means there is a whole range of positions in 
between offset 1 0 and offset -1 0 that are unattainable (except for 
the default centered position).

I am not really sure if this is a bug, but thought it might be. Hope 
this is the right place to bring it up.

----------------------------------------------------------------------

>Comment By: Bob Hanson (hansonr)
Date: 2006-09-13 16:27

Message:
Logged In: YES 
user_id=1082841

done.

set labelalignment left
set labelalignment right
set labelalignment center

independent of 

set labeloffset x y

all this must be done AFTER the label is produced, as they
all apply only to the previously selected atoms. But that
should not be a serious problem. 

select atomno=3
label "";

this was a bit tricky - I suspect there are still a few
bugs. Please test!



----------------------------------------------------------------------

Comment By: friedar (friedar)
Date: 2005-01-25 21:25

Message:
Logged In: YES 
user_id=1190355

can the label command have a set of "anchors" such as
set label center justified
set label left justified
set label right justified

and then labeloffset would move the label one pixel per offset unit from 
the designated justified position.

also as long as you would be messing with the labels, it would be good (I 
guess I mean more intuitive but not essential) to be able to issue these 
formating commands before actually creating the label.

Frieda

----------------------------------------------------------------------

Comment By: Miguel (migueljmol)
Date: 2005-01-25 14:50

Message:
Logged In: YES 
user_id=1050060

For each axis independently:

0 means centered
>0 means positioned to the right/up
<0 means positioned to the left/down

if offset != 0 then offset is a pixel count from the
left/right/top/bottom of the box that holds the text. 

People seem to have a lot of problems with this behavior. 

The problem is, I don't know how else to do it. How else
does one deal with variable length labels and still give the
ability to center? 

Let me know if you have a suggestion. 


Miguel


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=379136&aid=1108557&group_id=23629

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to