HorizontalLegendLayout Class
Contains methods for displaying items horizontally in a legend.
Item Index
Methods
_positionLegendItems
    
        
            (
    
    
    
    
        protected
    
    
    
    
    
    
    - 
                    
                        
items - 
                    
                        
maxWidth - 
                    
                        
maxHeight - 
                    
                        
totalWidth - 
                    
                        
totalHeight - 
                    
                        
padding - 
                    
                        
horizontalGap - 
                    
                        
verticalGap - 
                    
                        
hAlign 
Displays items horizontally in a legend.
Parameters:
- 
                    
                        
itemsArrayArray of items to display in the legend.
 - 
                    
                        
maxWidthNumberThe width of the largest item in the legend.
 - 
                    
                        
maxHeightNumberThe height of the largest item in the legend.
 - 
                    
                        
totalWidthNumberThe total width of all items in a legend.
 - 
                    
                        
totalHeightNumberThe total height of all items in a legend.
 - 
                    
                        
paddingNumberThe left, top, right and bottom padding properties for the legend.
 - 
                    
                        
horizontalGapNumberThe horizontal distance between items in a legend.
 - 
                    
                        
verticalGapNumberThe vertical distance between items in a legend.
 - 
                    
                        
hAlignStringThe horizontal alignment of the legend.
 
_setRowArrays
    
        
            (
    
    
    
    
        protected
    
    
    
    
    
    
    - 
                    
                        
items - 
                    
                        
limit - 
                    
                        
horizontalGap 
Creates row and total width arrays used for displaying multiple rows of legend items based on the items, available width and horizontalGap for the legend.
getStartPoint
    
        
            (
    
    
        
            
        
    
    
    
        protected
    
    
    
    
    
    
    - 
                    
                        
w - 
                    
                        
totalWidth - 
                    
                        
align - 
                    
                        
padding 
Returns the starting x-coordinate for a row of legend items.
Parameters:
Returns:
Number
