TextOutline positionSubscript ( TextOutline label , TextOutline subscript ) { final Rectangle2D hydrogenBounds = label . getBounds ( ) ; final Rectangle2D hydrogenCountBounds = subscript . getBounds ( ) ; subscript = subscript . translate ( ( hydrogenBounds . getMaxX ( ) + padding ) - hydrogenCountBounds . getMinX ( ) , ( hydrogenBounds . getMaxY ( ) + ( hydrogenCountBounds . getHeight ( ) / 2 ) ) - hydrogenCountBounds . getMaxY ( ) ) ; return subscript ; }
Positions an outline in the subscript position relative to another primary label .