# Uses of Interface
org.eclipse.gef.mvc.fx.parts.IContentPart

Packages that use IContentPart
Package
Description
org.eclipse.gef.mvc.fx.behaviors
This package contains JavaFX/MVC.FX-specific `IBehavior` implementations.
org.eclipse.gef.mvc.fx.models
org.eclipse.gef.mvc.fx.operations
This package contains all `IUndoableOperation` implementations contributed by MVC.FX.
org.eclipse.gef.mvc.fx.parts
This package contains all JavaFX-specific `IContentPart`, `IVisualPart`, `IFeedbackPart`, and `IHandlePart` implementations and related classes.
org.eclipse.gef.mvc.fx.policies
This package contains all `IPolicy` implementations contributed by MVC.FX.
org.eclipse.gef.mvc.fx.providers
org.eclipse.gef.mvc.fx.viewer
This package contains a JavaFX-specific `IViewer` implementation: `InfiniteCanvasViewer`.

## Uses of IContentPart in org.eclipse.gef.mvc.fx.behaviors

Methods in org.eclipse.gef.mvc.fx.behaviors that return IContentPart
Modifier and Type
Method
Description
`protected IContentPart<? extends javafx.scene.Node>`
ContentBehavior.`findOrCreatePartFor(Object content)`
Finds/Revives/Creates an `IContentPart` for the given content `Object`.
`IContentPart<? extends javafx.scene.Node>`
ContentPartPool.`remove(Object content)`
Retrieves an `IContentPart` for the given content element and removes it from the pool.
Methods in org.eclipse.gef.mvc.fx.behaviors that return types with arguments of type IContentPart
Modifier and Type
Method
Description
`Collection<IContentPart<? extends javafx.scene.Node>>`
ContentPartPool.`getPooled()`
Returns the `IContentPart`'s that are contained in this pool.
Methods in org.eclipse.gef.mvc.fx.behaviors with parameters of type IContentPart
Modifier and Type
Method
Description
`void`
ContentPartPool.`add(IContentPart<? extends javafx.scene.Node> part)`
Adds an `IContentPart` to this pool.
`protected void`
ContentBehavior.`disposeIfObsolete(IContentPart<? extends javafx.scene.Node> contentPart)`
If the given `IContentPart` does neither have a parent nor any anchoreds, then it's content is set to `null` and the part is added to the `ContentPartPool`.
`protected void`
HoverIntentBehavior.`onHoverIntentChange(IContentPart<? extends javafx.scene.Node> oldHoverIntent, IContentPart<? extends javafx.scene.Node> newHoverIntent)`
Callback method that is invoked when the `HoverModel.hoverIntentProperty()` changes.
`protected void`
RevealPrimarySelectionBehavior.`onPrimarySelectionChanged(IContentPart<? extends javafx.scene.Node> previousPrimarySelection, IContentPart<? extends javafx.scene.Node> currentPrimarySelection)`
This method is called when the primary selection (i.e. the first element of the `SelectionModel.selectionUnmodifiableProperty()`) is changed.
Method parameters in org.eclipse.gef.mvc.fx.behaviors with type arguments of type IContentPart
Modifier and Type
Method
Description
`protected void`
SelectionBehavior.`addFeedbackAndHandles(List<? extends IContentPart<? extends javafx.scene.Node>> selected)`
`protected void`
SelectionBehavior.`removeFeedbackAndHandles(List<? extends IContentPart<? extends javafx.scene.Node>> selected)`

## Uses of IContentPart in org.eclipse.gef.mvc.fx.models

