Package | Description |
---|---|
com.yworks.yfiles.graph |
Definitions, default implementations, and support classes that represent graph structures and provide facilities for their programmatic modification.
|
com.yworks.yfiles.graph.styles |
Contains interfaces and default implementations for graph element styles.
|
com.yworks.yfiles.view |
Contains the main UI classes, interfaces, default implementations and support classes that can be used to display
IGraph instances. |
com.yworks.yfiles.view.input |
Contains definitions, default implementations, and support classes that deal with the user interaction in a
CanvasControl in general, as well as specialized utility classes and IInputMode implementations that can be used to work with and edit IGraph instances in a GraphControl . |
Modifier and Type | Interface and Description |
---|---|
interface |
IColumn
Interface that describes a column in a
ITable instance. |
interface |
IRow
Interface that describes a row in a
ITable instance. |
Modifier and Type | Method and Description |
---|---|
IStripe |
StripeEventArgs.getParentStripe()
Gets the parent of the stripe that owned the stripe before the event happened.
|
default IStripe |
IStripe.getParentStripe()
Gets the parent of
stripe in a table hierarchy. |
default IStripe |
IStripe.getRoot()
Gets the root of the stripe hierarchy of
stripe in a table hierarchy. |
Modifier and Type | Method and Description |
---|---|
default IEnumerable<IStripe> |
ITable.findStripes(INode node,
PointD location,
StripeTypes stripeTypes,
Predicate<IStripe> filter)
Convenience method to find all stripes underneath a certain point.
|
default IEnumerable<IStripe> |
IStripe.getChildStripes()
Gets the direct children of
stripe in a table hierarchy. |
default IEnumerable<IStripe> |
IStripe.getDescendants()
Returns a collection of all descendants of
stripe . |
default IEnumerable<IStripe> |
IStripe.getLeaves()
Returns a collection of all descendants of
stripe that are leaves and therefore don't have any child stripes. |
Modifier and Type | Method and Description |
---|---|
default ILabel |
ITable.addLabel(IStripe owner,
String text)
Add a label to the given owner using the text as the initial label text and label model parameter and style.
|
default ILabel |
ITable.addLabel(IStripe owner,
String text,
ILabelModelParameter layoutParameter)
Add a label to the given owner using the text as the initial label text and label model parameter and style.
|
default ILabel |
ITable.addLabel(IStripe owner,
String text,
ILabelModelParameter layoutParameter,
ILabelStyle style)
Add a label to the given owner using the text as the initial label text and label model parameter and style.
|
default ILabel |
ITable.addLabel(IStripe owner,
String text,
ILabelModelParameter layoutParameter,
ILabelStyle style,
SizeD preferredSize)
Add a label to the given owner using the text as the initial label text and label model parameter and style.
|
ILabel |
Table.addLabel(IStripe owner,
String text,
ILabelModelParameter layoutParameter,
ILabelStyle style,
SizeD preferredSize,
Object tag) |
ILabel |
ITable.addLabel(IStripe owner,
String text,
ILabelModelParameter layoutParameter,
ILabelStyle style,
SizeD preferredSize,
Object tag)
Add a label to the given owner using the text as the initial label text and label model parameter and style.
|
default SizeD |
ITable.calculateLabelPreferredSize(IStripe stripe,
ILabelStyle style,
ILabelModelParameter layoutParameter,
String text,
Object tag)
Calculates the preferred size of a label with the given properties.
|
default ILabelModelParameter |
ITable.createLabelLayoutParameter(IStripe stripe)
Creates the label model parameter for a given
ILabelOwner . |
default ILabelStyle |
ITable.createLabelStyle(IStripe stripe)
Convenience method that delegates to the
ILabelDefaults.getStyleInstance(com.yworks.yfiles.graph.ILabelOwner)
method for the given stripe . |
protected void |
Table.onStripeChanged(IStripe owner,
IStripe stripe,
ITable oldTable)
Callback that is invoked after a stripe has changed.
|
protected void |
Table.onStripeCreated(IStripe stripe)
Called after a stripe has been created and added to a table.
|
protected void |
Table.onStripeRemoved(IStripe owner,
IStripe stripe)
Called after a stripe has been removed from its owner.
|
void |
Table.remove(IStripe stripe) |
void |
ITable.remove(IStripe stripe)
Removes
stripe from its parent container. |
default void |
ITable.removeRecursively(IStripe stripe)
|
default void |
ITable.removeRecursivelyWithResize(IStripe stripe)
Removes the given stripe and all of its descendants from table and
resizes all affected stripes so that the table size does not change if possible. |
default void |
ITable.removeWithResize(IStripe stripe)
Removes stripe from table and resizes all affected stripes so that the table
size does not change if possible. |
void |
Table.setMinimumSize(IStripe stripe,
double minimumSize) |
void |
ITable.setMinimumSize(IStripe stripe,
double minimumSize)
Sets the minimum size of
stripe . |
void |
Table.setSize(IStripe stripe,
double size) |
void |
ITable.setSize(IStripe stripe,
double size)
Sets the actual size of
stripe . |
void |
Table.setStripeInsets(IStripe stripe,
InsetsD insets) |
void |
ITable.setStripeInsets(IStripe stripe,
InsetsD insets)
Sets the insets of
stripe . |
void |
Table.setStyle(IStripe stripe,
IStripeStyle style) |
void |
ITable.setStyle(IStripe stripe,
IStripeStyle style)
Sets the style of
stripe . |
Modifier and Type | Method and Description |
---|---|
void |
Table.addStripeCreatedListener(IEventHandler<ItemEventArgs<IStripe>> stripeCreatedEvent) |
void |
ITable.addStripeCreatedListener(IEventHandler<ItemEventArgs<IStripe>> stripeCreatedEvent)
Adds the given listener for the
StripeCreated event that occurs when a stripe has been added. |
default IColumn |
ITable.findColumn(INode node,
PointD location,
Predicate<IStripe> filter)
Convenience method to find a column underneath a certain point.
|
default IRow |
ITable.findRow(INode node,
PointD location,
Predicate<IStripe> filter)
Convenience method to find a row underneath a certain point.
|
default IEnumerable<IStripe> |
ITable.findStripes(INode node,
PointD location,
StripeTypes stripeTypes,
Predicate<IStripe> filter)
Convenience method to find all stripes underneath a certain point.
|
void |
Table.removeStripeCreatedListener(IEventHandler<ItemEventArgs<IStripe>> stripeCreatedEvent) |
void |
ITable.removeStripeCreatedListener(IEventHandler<ItemEventArgs<IStripe>> stripeCreatedEvent)
Removes the given listener for the
StripeCreated event that occurs when a stripe has been added. |
Constructor and Description |
---|
StripeEventArgs(IStripe stripe,
IStripe parentStripe,
ITable table)
Initializes a new instance of the
StripeEventArgs class. |
Modifier and Type | Method and Description |
---|---|
protected IStripe |
TemplateStripeStyleRenderer.getStripe()
Gets the currently configured stripe.
|
Modifier and Type | Method and Description |
---|---|
Node |
TemplateStripeStyle.createControl(IRenderContext context,
IStripe stripe)
Factory method that is called by the
TemplateStripeStyleRenderer to create the control that will be used for the
display of the stripe. |
protected abstract Node |
AbstractStripeStyle.createVisual(IRenderContext context,
IStripe stripe)
Callback that creates the visual.
|
ILookup |
VoidStripeStyleRenderer.getContext(IStripe stripe,
IStripeStyle style)
Yields the
ILookup.EMPTY that will not yield anything. |
ILookup |
TemplateStripeStyleRenderer.getContext(IStripe stripe,
IStripeStyle style)
Configures the
style and stripe parameters, does not call TemplateStripeStyleRenderer.configure() and returns
this . |
ILookup |
IStripeStyleRenderer.getContext(IStripe stripe,
IStripeStyle style)
Gets a temporary context instance that can be used to query additional information for the stripe's style.
|
IVisualCreator |
VoidStripeStyleRenderer.getVisualCreator(IStripe stripe,
IStripeStyle style)
Yields the
VoidVisualCreator.INSTANCE that will do nothing. |
IVisualCreator |
TemplateStripeStyleRenderer.getVisualCreator(IStripe stripe,
IStripeStyle style)
Configures the
style and stripe parameters, calls TemplateStripeStyleRenderer.configure() and returns this . |
IVisualCreator |
IStripeStyleRenderer.getVisualCreator(IStripe stripe,
IStripeStyle style)
Gets an implementation of the
IVisualCreator interface that can handle the provided stripe and its associated
style. |
protected Object |
AbstractStripeStyle.lookup(IStripe stripe,
Class type)
Performs the
ILookup.lookup(Class) operation for the IStripeStyleRenderer.getContext(IStripe, IStripeStyle)
that has been queried from the Renderer . |
protected void |
TemplateStripeStyleRenderer.setStripe(IStripe value)
Sets the currently configured stripe.
|
protected Node |
AbstractStripeStyle.updateVisual(IRenderContext context,
Node oldVisual,
IStripe stripe)
Callback that updates the visual previously created by
AbstractStripeStyle.createVisual(IRenderContext, IStripe) . |
Modifier and Type | Method and Description |
---|---|
IEnumerator<IStripe> |
StripeSelection.enumerator() |
Modifier and Type | Method and Description |
---|---|
protected IAnimation |
TableAnimation.createStripeAnimation(IStripe stripe,
double targetSize)
Create the animation for a single
IStripe . |
boolean |
StripeSelection.isSelected(IStripe stripe)
Return whether
stripe is currently selected. |
void |
StripeSelection.setSelected(IStripe item,
boolean selected) |
Modifier and Type | Method and Description |
---|---|
void |
StripeSelection.addItemSelectionChangedListener(IEventHandler<ItemSelectionChangedEventArgs<IStripe>> itemSelectionChangedEvent) |
protected void |
StripeSelection.onItemSelectionChanged(ItemSelectionChangedEventArgs<IStripe> args)
Raises the
ItemSelectionChanged event. |
void |
StripeSelection.removeItemSelectionChangedListener(IEventHandler<ItemSelectionChangedEventArgs<IStripe>> itemSelectionChangedEvent) |
Modifier and Type | Method and Description |
---|---|
protected IStripe |
StripeDropInputMode.createStripe(IInputModeContext context,
IStripe newParent)
Create a new stripe as the result of a drag and drop gesture.
|
IStripe |
ReparentStripePositionHandler.getMovedStripe()
Allows to query the moved stripe.
|
IStripe |
StripeSubregion.getStripe()
Gets the stripe that this instance describes.
|
IStripe |
TableEditorInputMode.insertChild(IStripe owner,
int index)
Convenience method that inserts a new stripe as child of .
|
IStripe |
TableEditorInputMode.insertChild(IStripe owner,
int index,
double size)
Convenience method that inserts a new stripe as child of .
|
Modifier and Type | Method and Description |
---|---|
protected void |
ReparentStripeHandler.adjustSize(IInputModeContext context,
IStripe stripe,
IStripe newParent,
StripeReparentPolicy reparentPosition,
int index,
double originalStripeSize,
double originalParentSize)
Adjust the size of the source or the target stripe.
|
Future<ILabel> |
TableEditorInputMode.createLabel(IStripe stripe)
Interactively creates a new label for the provided stripe.
|
protected IStripe |
StripeDropInputMode.createStripe(IInputModeContext context,
IStripe newParent)
Create a new stripe as the result of a drag and drop gesture.
|
protected ICanvasObject |
ReparentStripePositionHandler.createTargetGhostVisualization(IInputModeContext context,
IStripe stripe)
Create a visualization for the target region of the reparent gesture.
|
void |
TableEditorInputMode.deleteStripe(IStripe stripe)
Deletes a single stripe.
|
protected StripeReparentPolicy |
ReparentStripePositionHandler.determineGesture(IInputModeContext context,
IPoint location,
IStripe sourceStripe,
StripeSubregion targetSubregion,
RectD targetBounds)
Determine the reparent gesture that would result from the given parameters.
|
IStripe |
TableEditorInputMode.insertChild(IStripe owner,
int index)
Convenience method that inserts a new stripe as child of .
|
IStripe |
TableEditorInputMode.insertChild(IStripe owner,
int index,
double size)
Convenience method that inserts a new stripe as child of .
|
boolean |
ReparentStripeHandler.isValidParent(IInputModeContext context,
IStripe stripe,
IStripe newParent,
int index,
StripeReparentPolicy reparentPosition)
Checks the constraints imposed by
MaxRowLevel or MaxColumnLevel
for a valid gesture. |
boolean |
IReparentStripeHandler.isValidParent(IInputModeContext context,
IStripe stripe,
IStripe newParent,
int index,
StripeReparentPolicy reparentPosition)
Determines whether the provided node may be reparented to a
newParent . |
void |
ReparentStripeHandler.reparent(IInputModeContext context,
IStripe stripe,
IStripe newParent,
int index,
StripeReparentPolicy reparentPosition)
Performs the actual reparenting after the reparent gesture has been finalized.
|
void |
IReparentStripeHandler.reparent(IInputModeContext context,
IStripe movedStripe,
IStripe newParent,
int index,
StripeReparentPolicy reparentPosition)
Performs the actual reparenting after the reparent gesture has been finalized.
|
protected boolean |
TableEditorInputMode.shouldDelete(IStripe stripe)
Callback method that determines whether the given item should be deleted during
TableEditorInputMode.deleteSelection() . |
boolean |
ReparentStripeHandler.shouldReparent(IInputModeContext context,
IStripe stripe)
Determines whether the user may detach the given stripe from its current parent in order to reparent it.
|
boolean |
IReparentStripeHandler.shouldReparent(IInputModeContext context,
IStripe stripe)
Determines whether the user may detach the given stripe from its current parent in order to reparent it.
|
protected ICanvasObject |
ReparentStripePositionHandler.updateSourceVisualization(IInputModeContext context,
ICanvasObject targetVisualization,
IStripe targetStripe,
StripeReparentPolicy reparentPosition)
Modifies the source visualization itself.
|
protected ICanvasObject |
ReparentStripePositionHandler.updateTargetVisualization(IInputModeContext context,
ICanvasObject targetVisualization,
IStripe targetStripe,
StripeReparentPolicy reparentPosition,
RectD targetBounds)
Modifies the target visualization itself.
|
protected RectD |
ReparentStripePositionHandler.updateTargetVisualizationBounds(RectD originalTargetBounds,
StripeReparentPolicy reparentPosition,
IStripe targetStripe)
Updates the visualization bounds for the target visualization depending on the provided values.
|
Modifier and Type | Method and Description |
---|---|
void |
TableEditorInputMode.addDeletedSelectionListener(IEventHandler<SelectionEventArgs<IStripe>> deletedSelectionEvent)
Adds the given listener for the
DeletedSelection event that occurs just before the TableEditorInputMode.deleteSelection()
method has deleted the selection after all selected items have been removed. |
void |
TableEditorInputMode.addDeletingSelectionListener(IEventHandler<SelectionEventArgs<IStripe>> deletingSelectionEvent)
Adds the given listener for the
DeletingSelection event that occurs just before the TableEditorInputMode.deleteSelection()
method starts its work and will be followed by any number of DeletedItem
events and finalized by a DeletedSelection event. |
void |
StripeDropInputMode.addStripeCreatedListener(IEventHandler<ItemEventArgs<IStripe>> stripeCreatedEvent)
Adds the given listener for the
StripeCreated event that occurs when a new stripe gets created by this input
mode. |
protected void |
TableEditorInputMode.onDeletedSelection(SelectionEventArgs<IStripe> args)
Raises the
DeletedSelection event. |
protected void |
TableEditorInputMode.onDeletingSelection(SelectionEventArgs<IStripe> args)
Raises the
DeletingSelection event. |
protected void |
StripeDropInputMode.onStripeCreated(ItemEventArgs<IStripe> args)
Called whenever a new stripe is created.
|
void |
TableEditorInputMode.removeDeletedSelectionListener(IEventHandler<SelectionEventArgs<IStripe>> deletedSelectionEvent)
Removes the given listener for the
DeletedSelection event that occurs just before the TableEditorInputMode.deleteSelection()
method has deleted the selection after all selected items have been removed. |
void |
TableEditorInputMode.removeDeletingSelectionListener(IEventHandler<SelectionEventArgs<IStripe>> deletingSelectionEvent)
Removes the given listener for the
DeletingSelection event that occurs just before the TableEditorInputMode.deleteSelection()
method starts its work and will be followed by any number of DeletedItem
events and finalized by a DeletedSelection event. |
void |
StripeDropInputMode.removeStripeCreatedListener(IEventHandler<ItemEventArgs<IStripe>> stripeCreatedEvent)
Removes the given listener for the
StripeCreated event that occurs when a new stripe gets created by this input
mode. |
Constructor and Description |
---|
DefaultStripeInputVisualizationHelper(IStripe stripe)
Default constructor.
|
ReparentStripePositionHandler(IStripe movedStripe)
Creates a new instance of this position handler which moves .
|
StripeSubregion(StripeSubregionTypes subregionType,
IStripe stripe)
Create a new instance that describes the specific subregion.
|