- I
- I
- I
Members
Constructors
Properties
Returns the accumulated padding for the table.
Defined in
ITable.accumulatedPaddingGets or sets the defaults for Columns.
The settings that are obtained from the instance influence newly created elements only. Setting different defaults later does not influence existing elements.
If no value is set explicitly a default will be created using createColumnDefaults upon first read access.
Implements
ITable.columnDefaultsGets the top-level IColumns in this table.
Gets a TableDecorator instance for use with this table.
Defined in
ITable.decoratorGets the layout of the table, relative to an owner node.
Implements
ITable.layoutGets or sets the padding for this table.
Implements
ITable.paddingGets the virtual root of the column hierarchy
Implements
ITable.rootColumnGets the virtual root of the row hierarchy
Implements
ITable.rootRowGets or sets the defaults for rows.
The settings that are obtained from the instance influence newly created elements only. Setting different defaults later does not influence existing elements.
If no value is set explicitly a default will be created using createRowDefaults upon first read access.
Implements
ITable.rowDefaultsGets the top-level IRows in this table.
Methods
Add a label to the given owner using the text as the initial label text and label model parameter and style.
Parameters
- owner: IStripe
- The owner to add the label to.
- text: string
- The initial text of the label
- layoutParameter?: ILabelModelParameter
- The label model parameter instance to use.
- style?: ILabelStyle
- The style to use for the label
- preferredSize?: Size
- The initial values to use for the preferredSize.
- tag?: ILabel['tag']
- The initial tag to assign.
Return Value
- ILabel
- The newly created label
Implements
ITable.addLabelAdjusts the preferredSize property of a label to fit the suggested size of its ILabelStyleRenderer.
Parameters
- label: ILabel
- The label to adjust the size for.
See Also
Defined in
ITable.adjustLabelPreferredSizeCalculates the preferred size of a label with the given properties.
Parameters
- stripe: IStripe
- The item that will own the label.
- style: ILabelStyle
- The label style.
- layoutParameter: ILabelModelParameter
- The label model parameter.
- text: string
- The text.
- tag: ILabel['tag']
- The tag for the label.
Return Value
- Size
- The size as calculated by the ILabelStyleRenderer.
Defined in
ITable.calculateLabelPreferredSizetable.Defined in
ITable.clearCreate a clone of this object.
column implements the ICloneable interface, the column instance is cloned. Otherwise, the original instance is returned unchanged.Parameters
- column: IColumn
- The column that should be copied during a clone operation.
Return Value
- IColumn
- A clone of
columnif possible. Otherwise, the original reference tocolumn.
Called during clone to create a copy of originalDefaults
originalDefaultsoriginalDefaults. If you need to create a deep clone of originalDefaults, you'll have to perform the cloning yourself.Parameters
- originalDefaults: IStripeDefaults
- The default settings that should be copied during a clone operation.
Return Value
- IStripeDefaults
- The original reference to
originalDefaults
row implements the ICloneable interface, the row instance is cloned. Otherwise, the original instance is returned unchanged.Parameters
- row: IRow
- The row that should be copied during a clone operation.
Return Value
- IRow
- A clone of
rowif possible. Otherwise, the original reference torow.
Create a new column as the indexth child of parent with the given parameters.
indexth child of parent with the given parameters.Parameters
- parent: IColumn
- The owner of the new column.
- width?: number
- The actual width of the column.
- minWidth?: number
- The minimal width of the column.
- padding?: Insets
- The padding of the column.
- style?: IStripeStyle
- The style of the column.
- tag?: IColumn['tag']
- The tag of the column
- index?: number
- The position in the child list.
Return Value
- IColumn
- A new column instance
Implements
ITable.createChildColumnCreate a new row as the indexth child of parent with the given parameters.
indexth child of parent with the given parameters.Parameters
- parent: IRow
- The owner of the new row.
- height?: number
- The actual height of the row.
- minHeight?: number
- The minimal height of the row.
- padding?: Insets
- The padding of the row.
- style?: IStripeStyle
- The style of the row.
- tag?: IRow['tag']
- The tag of the row
- index?: number
- The position in the child list.
Return Value
- IRow
- A new row instance
Implements
ITable.createChildRowCreates and returns a column as last child of table.
table.Parameters
- width?: number
- The actual width of the column.
- minWidth?: number
- The minimal width of the column.
- padding?: Insets
- The padding of the column.
- style?: IStripeStyle
- The style of the column.
- tag?: IColumn['tag']
- The tag of the column
- index?: number
- The position in the child list. If omitted, the row will be positioned at the end.
Return Value
- IColumn
- A newly created column instance
See Also
Defined in
ITable.createColumnCreates the column defaults.
table.Parameters
- columns: number
- The number of columns to test.
- rows: number
- The number of rows to test.
Defined in
ITable.createGridCreates the label model parameter for a given ILabelOwner.
table to obtain the parameter instance.Parameters
Return Value
- ILabelModelParameter
- The default label model parameter to use for newly created labels at the item.
See Also
Defined in
ITable.createLabelLayoutParameterCreates an instance of the default label style for the given stripe.
stripe.Parameters
- stripe: IStripe
- The item the newly created label will belong to.
Return Value
- ILabelStyle
- The style instance to use for newly created stripes.
Defined in
ITable.createLabelStyleCreates and returns a row as last child of table.
table.Parameters
- height?: number
- The actual height of the row.
- minHeight?: number
- The minimal height of the row.
- padding?: Insets
- The padding of the row.
- style?: IStripeStyle
- The style of the row.
- tag?: IRow['tag']
- The tag of the row
- index?: number
- The position in the child list. If omitted, the row will be positioned at the end.
Return Value
- IRow
- A newly created row instance
See Also
Defined in
ITable.createRowCreates the row defaults.
Parameters
- node: INode
- The node this table is currently bound to
- location: Point
- The location to test.
- filter?: function(IStripe): boolean
- Additional predicate to further restrict the results.
Return Value
- IColumn
- The topmost column that has been found for the location or
null.
Defined in
ITable.findColumnParameters
- node: INode
- The node this table is currently bound to
- location: Point
- The location to test.
- filter?: function(IStripe): boolean
- Additional predicate to further restrict the results.
Return Value
- IRow
- The topmost row that has been found for the location or
null.
Defined in
ITable.findRowFinds all stripes underneath a certain point.
Parameters
- node: INode
- The node this table is currently bound to
- location: Point
- The location to test.
- stripeTypes: StripeTypes
- An enumeration value of StripeTypes to specify the stripe type.
- filter?: function(IStripe): boolean
- Additional predicate to further restrict the hit test results.
Return Value
- IEnumerable<IStripe>
- The stripes that have been found for the location or
null.
See Also
Developer's Guide
Defined in
ITable.findStripescolumn and row must reside in the provided table instance. Otherwise, an ArgumentError is thrown.Parameters
Return Value
- Rect
- The relative bounds of the cell determined by
columnandrow
Throws
- Exception ({ name: 'ArgumentError' })
- If
columnandroware part of a different table instance.
Defined in
ITable.getCellBoundsnull implementations for the types, nor does it have to return the same instance any time. Also, it depends on the type and context whether the instance returned stays up to date or needs to be re-obtained for further use.Parameters
- type: Constructor<T>
- the type for which an instance shall be returned
Return Value
- T
- an instance that is assignable to the type or
null
Implements
ILookup.lookupCalled after a label has been added to a stripe.
Parameters
- label: ILabel
- The label that has just been added.
Called after a label has changed.
Parameters
- label: ILabel
- The label that has changed.
Called after a label has been removed from its stripe.
Parameters
- owner: ILabelOwner
- The old owner of the label.
- label: ILabel
- The label that has just been removed.
Parameters
Called after a stripe has been created and added to a table.
Parameters
- stripe: IStripe
- The stripe that has just been created.
Parameters
Removes stripe from its parent container.
stripe from its parent container.stripe to the parent of the stripe.Parameters
- stripe: IStripe
- The stripe to remove
Implements
ITable.removeRemoves the given label from its owner.
Parameters
- label: ILabel
- The label to remove
Throws
- Exception ({ name: 'ArgumentError' })
- If the label is not associated with this table instance.
Implements
ITable.removeParameters
- stripe: IStripe
- The stripe to remove.
See Also
Developer's Guide
Defined in
ITable.removeRecursivelyParameters
- stripe: IStripe
- The stripe to remove.
See Also
Developer's Guide
Defined in
ITable.removeRecursivelyWithResizeParameters
- stripe: IStripe
- The stripe to remove.
See Also
Developer's Guide
Defined in
ITable.removeWithResizeSets the label model parameter for the given label.
Parameters
- label: ILabel
- The label.
- layoutParameter: ILabelModelParameter
- The new parameter.
Throws
- Exception ({ name: 'ArgumentError' })
- If the parameter cannot be used for this label or if the label is not associated with this table instance.
Implements
ITable.setLabelLayoutParameterParameters
Throws
- Exception ({ name: 'ArgumentError' })
- If the label is not associated with this table instance.
See Also
Implements
ITable.setLabelPreferredSizeSets the label text of the given label.
Parameters
- label: ILabel
- The label to modify
- text: string
- The new text of the label
Throws
- Exception ({ name: 'ArgumentError' })
- If the label is not associated with this table instance.
See Also
API
- text
Implements
ITable.setLabelTextSets the minimum size of stripe.
stripe.stripe.Parameters
- stripe: IStripe
- The stripe to change
- minimumSize: number
- The new minimum size of the stripe
Implements
ITable.setMinimumSizeindex in the child list of the new parent.Parameters
Implements
ITable.setParentindex in the child list of the new parent.Parameters
Implements
ITable.setParentSets the actual size of stripe.
stripe.stripe.Parameters
- stripe: IStripe
- The stripe to change
- size: number
- The new size of the stripe
Implements
ITable.setSizeParameters
Implements
ITable.setStripePaddingSets the style of stripe.
stripe.Parameters
- stripe: IStripe
- The stripe to change
- style: IStripeStyle
- The new style of the stripe
Implements
ITable.setStyleAssigns the given style instance by reference to the label.
Parameters
- label: ILabel
- The label that will be assigned the new style
- style: ILabelStyle
- The style instance that will be assigned to the label.
Throws
- Exception ({ name: 'ArgumentError' })
- If the label is not associated with this table instance.
See Also
API
- style
Implements
ITable.setStyleEvents
Occurs when a label has been added to this graph instance.
Properties of
ItemEventArgs<ILabel>- item: T
- Gets the item that is the subject of the event.
Implements
ITable.label-addedOccurs when a label has been changed, for instance, if its style has been replaced.
Properties of
ItemEventArgs<ILabel>- item: T
- Gets the item that is the subject of the event.
Implements
ITable.label-changedOccurs when a label has been removed from this graph instance.
This event will also be triggered, prior to the removal of the owner of the label.
Implementations may choose to use the LabelEventArgs to carry additional label owner information. The owner property will be set to the owner of the label that owned it before the removal.
Properties of
LabelEventArgs- item: ILabel
- Gets the item that is the subject of the event.
- owner: ILabelOwner
- Gets the owner of the label that owned the label before the event happened.
Implements
ITable.label-removedOccurs when a stripe has been changed, for instance, if its style has been replaced.
Properties of
StripeEventArgs- item: IStripe
- Gets the item that is the subject of the event.
- parentStripe: IStripe
- Gets the parent of the stripe that owned the stripe before the event happened.
- table: ITable
- Gets the table that owned the stripe before the event happened.
Implements
ITable.stripe-changedOccurs when a stripe has been added.
Properties of
ItemEventArgs<IStripe>- item: T
- Gets the item that is the subject of the event.
Implements
ITable.stripe-createdOccurs when a stripe has been removed from its parent.
Properties of
StripeEventArgs- item: IStripe
- Gets the item that is the subject of the event.
- parentStripe: IStripe
- Gets the parent of the stripe that owned the stripe before the event happened.
- table: ITable
- Gets the table that owned the stripe before the event happened.
Implements
ITable.stripe-removedConstants
Gets an IContextLookup that provides the default implementations returned by an IColumn's lookup.
Gets an IContextLookup that provides the default implementations returned by an IRow's lookup.
Gets an IContextLookup that provides the default implementations returned by an IStripe's lookup.
Static Methods
Installs the undo support for use with all tables that are bound to nodes in graph.
graph.graph for its undo support dynamically whenever undo support is queried in the table. In contrast to installStaticUndoSupport, the undo support installed with this method will thus always be the one which is the currently available support for the graph.Parameters
- graph: IGraph
- The graph where the nodes exist or will be created/changed and where the undo support should come from.
See Also
Developer's Guide
API
- uninstallDynamicUndoSupport, installStaticUndoSupport
Installs the undo support for use with all tables that are bound to nodes in graph.
graph.This method installs the undo support which manages the graph at the time this method is called. In contrast to installDynamicUndoSupport, the installed undo support will not change when the graph's undo support changes.
This method adds undo support both for existing nodes in graph as well as for newly created or changed nodes.
Parameters
- graph: IGraph
- The graph where the nodes exist or will be created/changed.
See Also
Developer's Guide
API
- uninstallStaticUndoSupport, installDynamicUndoSupport
Uninstalls the undo support that has previously been installed with installDynamicUndoSupport
Parameters
- graph: IGraph
- The graph where the tables are installed for which the undo support should be cleared.
Uninstalls the undo support that has previously been installed with installStaticUndoSupport
Parameters
- graph: IGraph
- The graph where the tables are installed for which the undo support should be cleared.