package Ġorg . hex works . z ir con . internal . component . alignment Ċ Ċ import Ġorg . hex works . z ir con . api . behavior . Bound able Ċ import Ġorg . hex works . z ir con . api . component . Alignment Strategy Ċ import Ġorg . hex works . z ir con . api . component . Component Alignment Ċ import Ġorg . hex works . z ir con . api . data . Position Ċ import Ġorg . hex works . z ir con . api . data . Size Ċ Ċ /** Ċ Ġ* ĠCan Ġbe Ġused Ġto Ġalign Ġobjects Ġ** within ** Ġan Ġ[ other ] Ġ[ Bound able ] Ċ Ġ* Ġobject . ĠThis Ġmeans Ġthat Ġ[ calculate Position ] Ġwill Ġreturn Ġa Ġ[ Position ] Ċ Ġ* Ġfor Ġwhich Ġ[ Bound able . contains Position ] Ġwill Ġreturn Ġ` true ` Ġwhen Ċ Ġ* Ġcalled Ġon Ġ[ other ]. Ċ Ġ*/ Ċ data Ġclass ĠWith in Alignment Strategy ( ĊĠĠĠĠĠĠĠ Ġprivate Ġval Ġother : ĠBound able , ĊĠĠĠĠĠĠĠ Ġprivate Ġval Ġalignment Type : ĠComponent Alignment Ċ ) Ġ: ĠAlignment Strategy Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġcalculate Position ( size : ĠSize ): ĠPosition Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġalignment Type . align Within ( other . rect , Ġsize ) ĊĠĠĠ Ġ} Ċ } Ċ