public interface IStripe extends ILabelOwner
| Modifier and Type | Method and Description |
|---|---|
default RectD |
getAbsoluteBounds(INode node)
Returns the layout of
stripe in absolute coordinates. |
default InsetsD |
getActualInsets()
Gets the insets that are currently in effect for this stripe.
|
default double |
getActualMinSize()
Returns the actual minimum size a stripe can acquire.
|
default double |
getActualSize()
The current actual dimension of the stripe.
|
default IEnumerable<IStripe> |
getChildStripes()
Gets the direct children of
stripe in a table hierarchy. |
default IEnumerable<IStripe> |
getDescendants()
Returns a collection of all descendants of
stripe. |
default int |
getIndex()
|
InsetsD |
getInsets()
Gets the insets for this stripe.
|
IRectangle |
getLayout()
Returns a live view of the relative layout of the stripe.
|
default IEnumerable<IStripe> |
getLeaves()
Returns a collection of all descendants of
stripe that are leaves and therefore don't have any child stripes. |
double |
getMinimumSize()
The minimal permissible value for
Size. |
default IStripe |
getParentStripe()
Gets the parent of
stripe in a table hierarchy. |
default IStripe |
getRoot()
Gets the root of the stripe hierarchy of
stripe in a table hierarchy. |
double |
getSize()
The current changeable dimension of the stripe.
|
IStripeStyle |
getStyle()
Gets the style for this stripe.
|
ITable |
getTable()
The
ITable instance where this stripe is installed. |
default boolean |
isRoot()
Checks whether
stripe is the root item of a stripe hierarchy. |
getLabelscreateDictionaryLookup, createDynamic, createSingle, createSingle, createWrapped, lookup, lookup, lookup, safeLookupdefault RectD getAbsoluteBounds(INode node)
stripe in absolute coordinates.
Since Layout is relative to the owning node's left corner, you need to provide an node node
to calculate the absolute layout.
node - The node relative to which the stripe layout is calculated. This should be the same node where Table
for stripe is associated to.default InsetsD getActualInsets()
This value is determined by the accumulated insets of all ancestor, sibling and descendant insets. These insets may be
larger than Insets.
default double getActualMinSize()
This is the maximum of MinimumSize and the horizontal or vertical
Insets.
default double getActualSize()
This is always the stripe size which is actually used for the stripe. For leaf stripes, this is the same as
Size, otherwise, it is the accumulated size of all descendants with taking nested insets into
account.
default IEnumerable<IStripe> getChildStripes()
stripe in a table hierarchy.
For IColumn instances, this returns
ChildColumns, for IRow
instances, this returns ChildRows
stripeIColumn.getChildColumns(),
IRow.getChildRows()default IEnumerable<IStripe> getDescendants()
stripe.
The descendants are returned in top to bottom order.
stripedefault int getIndex()
stripe in its getParentStripe() collection of getChildStripes().
The stripe is the GetIndexth child of its parent.
stripeIColumn.getChildColumns(),
IRow.getChildRows()InsetsD getInsets()
These insets are applied in addition to any implicit insets provided by the child stripes. To find out the actual insets
that are currently in effect, use getActualInsets().
IRectangle getLayout()
The layout of a stripe is a rectangle in the coordinate system that is relative to the upper left corner of the parent. Since this method will yield a live view, it is up to the client to copy the values of the instance if a snapshot of the state is needed.
default IEnumerable<IStripe> getLeaves()
stripe that are leaves and therefore don't have any child stripes.stripedouble getMinimumSize()
Size.
This value determines how much the stripe may be shrunk by interactive manipulation.
default IStripe getParentStripe()
stripe in a table hierarchy.
For IColumn instances, this returns
ParentColumn, for IRow
instances, this returns ParentRow
stripeIColumn.getParentColumn(),
IRow.getParentRow()default IStripe getRoot()
stripe in a table hierarchy.
If the stripe is part of an ITable instance, this returns RootColumn for IColumn
instances and ParentRow for RootRow
instances
stripeITable.getRootColumn(),
ITable.getRootRow(),
isRoot()double getSize()
This is always the stripe size which is not implicitly determined by other stripes, i.e. the height for IRow
instances and the width for IColumn instances.
IStripeStyle getStyle()
default boolean isRoot()
stripe is the root item of a stripe hierarchy.true iff stripe is a root stripe.getRoot()