Methods in org.eclipse.gef.mvc.fx.models that return IContentPart
Modifier and Type
Method
Description
`IContentPart<? extends javafx.scene.Node>`
FocusModel.`getFocus()`
Returns the `IContentPart` which has keyboard focus, or `null` if no `IContentPart` currently has keyboard focus.
`IContentPart<? extends javafx.scene.Node>`
HoverModel.`getHoverIntent()`
Returns the current hover intent `IContentPart` or `null` if no content part is intentionally hovered.
`IContentPart<? extends javafx.scene.Node>`
SnappingModel.SnappingLocation.`getPart()`
Returns the `IContentPart` from which this `SnappingModel.SnappingLocation` was derived.
Methods in org.eclipse.gef.mvc.fx.models that return types with arguments of type IContentPart
Modifier and Type
Method
Description
`javafx.beans.property.ObjectProperty<IContentPart<? extends javafx.scene.Node>>`
FocusModel.`focusProperty()`
Returns an object property providing the currently focused `IContentPart`.
`javafx.collections.ObservableList<IContentPart<? extends javafx.scene.Node>>`
SelectionModel.`getSelectionUnmodifiable()`
Returns an unmodifiable observable list of the currently selected `IContentPart`s.
`javafx.beans.property.ObjectProperty<IContentPart<? extends javafx.scene.Node>>`
HoverModel.`hoverIntentProperty()`
Returns an object property representing the hover intent part.
`javafx.beans.property.ReadOnlyListProperty<IContentPart<? extends javafx.scene.Node>>`
SelectionModel.`selectionUnmodifiableProperty()`
Returns an unmodifiable read-only list property that represents the current selection.
Methods in org.eclipse.gef.mvc.fx.models with parameters of type IContentPart
Modifier and Type
Method
Description
`void`
SelectionModel.`appendToSelection(IContentPart<? extends javafx.scene.Node> toBeAppended)`
Updates the current selection by adding the given `IContentPart` to it, preserving already selected elements.
`List<SnappingModel.SnappingLocation>`
SnappingModel.`getSnappingLocationsFor(IContentPart<? extends javafx.scene.Node> part)`
Returns a `List` containing the `SnappingModel.SnappingLocation`s that were derived from the given `IContentPart`.
`boolean`
SelectionModel.`isSelected(IContentPart<? extends javafx.scene.Node> contentPart)`
Returns whether the given `IContentPart` is part of the current selection.
`void`
SelectionModel.`prependToSelection(IContentPart<? extends javafx.scene.Node> toBePrepended)`
Updates the current selection by adding the given `IContentPart` to it, preserving already selected elements.
`void`
SelectionModel.`removeFromSelection(IContentPart<? extends javafx.scene.Node> contentPart)`
Removes the given `IContentPart` from the current selection if it is currently selected.
`void`
FocusModel.`setFocus(IContentPart<? extends javafx.scene.Node> focusPart)`
Selects the given IContentPart as the focus part.
`void`
HoverModel.`setHoverIntent(IContentPart<? extends javafx.scene.Node> cp)`
Sets the hover intent `IContentPart` to the given value.
`void`
SnappingModel.SnappingLocation.`setPart(IContentPart<? extends javafx.scene.Node> part)`
Sets the `IContentPart` of this `SnappingModel.SnappingLocation` to the given value.
`void`
SelectionModel.`setSelection(IContentPart<? extends javafx.scene.Node> newSelection)`
Replaces the current selection with the given `IContentPart`.
Method parameters in org.eclipse.gef.mvc.fx.models with type arguments of type IContentPart
Modifier and Type
Method
Description
`void`
SelectionModel.`appendToSelection(List<? extends IContentPart<? extends javafx.scene.Node>> toBeAppended)`
Updates the current selection by adding the given `IContentPart`s to it, preserving already selected elements.
`void`
SelectionModel.`prependToSelection(List<? extends IContentPart<? extends javafx.scene.Node>> toBePrepended)`
Updates the current selection by adding the given `IContentPart`s to it, preserving already selected elements.
`void`
SelectionModel.`removeFromSelection(Collection<? extends IContentPart<? extends javafx.scene.Node>> contentParts)`
Removes the given `IContentPart`s from the current selection if they are contained.
`void`
SelectionModel.`setSelection(List<? extends IContentPart<? extends javafx.scene.Node>> selection)`
Replaces the current selection with the given list of `IContentPart` s.
Constructors in org.eclipse.gef.mvc.fx.models with parameters of type IContentPart
Modifier
Constructor
Description
``
`SnappingLocation(IContentPart<? extends javafx.scene.Node> part, javafx.geometry.Orientation orientation, double positionInScene)`
Constructs a new `SnappingModel.SnappingLocation`.

