Base class for stripe styles that use a SVG snippet as template for the visualization of IStripes.
Type Details
- yfiles module
- view-table
- yfiles-umd modules
- view-table, view
- Legacy UMD name
- yfiles.styles.TemplateStripeStyleBase
See Also
Constructors
Constructs a new instance using the provided renderer
.
Properties
Gets or sets an implementation of IContextLookup that can be used to satisfy queries that are made to the implementation which is returned by calls to getContext that are made on the style renderer that is associated with this style instance.
Remarks
Convenience getter that yields the TemplateStripeStyleRenderer that is used by this instance.
Gets or sets the tag that is associated with this style instance.
Remarks
Methods
Performs a shallow clone of this instance, except for the value of styleTag which is cloned, too, if it can be cloned.
Factory method that is called by the TemplateStripeStyleRenderer to create the visual that will be used for the display of the stripe.
Parameters
A map of options to pass to the method.
- context - IRenderContext
- The context for which the visual should be created.
- stripe - IStripe
- The stripe that will be rendered.
Returns
- ↪SvgVisual
- The readily styled visual.
Raises the PropertyChanged event.
Parameters
A map of options to pass to the method.
- evt - PropertyChangedEventArgs
- The PropertyChangedEventArgs instance containing the event data.
Events
Occurs when a property value changes.
Overrides
Event Registration
addPropertyChangedListener(function(this, PropertyChangedEventArgs):void)
Event Deregistration
removePropertyChangedListener(function(this, PropertyChangedEventArgs):void)
Signature Details
function(sender: any, args: PropertyChangedEventArgs)
Parameters
- sender - any
- The object which dispatched the event.
- args - PropertyChangedEventArgs
- The arguments which define the change.
Static Methods
Loads all template script elements that have not been parsed, yet, and creates the respective template cache objects.