moose-technology(a)googlecode.com wrote:
Comment #3 on issue 842 by google....(a)ben.coman.com.au:
ROTranslatingShape mouse hotspot mis-alignment
http://code.google.com/p/moose-technology/issues/detail?id=842
2. ROExample>>nestingTranslate shows that the offset shapes affect the
growing of the parent element - which is really good. However if
ROHorizontalLineLayout is changed to ROVerticalLineLayout, then it can
be seen (for example with el1) that the offset shape (the label) is
not included in the default spacing between elements. It would be
really good if that can be done.
In trying to work out point 2, I manually created a call graph using
Freemind of extents & bounds for element & shape, which I have attached
in case its of passing interest to anyone. However there is a good
chance it is not completely accurate as I've had to move on since I
found a temporary workaround just using a large gapSize between elements.
<map version="0.9.0">
<!-- To view this file, download free mind mapping software FreeMind from
http://freemind.sourceforge.net -->
<node CREATED="1348365687124" ID="ID_407590633"
MODIFIED="1348372494606"
TEXT="Roassal
extents/bounds
static call graph">
<node CREATED="1348366239576" HGAP="28" ID="ID_583540211"
MODIFIED="1348373009603" POSITION="right" TEXT="bounds"
VSHIFT="-4">
<node CREATED="1348366291599" ID="ID_882109640"
MODIFIED="1348373031155" TEXT="ROElement">
<arrowlink COLOR="#b300b0" DESTINATION="ID_65066810"
ENDARROW="Default" ENDINCLINATION="481;20;"
ID="Arrow_ID_1611521777" STARTARROW="None"
STARTINCLINATION="504;0;"/>
</node>
</node>
<node CREATED="1348365779855" ID="ID_424671415"
MODIFIED="1348365859012" POSITION="right" TEXT="extent">
<node CREATED="1348365847232" ID="ID_1357288660"
MODIFIED="1348373033231" TEXT="ROElement">
<arrowlink COLOR="#b300b0" DESTINATION="ID_65066810"
ENDARROW="Default" ENDINCLINATION="412;0;"
ID="Arrow_ID_1286865312" STARTARROW="None"
STARTINCLINATION="392;0;"/>
</node>
</node>
<node CREATED="1348367375179" ID="ID_533611708"
MODIFIED="1348367463738" POSITION="right"
TEXT="translateTo:">
<node CREATED="1348367395794" ID="ID_555466309"
MODIFIED="1348368890904" TEXT="ROElement"/>
</node>
<node CREATED="1348366314187" ID="ID_1786421884"
MODIFIED="1348367373542" POSITION="right"
TEXT="setBounds:">
<node CREATED="1348366318469" ID="ID_1091050866"
MODIFIED="1348373035904" TEXT="ROElement">
<arrowlink COLOR="#00b094" DESTINATION="ID_262527572"
ENDARROW="Default" ENDINCLINATION="148;0;"
ID="Arrow_ID_1310025220" STARTARROW="None"
STARTINCLINATION="154;0;"/>
</node>
</node>
<node CREATED="1348365860050" HGAP="19"
ID="ID_1062407177" MODIFIED="1348368088049" POSITION="right"
TEXT="extent:" VSHIFT="-6">
<node CREATED="1348365883284" ID="ID_1932766994"
MODIFIED="1348372706148" TEXT="ROElement">
<arrowlink COLOR="#00b094" DESTINATION="ID_262527572"
ENDARROW="Default" ENDINCLINATION="105;-23;"
ID="Arrow_ID_582212272" STARTARROW="None"
STARTINCLINATION="47;0;"/>
</node>
<node CREATED="1348365888745" HGAP="25" ID="ID_262527572"
MODIFIED="1348373035905" TEXT="ROShape" VSHIFT="6">
<arrowlink COLOR="#1e35d6" DESTINATION="ID_1354410348"
ENDARROW="Default" ENDINCLINATION="-88;-72;"
ID="Arrow_ID_1078021106" STARTARROW="None"
STARTINCLINATION="-101;-32;"/>
<node CREATED="1348370798004" HGAP="17" ID="ID_62780719"
MODIFIED="1348372967466" TEXT="next" VSHIFT="21">
<arrowlink COLOR="#00137a" DESTINATION="ID_262527572"
ENDARROW="Default" ENDINCLINATION="-13;8;"
ID="Arrow_ID_874688211" STARTARROW="None"
STARTINCLINATION="-159;14;"/>
</node>
</node>
<node CREATED="1348365873653" ID="ID_428517367"
MODIFIED="1348373045333" TEXT="ROAbstractEndingShape"
VSHIFT="10">
<arrowlink COLOR="#0016b3" DESTINATION="ID_1354410348"
ENDARROW="Default" ENDINCLINATION="-89;-33;"
ID="Arrow_ID_1116992237" STARTARROW="None"
STARTINCLINATION="-150;-42;"/>
</node>
</node>
<node CREATED="1348365901209" ID="ID_147440305"
MODIFIED="1348376042743" POSITION="right"
TEXT="extentFor:">
<node CREATED="1348365907453" ID="ID_1286191049"
MODIFIED="1348370284462" TEXT="ROAbstractEndingShape">
<arrowlink COLOR="#0f13b4" DESTINATION="ID_169013934"
ENDARROW="Default" ENDINCLINATION="52;27;"
ID="Arrow_ID_1102826168" STARTARROW="None"
STARTINCLINATION="-224;28;"/>
</node>
<node CREATED="1348365922886" ID="ID_1015368496"
MODIFIED="1348372624406" TEXT="ROAbstractLabel">
<arrowlink COLOR="#b300b0" DESTINATION="ID_65066810"
ENDARROW="Default" ENDINCLINATION="79;0;"
ID="Arrow_ID_69660225" STARTARROW="None"
STARTINCLINATION="28;2;"/>
<arrowlink COLOR="#008e11" DESTINATION="ID_467886359"
ENDARROW="Default" ENDINCLINATION="134;0;"
ID="Arrow_ID_186543847" STARTARROW="None"
STARTINCLINATION="134;0;"/>
</node>
<node CREATED="1348365927290" ID="ID_65066810"
MODIFIED="1348373033231" TEXT="ROShape">
<arrowlink COLOR="#1115be" DESTINATION="ID_169013934"
ENDARROW="Default" ENDINCLINATION="398;86;"
ID="Arrow_ID_1043809133" STARTARROW="None"
STARTINCLINATION="-43;-2;"/>
<node CREATED="1348366759312" HGAP="16" ID="ID_782408842"
MODIFIED="1348370741380" TEXT="next" VSHIFT="20">
<arrowlink COLOR="#010590" DESTINATION="ID_65066810"
ENDARROW="Default" ENDINCLINATION="-163;48;"
ID="Arrow_ID_1226861375" STARTARROW="None"
STARTINCLINATION="-141;6;"/>
</node>
</node>
</node>
<node CREATED="1348365932263" ID="ID_1980675748"
MODIFIED="1348365940263" POSITION="right"
TEXT="preferedExtentFor:">
<node CREATED="1348365941623" ID="ID_467886359"
MODIFIED="1348370284892" TEXT="ROAbstractLabel">
<node CREATED="1348369249243" HGAP="236"
ID="ID_898719256" MODIFIED="1348369745702" TEXT="height &
width of string" VSHIFT="2"/>
</node>
<node CREATED="1348365949407" ID="ID_1641510169"
MODIFIED="1348372570176" TEXT="ROShape">
<arrowlink COLOR="#b300b1" DESTINATION="ID_65066810"
ENDARROW="Default" ENDINCLINATION="-14;9;"
ID="Arrow_ID_860153035" STARTARROW="None"
STARTINCLINATION="-86;-42;"/>
</node>
</node>
<node CREATED="1348367464933" ID="ID_21077192"
MODIFIED="1348368389358" POSITION="right"
TEXT="chainedContains:for:">
<node CREATED="1348367476150" ID="ID_1112336940"
MODIFIED="1348372754298" TEXT="ROShape">
<arrowlink COLOR="#b300b0" DESTINATION="ID_65066810"
ENDARROW="Default" ENDINCLINATION="98;26;"
ID="Arrow_ID_403699234" STARTARROW="None"
STARTINCLINATION="286;-52;"/>
<node CREATED="1348368522563" HGAP="13"
ID="ID_1060078483" MODIFIED="1348369908430" TEXT="next"
VSHIFT="22">
<arrowlink COLOR="#fc0f0f" DESTINATION="ID_1112336940"
ENDARROW="Default" ENDINCLINATION="-28;18;"
ID="Arrow_ID_1413146288" STARTARROW="None"
STARTINCLINATION="-63;6;"/>
</node>
</node>
<node CREATED="1348368334652" ID="ID_482176285"
MODIFIED="1348368338475" TEXT="ROTranslatingShape">
<node CREATED="1348368360490" HGAP="202"
ID="ID_1253146022" MODIFIED="1348369897284" TEXT="offset
aPoint" VSHIFT="2">
<arrowlink COLOR="#f60f0f" DESTINATION="ID_1112336940"
ENDARROW="Default" ENDINCLINATION="168;0;"
ID="Arrow_ID_1145449197" STARTARROW="None"
STARTINCLINATION="168;0;"/>
</node>
</node>
<node CREATED="1348368328303" ID="ID_492410149"
MODIFIED="1348368334245" TEXT="ROAbstractEndingShape">
<node CREATED="1348368346101" HGAP="182" ID="ID_88863356"
MODIFIED="1348369705120" TEXT="returns false"
VSHIFT="3"/>
</node>
</node>
<node CREATED="1348368390326" ID="ID_1998669586"
MODIFIED="1348368395333" POSITION="right"
TEXT="contains:">
<node CREATED="1348368402218" ID="ID_1974251001"
MODIFIED="1348369887775" TEXT="ROElement">
<arrowlink COLOR="#e9293f" DESTINATION="ID_1112336940"
ENDARROW="Default" ENDINCLINATION="286;51;"
ID="Arrow_ID_1056306972" STARTARROW="None"
STARTINCLINATION="229;0;"/>
</node>
</node>
<node CREATED="1348368717636" HGAP="28"
ID="ID_1354410348" MODIFIED="1348373045333" POSITION="left"
TEXT="set ivar extent" VSHIFT="-51"/>
<node CREATED="1348369316540" HGAP="26" ID="ID_169013934"
MODIFIED="1348372790656" POSITION="left" TEXT="return ivar
extent" VSHIFT="54"/>
<node CREATED="1348369994029" HGAP="31" ID="ID_459879344"
MODIFIED="1348372795257" POSITION="left" TEXT="installedOn:"
VSHIFT="140">
<node CREATED="1348369999331" HGAP="16"
ID="ID_1106860186" MODIFIED="1348370500751" TEXT="ROShape"
VSHIFT="-15">
<arrowlink COLOR="#087e00" DESTINATION="ID_1641510169"
ENDARROW="Default" ENDINCLINATION="-58;7;"
ID="Arrow_ID_1796050968" STARTARROW="None"
STARTINCLINATION="-120;-23;"/>
</node>
</node>
</node>
</map>