(private) new TAttFillHandler(args)
Handle for fill attributes
- Source:
 
Parameters:
| Name | Type | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
args | 
            
            object | arguments see  Properties
  | 
        
Methods
apply()
Apply fill style to selection
- Source:
 
change(color, pattern, svg, color_as_svgopt, painteropt)
Method to change fill attributes.
- Source:
 
Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
color | 
            
            number | color index  | 
        |
pattern | 
            
            number | pattern index  | 
        |
svg | 
            
            selection | top canvas element for pattern storages  | 
        |
color_as_svg | 
            
            string | 
                
                    <optional> | 
            
            
            when color is string, interpret as normal SVG color  | 
        
painter | 
            
            object | 
                
                    <optional> | 
            
            
            when specified, used to extract color by index  | 
        
(private) createSample()
Create sample of fill pattern inside SVG
- Source:
 
empty()
Returns true if color not specified or fill style not specified
- Source:
 
enable()
Enable or disable fill usage - if disabled only 'fill: none' will be applied
- Source:
 
getFillColor()
Returns fill color (or pattern url)
- Source:
 
(private) getFillColorAlt(altopt)
Returns fill color without pattern url.
- Description:
 If empty, alternative color will be provided
- Source:
 
Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
alt | 
            
            string | 
                
                    <optional> | 
            
            
            alternative color which returned when fill color not exists  | 
        
hasColor()
Returns true if fill attributes has real color
- Source:
 
isSolid(solid_coloropt)
Check if solid fill is used, also color can be checked
- Source:
 
Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
solid_color | 
            
            string | 
                
                    <optional> | 
            
            
            when specified, checks if fill color matches  | 
        
(private) saveToStyle()
Save fill attributes to style
- Source:
 
setArgs(args)
Set fill style as arguments
- Source:
 
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
args | 
            
            object | different arguments to set fill attributes Properties
  | 
        
setOpacity()
Set fill color opacity
- Source:
 
setSolidColor(col)
Set solid fill color as fill pattern
- Source:
 
Parameters:
| Name | Type | Description | 
|---|---|---|
col | 
            
            string | solid color  | 
        
setUsed()
Set usage flag of attribute
- Source:
 
(private) verifyDirectChange()
Method used when color or pattern were changed with OpenUi5 widgets
- Source: