# Uses of Interface
org.eclipse.gef.mvc.fx.viewer.IViewer

Packages that use IViewer
Package
Description
org.eclipse.gef.mvc.fx.behaviors
This package contains JavaFX/MVC.FX-specific `IBehavior` implementations.
org.eclipse.gef.mvc.fx.domain
This package contains a JavaFX-specific `IDomain` implementation: `HistoricizingDomain`.
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.ui.parts
This package contains specific Eclipse `ViewPart` and `EditorPart` implementations which wrap an `FXCanvas`.
org.eclipse.gef.mvc.fx.viewer
This package contains a JavaFX-specific `IViewer` implementation: `InfiniteCanvasViewer`.

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

Methods in org.eclipse.gef.mvc.fx.behaviors with parameters of type IViewer
Modifier and Type
Method
Description
`protected IFeedbackPartFactory`
AbstractBehavior.`getFeedbackPartFactory(IViewer viewer)`
Returns the `IFeedbackPartFactory` that should be used for feedback creation.
`protected IFeedbackPartFactory`
AbstractBehavior.`getFeedbackPartFactory(IViewer viewer, String role)`
Returns the `IFeedbackPartFactory` that is registered as an adapter at the given `IViewer` under the given role.
`protected IFeedbackPartFactory`
FocusBehavior.`getFeedbackPartFactory(IViewer viewer)`
`protected IFeedbackPartFactory`
HoverBehavior.`getFeedbackPartFactory(IViewer viewer)`
`protected IFeedbackPartFactory`
HoverIntentBehavior.`getFeedbackPartFactory(IViewer viewer)`
`protected IFeedbackPartFactory`
SelectionBehavior.`getFeedbackPartFactory(IViewer viewer)`
`protected IFeedbackPartFactory`
SnappingBehavior.`getFeedbackPartFactory(IViewer viewer)`
Returns the `IFeedbackPartFactory` for selection feedback.
`protected IHandlePartFactory`
AbstractBehavior.`getHandlePartFactory(IViewer viewer)`
Returns the `IHandlePartFactory` that should be used for handle creation.
`protected IHandlePartFactory`
AbstractBehavior.`getHandlePartFactory(IViewer viewer, String role)`
Returns the `IHandlePartFactory` that is registered as an adapter at the given `IViewer` under the given role.
`protected IHandlePartFactory`
HoverBehavior.`getHandlePartFactory(IViewer viewer)`
`protected IHandlePartFactory`
HoverIntentBehavior.`getHandlePartFactory(IViewer viewer)`
`protected IHandlePartFactory`
SelectionBehavior.`getHandlePartFactory(IViewer viewer)`

## Uses of IViewer in org.eclipse.gef.mvc.fx.domain

Methods in org.eclipse.gef.mvc.fx.domain that return types with arguments of type IViewer
Modifier and Type
Method
Description
`Map<AdapterKey<? extends IViewer>,IViewer>`
HistoricizingDomain.`getViewers()`
`Map<AdapterKey<? extends IViewer>,IViewer>`
HistoricizingDomain.`getViewers()`
`Map<AdapterKey<? extends IViewer>,IViewer>`
IDomain.`getViewers()`
Returns the `IViewer`s registered at this `IDomain` (via `IAdaptable.setAdapter(TypeToken, Object)`) with the `AdapterKey`s used for registration.
`Map<AdapterKey<? extends IViewer>,IViewer>`
IDomain.`getViewers()`
Returns the `IViewer`s registered at this `IDomain` (via `IAdaptable.setAdapter(TypeToken, Object)`) with the `AdapterKey`s used for registration.

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

Methods in org.eclipse.gef.mvc.fx.models with parameters of type IViewer
Modifier and Type
Method
Description
`void`
FocusModel.`setAdaptable(IViewer adaptable)`
`void`
HoverModel.`setAdaptable(IViewer adaptable)`
`void`
SelectionModel.`setAdaptable(IViewer adaptable)`

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

