Default implementation of IStripeInputVisualizationHelper that uses IVisualTemplates for the actual visualization.
Remarks
Type Details
- yfiles module
- view-table
- yfiles-umd modules
- view-table, view
- Legacy UMD name
- yfiles.input.DefaultStripeInputVisualizationHelper
See Also
Constructors
Properties
Gets or sets the IVisualTemplate that is used to visualize the current source of a stripe reparent operation.
Gets or sets the IVisualTemplate that is used to visualize the current target of a stripe reparent operation.
Gets or sets the IVisualTemplate that is used to visualize the current stripe resize operation.
Gets or sets the IVisualTemplate that is used to visualize the current stripe selection operation.
Methods
Provide a IVisualTemplate that is used to visualize type
.
Parameters
A map of options to pass to the method.
- context - IInputModeContext
- The input mode context. Allows you to access the CanvasComponent to retrieve the resources.
- type - StripeVisualizationType
- The visualization type
Returns
- ↪IVisualTemplate
- A IVisualTemplate that is used to visualize
type
.
getVisualCreator
(context: IInputModeContext, tableNode: INode, type: StripeVisualizationType) : IVisualCreatorReturn an IVisualCreator that is used to visualize the input operation specified by type
.
Remarks
Parameters
A map of options to pass to the method.
- context - IInputModeContext
- The input mode context which provides further information.
- tableNode - INode
- The node where the stripe's owner is currently bound to.
- type - StripeVisualizationType
- The actual visualization type
Returns
- ↪IVisualCreator
- A IVisualCreator instance that renders a representation for the current operation.
See Also
Implements
Constants
A string that can be used to store a IVisualTemplate that can be used to create the visual that will be used to draw the highlight for the current source of a stripe reparent operation.
Remarks
This template is used for DRAG_SOURCE
The default template has the yfiles-stripe-drag-template
CSS class and uses colors based on the ThemeVariant of the current theme:
- CLASSIC – Rectangle with black stroke and semi-transparent black fill.
- SIMPLE_ROUND and SIMPLE_SQUARE – Rectangle stroked with secondaryColor and filled with semi-transparent secondaryColor.
See Also
A string that can be used to store a IVisualTemplate that can be used to create the visual that will be used to draw the highlight for the current target of a stripe reparent operation.
Remarks
This template is used for DROP_TARGET
The default template has the yfiles-highlight-template
and yfiles-stripe-highlight-template
CSS classes and uses colors based on the ThemeVariant of the current theme:
- CLASSIC – Rectangle with double-stroked border or corners using primaryColor and backgroundColor in-between.
- SIMPLE_ROUND and SIMPLE_SQUARE – Rectangle stroked with secondaryColor.
See Also
A string that can be used to store a IVisualTemplate that can be used to create the visual that will be used to draw the highlight for the stripe that is resized.
Remarks
This template is used for RESIZE
The default template has the yfiles-stripe-resize-template
CSS class and uses colors based on the ThemeVariant of the current theme:
- CLASSIC – Rectangle with black stroke and semi-transparent black fill.
- SIMPLE_ROUND and SIMPLE_SQUARE – Rectangle stroked with secondaryColor and filled with semi-transparent secondaryColor.
See Also
A string that can be used to store a IVisualTemplate that can be used to create the visual that will be used to draw the highlight for the stripe that is selected.
Remarks
This template is used for SELECTION
The default template has the yfiles-stripe-selection-template
CSS class and uses colors based on the ThemeVariant of the current theme:
- CLASSIC – Rectangle with black stroke and semi-transparent black fill.
- SIMPLE_ROUND and SIMPLE_SQUARE – Rectangle stroked with secondaryColor and filled with semi-transparent secondaryColor.