## Uses of IContentPart in org.eclipse.gef.mvc.fx.operations

Methods in org.eclipse.gef.mvc.fx.operations that return types with arguments of type IContentPart
Modifier and Type
Method
Description
`List<IContentPart<? extends javafx.scene.Node>>`
ChangeSelectionOperation.`getToBeDeselected()`
Returns the parts that are to be deleted.
`List<IContentPart<? extends javafx.scene.Node>>`
DeselectOperation.`getToBeDeselected()`
Returns the parts that are to be deleted.
Methods in org.eclipse.gef.mvc.fx.operations with parameters of type IContentPart
Modifier and Type
Method
Description
`void`
ChangeFocusOperation.`setNewFocused(IContentPart<? extends javafx.scene.Node> newFocused)`
Sets the new focussed part to the given one.
Constructors in org.eclipse.gef.mvc.fx.operations with parameters of type IContentPart
Modifier
Constructor
Description
``
`AddContentChildOperation(IContentPart<? extends javafx.scene.Node> parent, Object contentChild, int index)`
Creates a new `AddContentChildOperation` for adding the given contentChild `Object` to the content children of the given parent `IContentPart`.
``
`AttachToContentAnchorageOperation(IContentPart<? extends javafx.scene.Node> anchored, Object contentAnchorage, String role)`
Creates a new `AttachToContentAnchorageOperation` to attach the given anchored `IContentPart` to the given contentAnchorage under the specified role, so that it will be returned by subsequent calls to `getContentAnchoragesUnmodifiable()`.
``
`ChangeFocusOperation(String label, IViewer viewer, IContentPart<? extends javafx.scene.Node> newFocused)`
Creates a new `ChangeFocusOperation` to assign focus to the given newFocused `IContentPart` within the given `IViewer`.
``
`ChangeFocusOperation(IViewer viewer, IContentPart<? extends javafx.scene.Node> newFocused)`
Creates a new `ChangeFocusOperation` to assign focus to the given newFocused `IContentPart` within the given `IViewer`.
``
`DetachFromContentAnchorageOperation(IContentPart<? extends javafx.scene.Node> anchored, Object contentAnchorage, String role)`
Creates a new `DetachFromContentAnchorageOperation` to detach the given anchored `IContentPart` from the given contentAnchorage under the specified role, so that it will not be returned by subsequent calls to `getContentAnchoragesUnmodifiable()`.
``
`RemoveContentChildOperation(IContentPart<? extends javafx.scene.Node> parent, Object contentChild)`
Creates a new `RemoveContentChildOperation` for removing the given contentChild `Object` from the content children of the given parent `IContentPart`.
Constructor parameters in org.eclipse.gef.mvc.fx.operations with type arguments of type IContentPart
Modifier
Constructor
Description
``
`ChangeSelectionOperation(String label, IViewer viewer, List<? extends IContentPart<? extends javafx.scene.Node>> finalSelection)`
Creates a new `ChangeSelectionOperation` to change the selection.
``
`ChangeSelectionOperation(IViewer viewer, List<? extends IContentPart<? extends javafx.scene.Node>> finalSelection)`
Creates a new `ChangeSelectionOperation` to change the selection within the given `IViewer` by removing the given `IContentPart`s.
``
`DeselectOperation(String label, IViewer viewer, List<? extends IContentPart<? extends javafx.scene.Node>> toBeDeselected)`
Creates a new `DeselectOperation` to change the selection within the given `IViewer` by removing the given `IContentPart`s.
``
`DeselectOperation(IViewer viewer, List<? extends IContentPart<? extends javafx.scene.Node>> toBeDeselected)`
Creates a new `DeselectOperation` to change the selection within the given `IViewer` by removing the given `IContentPart`s.
``
`SelectOperation(String label, IViewer viewer, List<? extends IContentPart<? extends javafx.scene.Node>> toBeSelected)`
* Creates a new `SelectOperation` to change the selection within the given `IViewer` to prepend the given content parts.
``
`SelectOperation(IViewer viewer, List<? extends IContentPart<? extends javafx.scene.Node>> toBeSelected)`
Creates a new `SelectOperation` to change the selection within the given `IViewer` to prepend the given content parts.

