Based on what I can find in the code here are my options:

1) Modify getShapeProperty to include a getStateCmd option.  Sounds simple, but 
I find this access method strange as it duplicates methodologies built into the 
programming language.  Isn't it easier to define public getter functions within 
objects or make objects publicly readable? This has the additional advantage 
that if getters have javadoc attached to them it is much easier to figure out 
what the things you are looking for are called.  

2) My present preference (lacking public getter functions) is to use the 
viewer.getShapeManager() function to grab the list of shapes and pick the data 
I want out of the data structure.  Of course, when the data structure is 
changed my functions will break.

3) Add public getter functions to ShapeManager.  It looks like it might have to 
be abstract for both of the things I am most interested in (stateCmd and 
boundBoxCorners), because different shapes have different info.  A prime 
example is drawn polygons for which I will need to check all the vertices to 
define the boundbox as that does not appear in the data structure.

I think options 2 & 3 are something Bob is trying to avoid.  Bob, can you 
explain why?

Any thoughts?

Jonathan
                         Dr. Jonathan H. Gutow
Chemistry Department                                gu...@uwosh.edu
UW-Oshkosh                                          Office: 920-424-1326
800 Algoma Boulevard                                FAX:920-424-2042
Oshkosh, WI 54901
                http://www.uwosh.edu/facstaff/gutow


------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to