Class: MultiLineLabelUI

layoutCompoundLabel Function


Compute and return the location of the icons origin, the location of origin of the text baseline, and a possibly clipped version of the compound labels string. Locations are computed relative to the viewR rectangle. The JComponents orientation (LEADING/TRAILING) will also be taken into account and translated into LEFT/RIGHT values accordingly.
Function layoutCompoundLabel(c As JComponent,
                             fm As FontMetrics,
                             text() As String,
                             icon As Icon,
                             verticalAlignment As Integer,
                             horizontalAlignment As Integer,
                             verticalTextPosition As Integer,
                             horizontalTextPosition As Integer,
                             viewR As Rectangle,
                             iconR As Rectangle,
                             textR As Rectangle,
                             textIconGap As Integer) As String
Parameter  
c No description avail
fm No description avail
text() No description avail
icon No description avail
verticalAlignment No description avail
horizontalAlignment No description avail
verticalTextPosition No description avail
horizontalTextPosition No description avail
viewR No description avail
iconR No description avail
textR No description avail
textIconGap No description avail

Return Value

No description avail

Compute and return the location of the icons origin, the location of origin of the text baseline, and a possibly clipped version of the compound labels string. Locations are computed relative to the viewR rectangle. This layoutCompoundLabel() does not know how to handle LEADING/TRAILING values in horizontalTextPosition (they will default to RIGHT) and in horizontalAlignment (they will default to CENTER). Use the other version of layoutCompoundLabel() instead.
Function layoutCompoundLabel(fm As FontMetrics,
                             text() As String,
                             icon As Icon,
                             verticalAlignment As Integer,
                             horizontalAlignment As Integer,
                             verticalTextPosition As Integer,
                             horizontalTextPosition As Integer,
                             viewR As Rectangle,
                             iconR As Rectangle,
                             textR As Rectangle,
                             textIconGap As Integer) As String
Parameter  
fm No description avail
text() No description avail
icon No description avail
verticalAlignment No description avail
horizontalAlignment No description avail
verticalTextPosition No description avail
horizontalTextPosition No description avail
viewR No description avail
iconR No description avail
textR No description avail
textIconGap No description avail

Return Value

No description avail

Jabaco Home | Jabaco Framework | API Sitemap | Jabaco Wiki