## Uses of IContentPart in org.eclipse.gef.mvc.fx.parts

Subinterfaces of IContentPart in org.eclipse.gef.mvc.fx.parts
Modifier and Type
Interface
Description
`interface`
`IBendableContentPart<V extends javafx.scene.Node>`
An `IContentPart` that supports content related bend, i.e. manipulation of control points.
`interface`
`IResizableContentPart<V extends javafx.scene.Node>`
An `IContentPart` that supports content related resize.
`interface`
`ITransformableContentPart<V extends javafx.scene.Node>`
An `IContentPart` that supports content related transformations.
Classes in org.eclipse.gef.mvc.fx.parts that implement IContentPart
Modifier and Type
Class
Description
`class`
`AbstractContentPart<V extends javafx.scene.Node>`
The `AbstractContentPart` is an `IContentPart` implementation that binds the VR type parameter (visual root type) to `Node`.
Methods in org.eclipse.gef.mvc.fx.parts that return IContentPart
Modifier and Type
Method
Description
`IContentPart<? extends javafx.scene.Node>`
IContentPartFactory.`createContentPart(Object content, Map<Object,Object> contextMap)`
Creates a specific `IContentPart` for the given content.
Methods in org.eclipse.gef.mvc.fx.parts that return types with arguments of type IContentPart
Modifier and Type
Method
Description
`List<IContentPart<? extends javafx.scene.Node>>`
IRootPart.`getContentPartChildren()`
Returns all children of type `IContentPart` contained by this `IRootPart`.
`List<IContentPart<? extends javafx.scene.Node>>`
LayeredRootPart.`getContentPartChildren()`

## Uses of IContentPart in org.eclipse.gef.mvc.fx.policies