Constructors in org.eclipse.gef.mvc.fx.operations with parameters of type IViewer
Modifier
Constructor
Description
``
`ChangeContentsOperation(String label, IViewer viewer, List<? extends Object> contents)`
Creates a new `ChangeContentsOperation` for changing the contents of the given `IViewer` to the specified list of objects.
``
`ChangeContentsOperation(IViewer viewer)`
Constructs a new `ChangeContentsOperation` that can be used to change the contents of the given `IViewer`.
``
`ChangeContentsOperation(IViewer viewer, List<? extends Object> contents)`
Creates a new `ChangeContentsOperation` for changing the contents of the given `IViewer` to the specified list of objects.
``
`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`.
``
`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 IViewer in org.eclipse.gef.mvc.fx.parts

Methods in org.eclipse.gef.mvc.fx.parts that return IViewer
Modifier and Type
Method
Description
`protected IViewer`
AbstractVisualPart.`determineViewer(IVisualPart<? extends javafx.scene.Node> parent, Multiset<IVisualPart<? extends javafx.scene.Node>> anchoreds)`
Determines the viewer reference via the given parent or any of the given anchoreds.
`protected IViewer`
LayeredRootPart.`determineViewer(IVisualPart<? extends javafx.scene.Node> parent, Multiset<IVisualPart<? extends javafx.scene.Node>> anchoreds)`
`IViewer`
AbstractVisualPart.`getAdaptable()`
Gets the value of the property adaptable.
`default IViewer`
IVisualPart.`getViewer()`
Returns the `IViewer` this `IVisualPart` is bound to.
`static IViewer`
PartUtils.`retrieveViewer(IDomain domain, javafx.scene.Node target)`
Returns the `IViewer` of the given `IDomain` in which the given `Node` is contained, or `null` if the given `Node` is not contained within an `IViewer` of the given `IDomain`.
Methods in org.eclipse.gef.mvc.fx.parts that return types with arguments of type IViewer
Modifier and Type
Method
Description
`javafx.beans.property.ReadOnlyObjectProperty<IViewer>`
AbstractVisualPart.`adaptableProperty()`
Methods in org.eclipse.gef.mvc.fx.parts with parameters of type IViewer
Modifier and Type
Method
Description
`protected void`
AbstractContentPart.`register(IViewer viewer)`
`protected void`
AbstractVisualPart.`register(IViewer viewer)`
Called when a link to the `IViewer` is obtained.
`protected void`
AbstractContentPart.`registerAtContentPartMap(IViewer viewer, Object content)`
Registers the model in the `getContentPartMap()`.
`protected void`
AbstractVisualPart.`registerAtVisualPartMap(IViewer viewer, V visual)`
Registers this part for the given visual in the visual-part-map of the given `IViewer`.
`static IVisualPart<? extends javafx.scene.Node>`
PartUtils.`retrieveVisualPart(IViewer viewer, javafx.scene.Node target)`
Returns the first `IVisualPart` in the visual hierarchy of the given `Node`.
`void`
AbstractVisualPart.`setAdaptable(IViewer viewer)`
Sets the value of the property adaptable.
`protected void`
AbstractContentPart.`unregister(IViewer viewer)`
`protected void`
AbstractVisualPart.`unregister(IViewer viewer)`
Called when the link to the `IViewer` is lost.
`protected void`
AbstractContentPart.`unregisterFromContentPartMap(IViewer viewer, Object content)`
Unregisters the model in the `getContentPartMap()`.
`protected void`
AbstractVisualPart.`unregisterFromVisualPartMap(IViewer viewer, V visual)`
Removes the given visual from the visual-part-map of the given viewer.

## Uses of IViewer in org.eclipse.gef.mvc.fx.ui.parts

Methods in org.eclipse.gef.mvc.fx.ui.parts that return IViewer
Modifier and Type
Method
Description
`IViewer`
AbstractFXEditor.`getContentViewer()`
Returns the `IViewer` of the `IDomain` which was previously injected into this editor.
`IViewer`
AbstractFXView.`getContentViewer()`
Returns the `IViewer` of the `IDomain` that was previously injected.
`protected IViewer`
ContentSelectionProvider.`getViewer()`
Returns the `IViewer` this `ContentSelectionProvider` is bound to.
Constructors in org.eclipse.gef.mvc.fx.ui.parts with parameters of type IViewer
Modifier
Constructor
Description
``
`ContentSelectionProvider(IViewer viewer)`
Creates a new `ContentSelectionProvider` for the given `SelectionModel`.

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

Classes in org.eclipse.gef.mvc.fx.viewer that implement IViewer
Modifier and Type
Class
Description
`class`
`InfiniteCanvasViewer`
The `InfiniteCanvasViewer` is an `IViewer` that manages an `InfiniteCanvas` to display the viewer's contents.