Methods in org.eclipse.gef.mvc.fx.policies that return IContentPart
Modifier and Type
Method
Description
`IContentPart<? extends javafx.scene.Node>`
CreationPolicy.`create(Object content, IVisualPart<? extends javafx.scene.Node> parent, int index, SetMultimap<IContentPart<? extends javafx.scene.Node>,String> anchoreds, boolean doFocus, boolean doSelect)`
Creates an `IContentPart` for the given content `Object` and establishes parent and anchored relationships for the newly created part.
`IContentPart<? extends javafx.scene.Node>`
CreationPolicy.`create(Object content, IVisualPart<? extends javafx.scene.Node> parent, SetMultimap<IContentPart<? extends javafx.scene.Node>,String> anchoreds)`
Creates an `IContentPart` for the given content `Object` and establishes parent and anchored relationships for the newly created part.
`protected IContentPart<? extends javafx.scene.Node>`
FocusTraversalPolicy.`findInnerMostContentPart(IContentPart<? extends javafx.scene.Node> part)`
Returns the inner most `IContentPart` child within the part hierarchy of the given `IContentPart`.
`protected IContentPart<? extends javafx.scene.Node>`
FocusTraversalPolicy.`findNextContentPart(IContentPart<? extends javafx.scene.Node> current)`
Determines the next `IContentPart` to which keyboard focus is assigned, depending on the currently focused `IContentPart`.
`protected IContentPart<? extends javafx.scene.Node>`
FocusTraversalPolicy.`findPreviousContentPart(IContentPart<? extends javafx.scene.Node> current)`
Determines the previous `IContentPart` to which keyboard focus is assigned, depending on the currently focused `IContentPart`.
`IContentPart<? extends javafx.scene.Node>`
FocusTraversalPolicy.`focusNext()`
Assigns focus to the next part in the traversal cycle.
`IContentPart<? extends javafx.scene.Node>`
FocusTraversalPolicy.`focusPrevious()`
Assigns focus to the previous part in the traversal cycle.
`IContentPart<? extends javafx.scene.Node>`
ContentPolicy.`getHost()`
`protected IContentPart<? extends javafx.scene.Node>`
FocusTraversalPolicy.`traverse(boolean backwards)`
Traverses the focus forwards or backwards depending on the given flag.
Methods in org.eclipse.gef.mvc.fx.policies with parameters of type IContentPart
Modifier and Type
Method
Description
`protected ITransactionalOperation`
CreationPolicy.`createFocusOperation(IContentPart<? extends javafx.scene.Node> part)`
Returns an `ITransactionalOperation` that adds the given `IContentPart` to the `FocusModel` of the corresponding `IViewer`.
`protected ITransactionalOperation`
CreationPolicy.`createSelectOperation(IContentPart<? extends javafx.scene.Node> part)`
Returns an `ITransactionalOperation` that adds the given `IContentPart` to the `SelectionModel` of the corresponding `IViewer`.
`void`
DeletionPolicy.`delete(IContentPart<? extends javafx.scene.Node> contentPartToDelete)`
Deletes the given `IContentPart` by removing the `IContentPart`'s content from the parent `IContentPart`' content and by detaching the contents of all anchored `IContentPart`s from the `IContentPart`'s content.
`protected IContentPart<? extends javafx.scene.Node>`
FocusTraversalPolicy.`findInnerMostContentPart(IContentPart<? extends javafx.scene.Node> part)`
Returns the inner most `IContentPart` child within the part hierarchy of the given `IContentPart`.
`protected IContentPart<? extends javafx.scene.Node>`
FocusTraversalPolicy.`findNextContentPart(IContentPart<? extends javafx.scene.Node> current)`
Determines the next `IContentPart` to which keyboard focus is assigned, depending on the currently focused `IContentPart`.
`protected IContentPart<? extends javafx.scene.Node>`
FocusTraversalPolicy.`findPreviousContentPart(IContentPart<? extends javafx.scene.Node> current)`
Determines the previous `IContentPart` to which keyboard focus is assigned, depending on the currently focused `IContentPart`.
Method parameters in org.eclipse.gef.mvc.fx.policies with type arguments of type IContentPart
Modifier and Type
Method
Description
`IContentPart<? extends javafx.scene.Node>`
CreationPolicy.`create(Object content, IVisualPart<? extends javafx.scene.Node> parent, int index, SetMultimap<IContentPart<? extends javafx.scene.Node>,String> anchoreds, boolean doFocus, boolean doSelect)`
Creates an `IContentPart` for the given content `Object` and establishes parent and anchored relationships for the newly created part.
`IContentPart<? extends javafx.scene.Node>`
CreationPolicy.`create(Object content, IVisualPart<? extends javafx.scene.Node> parent, SetMultimap<IContentPart<? extends javafx.scene.Node>,String> anchoreds)`
Creates an `IContentPart` for the given content `Object` and establishes parent and anchored relationships for the newly created part.

## Uses of IContentPart in org.eclipse.gef.mvc.fx.providers

Methods in org.eclipse.gef.mvc.fx.providers with parameters of type IContentPart
Modifier and Type
Method
Description
`protected Connection`
ConnectionSnappingLocationProvider.`getConnection(IContentPart<? extends javafx.scene.Node> part)`
Returns the `Connection` that is used as the basis for determination of `SnappingModel.SnappingLocation`s for the given `IContentPart`.
`List<SnappingModel.SnappingLocation>`
BoundsSnappingLocationProvider.`getHorizontalSnappingLocations(IContentPart<? extends javafx.scene.Node> part)`
`List<SnappingModel.SnappingLocation>`
CenterSnappingLocationProvider.`getHorizontalSnappingLocations(IContentPart<? extends javafx.scene.Node> part)`
`List<SnappingModel.SnappingLocation>`
ConnectionSnappingLocationProvider.`getHorizontalSnappingLocations(IContentPart<? extends javafx.scene.Node> part)`
`List<SnappingModel.SnappingLocation>`
ISnappingLocationProvider.`getHorizontalSnappingLocations(IContentPart<? extends javafx.scene.Node> part)`
Returns the horizontal `SnappingModel.SnappingLocation`s for the given `IContentPart`.
`List<SnappingModel.SnappingLocation>`
TopLeftSnappingLocationProvider.`getHorizontalSnappingLocations(IContentPart<? extends javafx.scene.Node> part)`
`protected List<SnappingModel.SnappingLocation>`
BoundsSnappingLocationProvider.`getSnappingLocations(IContentPart<? extends javafx.scene.Node> part, javafx.geometry.Orientation orient, double... ratios)`
Iterates over the given ratios and interpolates positions within the bounds for the individual ratios.
`protected List<SnappingModel.SnappingLocation>`
ConnectionSnappingLocationProvider.`getSnappingLocations(IContentPart<? extends javafx.scene.Node> part, javafx.geometry.Orientation orientation)`
Returns `SnappingModel.SnappingLocation`s with given `Orientation` for the `ConnectionSnappingLocationProvider.getConnection(IContentPart)` of the given `IContentPart`.
`List<SnappingModel.SnappingLocation>`
BoundsSnappingLocationProvider.`getVerticalSnappingLocations(IContentPart<? extends javafx.scene.Node> part)`
`List<SnappingModel.SnappingLocation>`
CenterSnappingLocationProvider.`getVerticalSnappingLocations(IContentPart<? extends javafx.scene.Node> part)`
`List<SnappingModel.SnappingLocation>`
ConnectionSnappingLocationProvider.`getVerticalSnappingLocations(IContentPart<? extends javafx.scene.Node> part)`
`List<SnappingModel.SnappingLocation>`
ISnappingLocationProvider.`getVerticalSnappingLocations(IContentPart<? extends javafx.scene.Node> part)`
Returns the vertical `SnappingModel.SnappingLocation`s for the given `IContentPart`.
`List<SnappingModel.SnappingLocation>`
TopLeftSnappingLocationProvider.`getVerticalSnappingLocations(IContentPart<? extends javafx.scene.Node> part)`

## Uses of IContentPart in org.eclipse.gef.mvc.fx.viewer

Methods in org.eclipse.gef.mvc.fx.viewer that return types with arguments of type IContentPart
Modifier and Type
Method
Description
`javafx.beans.property.ReadOnlyMapProperty<Object,IContentPart<? extends javafx.scene.Node>>`
InfiniteCanvasViewer.`contentPartMapProperty()`
`javafx.beans.property.ReadOnlyMapProperty<Object,IContentPart<? extends javafx.scene.Node>>`
IViewer.`contentPartMapProperty()`
Returns an unmodifiable read-only map property that contains the registered `IContentPart`s mapped to their respective content.
`Map<Object,IContentPart<? extends javafx.scene.Node>>`
InfiniteCanvasViewer.`getContentPartMap()`
`Map<Object,IContentPart<? extends javafx.scene.Node>>`
IViewer.`getContentPartMap()`
Returns the `Map` for registering `IContentPart`s by their content.